Message 1 of 1
struct rollouts and instances
Not applicable
10-22-2016
09:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?