-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modal window helper #4223
Modal window helper #4223
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I would like to see an example before it gets merged.
I've been using it on my test server (Styller Yurots) for some time as a basis for other modal systems and no problems have occurred to me so far. Thank you so much for bringing this to TFS. |
Bravo! |
Pull Request Prelude
Changes Proposed
This file adds the possibility to create windows in a more beautiful way. I have taken ideas from the guy who published this file in OTLand, I have only modified it to add all the methods and a way to be able to use, reuse and modify them.
The order of execution of the calls is:
choice
>button
>default
If a choice has a callback it will be activated when you press any button, however the button function will not be activated even if it has one. if another choice does not have a callback, the button callback is called, finally the default callback will be called if there is no callback associated with the button or the choice.
Examples:
normal.lua
choice.lua
Access to the local variables of the loop iteration where it was created.
item_menu_back_menu.lua
call_choice_andclear.lua
These are a couple of ways to create some simple and even pretty windows, without a lot of code and reusing all the locale, use your imagination,
If you have any suggestion let me know. maybe it could be improved a little more?
Issues addressed: Nothing!