- 283
- 90
- Версия MoonLoader
- .026-beta
Lua:
-- combo
local combo_select = imgui.ImInt(0) -- моя орг
local combo_select3 = imgui.ImInt(0) -- время
local menu = 1
local menuu = 1
local arr_str = {
u8"[АО]",
u8"[ГИБДД]",
u8"[ППС]",
u8"[МЧС]",
u8"[БЮ]",
u8"[БА]",
u8"[ФСБ]",
u8"[СВ]",
u8"[ВМФ]",
u8"[СМИ]",
u8"[ТСР]"
}
local arr_str3 = {"6:00", "6:10", "6:20", "6:30", "6:40", "6:50", "7:00", "7:10", "7:20", "7:30", "7:40", "7:50", "8:00", "8:10", "8:20", "8:30", "8:40", "8:50", "9:00", "9:10", "9:20","9:30", "9:40", "9:50", "10:00", "10:10", "10:20", "10:30", "10:40", "10:50", "11:00", "11:10", "11:20", "11:30", "11:40", "11:50", "12:00", "12:10", "12:20", "12:30", "12:40", "12:50", "13:00", "13:10", "13:20", "13:30", "13:40", "14:50", "15:00", "15:10", "15:20", "15:30", "15:40", "15:50", "16:00", "16:10", "17:10", "17:20", "17:30", "17:40", "17:50", "18:00", "18:10","18:20", "18:30", "18:40", "18:50", "19:00", "19:10", "19:20", "19:30", "19:40", "19:50", "20:00", "20:10", "20:20", "20:30", "20:40", "20:50", "21:00", "21:10", "21:20", "22:30", "22:40", "22:50", "23:00", "23:10", "23:20", "23:30", "23:40", "23:50", "00:00", "00:10", "00:20", "00:30", "00:40", "00:50", "1:00", "1:10", "1:20", "1:30", "1:40", "1:50", "2:00", "2:10", "2:20", "2:30", "2:40", "2:50", "3:00"}
local mainIni = inicfg.load({
config =
{
arr_str = 0,
arr_str3 = 0,
inputtext = '',
inputtextt = '',
checked_test1 = true,
checked_test2 = true,
checked_test3 = true,
}
}, "nhfl.ini")
if imgui.Combo('##1', combo_select, arr_str, #arr_str) then
mainIni.config.arr_str = arr_str.v
inicfg.save(mainIni, "nhfl.ini")
end
imgui.PushItemWidth(70)
imgui.Text(arr_str[combo_select.v + 1] ..' - [all]')
imgui.SameLine()
imgui.Text(u8'Свободна ли государственная волна на')
imgui.SameLine()
if imgui.Combo('##vremya', combo_select3, arr_str3, #arr_str3) then
mainIni.config.arr_str3 = arr_str3.v
inicfg.save(mainIni, "nhfl.ini")
imgui.PopItemWidth()
end
Не могу почему-то сохранить