Lua ImGUI dialog windows
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
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
Этот скрипт упростит написание диалоговых окон, сведёт создание диалогового окна к написанию одной строки.
На данный момент присутствуют диалоговые окна с кнопками, вводом целых чисел, вводом строк и с RadioButton.
Вот небольшой мануал
m.BtnDialog(Header, Text, strButtons, butSize) создаёт диалоговое окно с кнопками и текстом
Header - Заголовок окна(строка)
Text - Текст после заголовка(строка)
strButtons - Текст, отображаемый на кнопках(таблица строк)
butSize - imgui.ImVec2, размер кнопок
m.BigBtnDialog(Header, Text, strButtons, butSize) создаёт диалоговое окно с кнопками и текстом
strButtons - Текст, отображаемый на кнопках(таблица таблиц строк)
кнопки из разный таблиц strButtons располагаются на соответствующей строчке(ex. {{\"1stroka 1\", \"1stroka 2\"}, {\"2s 1\", \"2s 2\"}})
m.RadioButtonDialog(Header, Text, strButtons, imint, butSize) создаёт диалоговое окно с RadioButton`ами
strButtons - Текст, отображаемый на RadioButton`ах(таблица строк)
imint - imgui.ImInt, в который записывается номер выбранного RadioButton`а (с еденицы).
m.RadioButtonReturnDialog(Header, Text, strButtons, Values, imint, butSize) создаёт диалоговое окно с RadioButton`ами
От предыдущего отличается наличием Values
Values - таблица значений(может быть и таблица таблиц), значение по индексу выбранного RadioButton`а из которого возвращается этой функцией.
m.InputIntDialog(Header, Text, strInts, imints, butSize) создает диалоговое окно с вводом целого числа(целых чисел)
strInts - таблица названий для полей ввода чисел
imints - таблица imgui.ImInt для записи в них значений.
m.InputTextDialog(Header, Text, strings, imbufs, butSize) создает диалоговое окно с вводом строки(нескольких строк)
strings - таблица наименований для полей ввода текста
Recommended files

[Samp-RP] Taximate

Moon ImGui GUI

Time dilation for Lua

Visual Car Spawner v1.0 - LUA

Lua car spawner - Call Vehicle by Image v1.8.41

ImGUI Input v1.1 (Russian layout in DYOM)

GTA San Andreas - Camera Hack v1.2 for windows 7

New menu on the theme of Windows XP

Window tinting tutorial in Zmodeler

Climb through the bathroom window to the street

Climb through the bathroom window to the street 2.0

GTA San Andreas in a separate window 1.12

Criminal Russia Multiplayer Rev C3 Windows Server


SAMP 0.3.8 RC-4. Windows Server
