- 29/08/2010 11:40
Desde hace ya un tiempo, me ronda una duda, y no logro resolverla. Tengo dos objetos en una escena, un box y un text, intento rescatar el text y usarlo con el comando hide para que me oculte box, pero no lo hace.
Este es el código fallido.
[code]A = box size:15.
B = text size:20 pos:[0,20,0] text:box01.
Vaya = emptymodifier ().
add modifier b m.
Valuehide = ($ + b, text) as string.
Def = attributes test.
(Trollout rtest test t(t button b01 hide on b01 pressed do (t hide valuehide ) t)).
Custattributes, add Def.
[/code]
Si evaluo valuehide me devuelve $box01.
Si pongo en el Listener hide $box01, me lo oculta.
Pero si lo hago así, no. ¿por que?
Este es el código fallido.
[code]A = box size:15.
B = text size:20 pos:[0,20,0] text:box01.
Vaya = emptymodifier ().
add modifier b m.
Valuehide = ($ + b, text) as string.
Def = attributes test.
(Trollout rtest test t(t button b01 hide on b01 pressed do (t hide valuehide ) t)).
Custattributes, add Def.
[/code]
Si evaluo valuehide me devuelve $box01.
Si pongo en el Listener hide $box01, me lo oculta.
Pero si lo hago así, no. ¿por que?