Вопрос по lua скриптингу imgui

FixZer

Активный
Автор темы
126
36
Добрый день. Хотел бы попросить помощи по написанию скрипта.
Чтобы при нажатии кнопки, открывалось внутренние окно.
Вот так:
imgui.jpg
Изначальный код находиться в файле Binder2.lua
 

Вложения

  • Binder2.lua
    6.9 KB · Просмотры: 8
Решение
что за бред, это основа осно
Lua:
local test = imgui.ImBool(false)

if imgui.Button(u8"Стиль Хелпера", imgui.ImVec2(95,25)) then
    test.v = not test.v
end

if test.v then
    imgui.SameLine()
    imgui.BeginChild("ChildWindow", imgui.ImVec2(775, 525), true)
    for i, value in ipairs(themes.colorThemes) do
        if imgui.RadioButton(value, checked_radio, i) then
            themes.SwitchColorTheme(i)
        end
    end
    imgui.EndChild()
end
Если ты такое элементарное не можешь сделать, начни с чего-то простого

#Kai-

Известный
705
291
что за бред, это основа осно
Lua:
local test = imgui.ImBool(false)

if imgui.Button(u8"Стиль Хелпера", imgui.ImVec2(95,25)) then
    test.v = not test.v
end

if test.v then
    imgui.SameLine()
    imgui.BeginChild("ChildWindow", imgui.ImVec2(775, 525), true)
    for i, value in ipairs(themes.colorThemes) do
        if imgui.RadioButton(value, checked_radio, i) then
            themes.SwitchColorTheme(i)
        end
    end
    imgui.EndChild()
end
Если ты такое элементарное не можешь сделать, начни с чего-то простого
 
  • Нравится
Реакции: FixZer

FixZer

Активный
Автор темы
126
36
что за бред, это основа осно
Lua:
local test = imgui.ImBool(false)

if imgui.Button(u8"Стиль Хелпера", imgui.ImVec2(95,25)) then
    test.v = not test.v
end

if test.v then
    imgui.SameLine()
    imgui.BeginChild("ChildWindow", imgui.ImVec2(775, 525), true)
    for i, value in ipairs(themes.colorThemes) do
        if imgui.RadioButton(value, checked_radio, i) then
            themes.SwitchColorTheme(i)
        end
    end
    imgui.EndChild()
end
Если ты такое элементарное не можешь сделать, начни с чего-то простого
Спасибо большое за помощь. Очень вам благодарен )