![]() QuickMenu:new(menu_title, menu_message, menu_options, true) creates a new QuickMenu object and shows it immediately, but does not store it as a variable. Local menu_message = 'This text shows what the menu does'Ĭallback = LuaModUpdates.OpenUpdateManagerNode, Is_cancel_button If this button should do nothing other than close the menu.Įxample QuickMenu local menu_title = 'Mod or Menu Title' This string is not automatically localised.Ĭallback The callback function to run if this button is pressed by the user. The values that can be specified are as follows: The options array should be a 2D array containing arrays of options. Show_immediately If this QuickMenu should pop-up immediately without requiring the menu to be stored and have show() expressly called on it. Specifying a nil value or an empty array will create a localised default 'OK' button. Options: An array of options containing data to use for the options of the menu. This string is not automatically localised. Message: The message to be displayed in the menu. Will display the menu immediately if show_immediately is set to true. ![]() QuickMenu is a class included in the SuperBLT basemod that allows easy creation and display of small menus or popups.Ĭreate the QuickMenu QuickMenu:new(title, message)Ĭreates a QuickMenu using the provided title, message, and options and returns it as a class variable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |