This script will simplify the writing of dialog boxes, reduce the creation of a dialog box to writing a single line.
At the moment there are dialog boxes with buttons, input of integers, input of strings and with RadioButton.
Here is small manual
hidden text
m.BtnDialog(Header, Text, strButtons, butSize) creates a dialog box with buttons and text Header - Window title (string) Text - Text after title(string) strButtons - Text displayed on buttons (string table) butSize - imgui.ImVec2, button size
m.BigBtnDialog(Header, Text, strButtons, butSize) creates a dialog box with buttons and text strButtons - Text displayed on buttons (string table table) buttons from different strButtons tables are located on the corresponding line(ex. {{"1stroka 1", "1stroka 2"}, {"2s 1", "2s 2"}})
m.RadioButtonDialog(Header, Text, strButtons, imint, butSize) creates a dialog with RadioButtons strButtons - Text displayed on RadioButtons (string table) imint - imgui.ImInt, which contains the number of the selected RadioButton (from one).
m.RadioButtonReturnDialog(Header, Text, strButtons, Values, imint, butSize) creates a dialog with RadioButtons Values - a table of values (maybe a table of tables), the value at the index of the selected RadioButton from which is returned by this function.
m.InputIntDialog(Header, Text, strInts, imints, butSize) creates a dialog box with input of integer(s) strInts - table of names for number input fields imints - imgui.ImInt table to store values in them.
m.InputTextDialog(Header, Text, strings, imbufs, butSize) creates a dialog box with input string(s) strings - table of names for text input fields