• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

About Modal window Back button

nevix

Tunzodus.net
Joined
Mar 31, 2010
Messages
356
Reaction score
62
Location
Lithuanian
Please someone can explain how to create modal window back button.


I can create events to move forward but lets say, how to get back to previos event.

I want like that: lets say I press back button and creatureEvent bring me back to previos choices.

I will try explain more:
first image:
tDD0OzZ4B.png




Second: (when I press select)
utHVzwg3a.png


And I press back button. My question is, how to get back to previos event, previos menu?
 
You need to (re)create the first Modal Window on that button, or just create a new function for each Modal Window page.
 
You could extend the Modal Window Metatable to have a metamethod to retrieve the previous window when the back button is clicked or you can create a child Metatable which has all the metamethods and properties of the parent, except for its constructor isn't that off limits?
 
Back
Top