This content has been marked as final. Show 4 replies
GPDL doesn't work that way - it draws the whole dialog at the startand doesn't update depending on selections.
You should look at creating your own dialog using MUI and runPropertyDialog instead of GPDL. I've read this works but not tried it. (search the help and archives for "runPropertyDialog")
John - thanks. Yeah, I tried some stuff with the runPropertyDialog, but it wasn't working for me. I know that it draws the dialog at the start, but was hoping someone had a workaround. I mean, once i set the property once, I would have hoped it could grab it, but alas no... I will probably just create two separate behaviors and grab the property once I assign it in the other...
I experimented with runPropertyDialog() and using the MUI xtra to build
a selection dialog. It isn't bullet-proof but might serve as a starting
point for further modification.
Try the code below. It will not work in the Behavior Parameters Dialog (the modal window that pops up when you drop the behavior on a sprite). However, if you select the sprite, then open the Property Inspector at the Behaviors tab, you can first select the area, then select the state. If you change the area without making a new choice of state, then the previous state will remain chosen, but will now be associated with the wrong area.
Does this help?