struct rollouts and instances

struct rollouts and instances

Anonymous
Not applicable
578 Views
0 Replies
Message 1 of 1

struct rollouts and instances

Anonymous
Not applicable

if you have a struct definition with a rollout in it, and create instances: the rollouts are not unique:

 

ie: 

struct MyStruct

(

  chicken, 

  gui = rollout gui 

      (

          self,
         on gui open do

          (

           gui.self = this,

          ) 

      )

)

 

elephunk1 = mystruct chicken:8

elephunk2 = mystruct chicken:4

 

elephunk1.chicken =4 and elephunk2.chicken =8 

but 

elephunk2.gui replaces elephunk1.gui and is in the global scope.... 
is there any way to create a new gui for each instance of a struct?

0 Likes
579 Views
0 Replies
Replies (0)