Как это решить? Помогите

Jesus McWood

Участник
Автор темы
76
35
Я сделал 3 imgui окна. Всё работает. 2 из них открываются нормально. И
Lua:
imgui.Process = false
когда жму на крестик. Но окно 3 появляется и моментально же закрываеться. Как решить. И второй вопрос, как добавить 3-е окно в эту строку​
Lua:
    if not main_window_state.v and not two_window_state.v then
        imgui.Process = false
    end
Подскажите пожалуйста. Как решить? Вот код​
Lua:
script_name("Army-Assistant")
script_author("Jesus_McWood")
script_description("Скрипт сделан на заказ | S-RP")
script_version("1.0")

local tag = "{006400}[Army-Assistant]"
local main_color = 0x5A90CE
local main_color_text = "{006400}"
local white_color = "{FFFFFF}"
local uk = ''
local keys = require "vkeys"
local label = 0
local imgui = require 'imgui'
local notify = import 'lib_imgui_notf.lua'
local encoding = require 'encoding'
encoding.default = 'CP1251'
u8 = encoding.UTF8

require 'lib.moonloader'
require 'lib.sampfuncs'

local main_window_state = imgui.ImBool(false)
local two_window_state = imgui.ImBool(false)
local menu_window_state = imgui.ImBool(false)
local menu2_window_state = imgui.ImBool(false)
local menu3_window_state = imgui.ImBool(false)
local menu4_window_state = imgui.ImBool(false)

local textBuffer = imgui.ImBuffer(256)
local textBuffer2 = imgui.ImBuffer(256)
local textBuffer3 = imgui.ImBuffer(256)

local checked_box = imgui.ImBool(false)
local checked_box2 = imgui.ImBool(false)
local checked_box3 = imgui.ImBool(false)
local buttonSave = imgui.ImBool(false)
local text_buffer = imgui.ImBool(false)
local text = imgui.ImBool(false)
local sw, sh = getScreenResolution()

function apply_custom_style()
    imgui.SwitchContext()
    local style = imgui.GetStyle()
    local colors = style.Colors
    local clr = imgui.Col
    local ImVec4 = imgui.ImVec4

    style.WindowRounding = 2.0
    style.WindowTitleAlign = imgui.ImVec2(0.5, 0.84)
    style.ChildWindowRounding = 2.0
    style.FrameRounding = 2.0
    style.ItemSpacing = imgui.ImVec2(5.0, 4.0)
    style.ScrollbarSize = 13.0
    style.ScrollbarRounding = 0
    style.GrabMinSize = 8.0
    style.GrabRounding = 1.0

    colors[clr.FrameBg]                = ImVec4(0.16, 0.29, 0.48, 0.54)
    colors[clr.FrameBgHovered]         = ImVec4(0.26, 0.59, 0.98, 0.40)
    colors[clr.FrameBgActive]          = ImVec4(0.26, 0.59, 0.98, 0.67)
    colors[clr.TitleBg]                = ImVec4(0.04, 0.04, 0.04, 1.00)
    colors[clr.TitleBgActive]          = ImVec4(0.16, 0.29, 0.48, 1.00)
    colors[clr.TitleBgCollapsed]       = ImVec4(0.00, 0.00, 0.00, 0.51)
    colors[clr.CheckMark]              = ImVec4(0.26, 0.59, 0.98, 1.00)
    colors[clr.SliderGrab]             = ImVec4(0.24, 0.52, 0.88, 1.00)
    colors[clr.SliderGrabActive]       = ImVec4(0.26, 0.59, 0.98, 1.00)
    colors[clr.Button]                 = ImVec4(0.26, 0.59, 0.98, 0.40)
    colors[clr.ButtonHovered]          = ImVec4(0.26, 0.59, 0.98, 1.00)
    colors[clr.ButtonActive]           = ImVec4(0.06, 0.53, 0.98, 1.00)
    colors[clr.Header]                 = ImVec4(0.26, 0.59, 0.98, 0.31)
    colors[clr.HeaderHovered]          = ImVec4(0.26, 0.59, 0.98, 0.80)
    colors[clr.HeaderActive]           = ImVec4(0.26, 0.59, 0.98, 1.00)
    colors[clr.Separator]              = colors[clr.Border]
    colors[clr.SeparatorHovered]       = ImVec4(0.26, 0.59, 0.98, 0.78)
    colors[clr.SeparatorActive]        = ImVec4(0.26, 0.59, 0.98, 1.00)
    colors[clr.ResizeGrip]             = ImVec4(0.26, 0.59, 0.98, 0.25)
    colors[clr.ResizeGripHovered]      = ImVec4(0.26, 0.59, 0.98, 0.67)
    colors[clr.ResizeGripActive]       = ImVec4(0.26, 0.59, 0.98, 0.95)
    colors[clr.TextSelectedBg]         = ImVec4(0.26, 0.59, 0.98, 0.35)
    colors[clr.Text]                   = ImVec4(1.00, 1.00, 1.00, 1.00)
    colors[clr.TextDisabled]           = ImVec4(0.50, 0.50, 0.50, 1.00)
    colors[clr.WindowBg]               = ImVec4(0.06, 0.06, 0.06, 0.94)
    colors[clr.ChildWindowBg]          = ImVec4(1.00, 1.00, 1.00, 0.00)
    colors[clr.PopupBg]                = ImVec4(0.08, 0.08, 0.08, 0.94)
    colors[clr.ComboBg]                = colors[clr.PopupBg]
    colors[clr.Border]                 = ImVec4(0.43, 0.43, 0.50, 0.50)
    colors[clr.BorderShadow]           = ImVec4(0.00, 0.00, 0.00, 0.00)
    colors[clr.MenuBarBg]              = ImVec4(0.14, 0.14, 0.14, 1.00)
    colors[clr.ScrollbarBg]            = ImVec4(0.02, 0.02, 0.02, 0.53)
    colors[clr.ScrollbarGrab]          = ImVec4(0.31, 0.31, 0.31, 1.00)
    colors[clr.ScrollbarGrabHovered]   = ImVec4(0.41, 0.41, 0.41, 1.00)
    colors[clr.ScrollbarGrabActive]    = ImVec4(0.51, 0.51, 0.51, 1.00)
    colors[clr.CloseButton]            = ImVec4(0.41, 0.41, 0.41, 0.50)
    colors[clr.CloseButtonHovered]     = ImVec4(0.98, 0.39, 0.36, 1.00)
    colors[clr.CloseButtonActive]      = ImVec4(0.98, 0.39, 0.36, 1.00)
    colors[clr.PlotLines]              = ImVec4(0.61, 0.61, 0.61, 1.00)
    colors[clr.PlotLinesHovered]       = ImVec4(1.00, 0.43, 0.35, 1.00)
    colors[clr.PlotHistogram]          = ImVec4(0.90, 0.70, 0.00, 1.00)
    colors[clr.PlotHistogramHovered]   = ImVec4(1.00, 0.60, 0.00, 1.00)
    colors[clr.ModalWindowDarkening]   = ImVec4(0.80, 0.80, 0.80, 0.35)
end

apply_custom_style()

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end

    --if doesFileExist('moonloader/config/Police-Helper/ук.txt') then
        --local file = io.open('moonloader/config/Army Assistant/устав.txt', 'r')
        --local text = file:read('*a')
            --if text:len() > 0 then
            --ustav = text
            --end
        --file:close()
        --end

        sampRegisterChatCommand("aa", cmd_aa)
        sampRegisterChatCommand("test", cmd_test)

        wait(13000)
        notify.addNotify("{FF0000}У Вас новое уведомление:", "Army Assistant успешно загружен", 2, 2, 6)
        print("{FF0000}Следите за обновлениями тут: {006400}https://scriptscorporated.site")

        sampAddChatMessage(tag .. " {FFFFFF}Скрипт успешно загружен. Автор: {006400}Jesus_McWood", 0x006400)
        sampAddChatMessage(tag .. " {FFFFFF}Главное меню скрипта - {006400}/aa.", 0x006400)
        sampAddChatMessage(tag .. " {FFFFFF}Версия скрипта: {FF0000}v.1.0. {FFFFFF}Следите за обновлениями тут - {006400}https://scriptscorporated.site/", 0x006400)

    while true do
        wait(0)

        if isKeyDown(VK_MENU) and isKeyJustPressed(VK_F5) then -- Общее меню
            two_window_state.v = not two_window_state.v
            imgui.Process = two_window_state.v
        end

        if isKeyDown(VK_MENU) and isKeyJustPressed(VK_F3) then
            menu_window_state.v = not menu_window_state.v
            imgui.Process = menu_window_state.v
        end

        if isKeyDown(VK_MENU) and isKeyJustPressed(J) then

        end
      
        if isKeyDown(VK_MENU) and isKeyJustPressed(G) then

        end

    end
end


function cmd_aa()
    notify.addNotify("{FF0000}У Вас новое уведомление:", "Меню успешно было открыто", 2, 2, 6)
    main_window_state.v = not main_window_state.v
    imgui.Process = main_window_state.v
end

function buttonSave()

end

function imgui.OnDrawFrame()

    if not main_window_state.v and not two_window_state.v then
        imgui.Process = false
    end

    if main_window_state.v then
        imgui.SetNextWindowSize(imgui.ImVec2(355, 260))
        imgui.SetNextWindowPos(imgui.ImVec2((sw / 2), sh / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
        imgui.Begin(u8'Army-Assistant | Главное меню', main_window_state, imgui.WindowFlags.NoResize + imgui.WindowFlags.NoCollapse + imgui.WindowFlags.NoScrollbar)

      
        imgui.TextQuestion(u8'Имя должно быть написано на русском')
        imgui.SameLine()
        imgui.PushItemWidth(90)
        imgui.InputText(u8"Ваше имя", textBuffer)
        imgui.PopItemWidth()

        imgui.TextQuestion(u8'Будет отображаться при приветствии и в докладах')
        imgui.SameLine()
        imgui.PushItemWidth(90)
        imgui.InputText(u8"Ваша должность", textBuffer2)
        imgui.PopItemWidth()

        imgui.TextQuestion(u8'Название Вашей организации')
        imgui.SameLine()
        imgui.PushItemWidth(90)
        imgui.InputText(u8"Название организации", textBuffer3)
        imgui.PopItemWidth()

        imgui.NewLine()
        imgui.Separator()
        imgui.NewLine()

        imgui.Checkbox(u8"Сохранять настройки авто.", checked_box2)
        imgui.Checkbox(u8"Принять участия в Beta тестировании (В разработке)", checked_box3)

        imgui.NewLine()
        imgui.Separator()
        imgui.NewLine()
      
        imgui.Button(u8"Сохранить настройки", imgui.ImVec2(337, 20), buttonSave)
        imgui.End()
    end
  
    if menu_window_state.v then
        imgui.SetNextWindowSize(imgui.ImVec2(355, 280))
        imgui.SetNextWindowPos(imgui.ImVec2((sw / 2), sh / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
        imgui.Begin(u8"Army-Assistant | Общее меню", menu_window_state, imgui.WindowFlags.NoResize + imgui.WindowFlags.NoCollapse + imgui.WindowFlags.NoScrollbar)

        imgui.Text(u8"Test")
        imgui.End()
    end

    if two_window_state.v then
        imgui.SetNextWindowSize(imgui.ImVec2(205, 110))
        imgui.SetNextWindowPos(imgui.ImVec2((sw / 2), sh / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))

        imgui.Begin(u8"Army-Assistant | Информация", two_window_state, imgui.WindowFlags.NoResize + imgui.WindowFlags.NoCollapse + imgui.WindowFlags.NoScrollbar)
        imgui.Text(u8"ALT + F5 - Общее меню")
        imgui.Text(u8"ALT + H - Меню взаймодействия")
        imgui.Text(u8"ALT + J - Главное меню")
        imgui.Text(u8"ALT + G - Меню докладов")
        imgui.End()
    end
end

function imgui.TextQuestion(text)
    imgui.TextDisabled('(?)')
    if imgui.IsItemHovered() then
        imgui.BeginTooltip()
        imgui.PushTextWrapPos(450)
        imgui.TextUnformatted(text)
        imgui.PopTextWrapPos()
        imgui.EndTooltip()
    end
end

Для тех кто хочет затестить, код оставлю во вложениях​
 

Вложения

  • Army-Assistant.lua
    9.6 KB · Просмотры: 1
  • lib_imgui_notf.lua
    9.2 KB · Просмотры: 5
Решение
Lua:
script_name("Army-Assistant")
script_author("Jesus_McWood")
script_description("Скрипт сделан на заказ | S-RP")
script_version("1.0")

require 'lib.moonloader'
require 'lib.sampfuncs'

local notify = import 'lib_imgui_notf.lua'
local keys = require "vkeys"
local imgui = require 'imgui'
local encoding = require 'encoding'
encoding.default = 'CP1251'
u8 = encoding.UTF8

local tag = "{006400}[Army-Assistant]"
local main_color = 0x5A90CE
local main_color_text = "{006400}"
local white_color = "{FFFFFF}"
local uk = ''
local label = 0

local main_window_state = imgui.ImBool(false)
local two_window_state = imgui.ImBool(false)
local menu_window_state = imgui.ImBool(false)
local menu2_window_state = imgui.ImBool(false)
local menu3_window_state...

Albertio

Attention! Thanks for your attention.
887
717
Lua:
script_name("Army-Assistant")
script_author("Jesus_McWood")
script_description("Скрипт сделан на заказ | S-RP")
script_version("1.0")

require 'lib.moonloader'
require 'lib.sampfuncs'

local notify = import 'lib_imgui_notf.lua'
local keys = require "vkeys"
local imgui = require 'imgui'
local encoding = require 'encoding'
encoding.default = 'CP1251'
u8 = encoding.UTF8

local tag = "{006400}[Army-Assistant]"
local main_color = 0x5A90CE
local main_color_text = "{006400}"
local white_color = "{FFFFFF}"
local uk = ''
local label = 0

local main_window_state = imgui.ImBool(false)
local two_window_state = imgui.ImBool(false)
local menu_window_state = imgui.ImBool(false)
local menu2_window_state = imgui.ImBool(false)
local menu3_window_state = imgui.ImBool(false)
local menu4_window_state = imgui.ImBool(false)

local textBuffer = imgui.ImBuffer(256)
local textBuffer2 = imgui.ImBuffer(256)
local textBuffer3 = imgui.ImBuffer(256)

local checked_box = imgui.ImBool(false)
local checked_box2 = imgui.ImBool(false)
local checked_box3 = imgui.ImBool(false)
local buttonSave = imgui.ImBool(false)
local text_buffer = imgui.ImBool(false)
local text = imgui.ImBool(false)
local sw, sh = getScreenResolution()

function main()
  if not isSampLoaded() or not isSampfuncsLoaded() then return end
  while not isSampAvailable() do wait(100) end

  --if doesFileExist('moonloader/config/Police-Helper/ук.txt') then
  --local file = io.open('moonloader/config/Army Assistant/устав.txt', 'r')
  --local text = file:read('*a')
  --if text:len() > 0 then
  --ustav = text
  --end
  --file:close()
  --end

  sampRegisterChatCommand("aa", cmd_aa)
  sampRegisterChatCommand("test", cmd_test)

  wait(13000)
  notify.addNotify("{FF0000}У Вас новое уведомление:", "Army Assistant успешно загружен", 2, 2, 6)
  print("{FF0000}Следите за обновлениями тут: {006400}https://scriptscorporated.site")

  sampAddChatMessage(tag .. " {FFFFFF}Скрипт успешно загружен. Автор: {006400}Jesus_McWood", 0x006400)
  sampAddChatMessage(tag .. " {FFFFFF}Главное меню скрипта - {006400}/aa.", 0x006400)
  sampAddChatMessage(tag .. " {FFFFFF}Версия скрипта: {FF0000}v.1.0. {FFFFFF}Следите за обновлениями тут - {006400}https://scriptscorporated.site/", 0x006400)

  while true do
    wait(0)

        imgui.Process = main_window_state.v or menu_window_state.v or two_window_state.v
    if isKeyDown(VK_MENU) and isKeyJustPressed(VK_F5) then -- Общее меню
      two_window_state.v = not two_window_state.v
    end

    if isKeyDown(VK_MENU) and isKeyJustPressed(VK_F3) then
      menu_window_state.v = not menu_window_state.v
    end

    if isKeyDown(VK_MENU) and isKeyJustPressed(J) then

    end

    if isKeyDown(VK_MENU) and isKeyJustPressed(G) then

    end

  end
end

function cmd_aa()
  notify.addNotify("{FF0000}У Вас новое уведомление:", "Меню успешно было открыто", 2, 2, 6)
  main_window_state.v = not main_window_state.v
end

function buttonSave()

end

function imgui.OnDrawFrame()
  if main_window_state.v then
    imgui.SetNextWindowSize(imgui.ImVec2(355, 260))
    imgui.SetNextWindowPos(imgui.ImVec2((sw / 2), sh / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
    imgui.Begin(u8'Army-Assistant | Главное меню', main_window_state, imgui.WindowFlags.NoResize + imgui.WindowFlags.NoCollapse + imgui.WindowFlags.NoScrollbar)

    imgui.TextQuestion(u8'Имя должно быть написано на русском')
    imgui.SameLine()
    imgui.PushItemWidth(90)
    imgui.InputText(u8"Ваше имя", textBuffer)
    imgui.PopItemWidth()

    imgui.TextQuestion(u8'Будет отображаться при приветствии и в докладах')
    imgui.SameLine()
    imgui.PushItemWidth(90)
    imgui.InputText(u8"Ваша должность", textBuffer2)
    imgui.PopItemWidth()

    imgui.TextQuestion(u8'Название Вашей организации')
    imgui.SameLine()
    imgui.PushItemWidth(90)
    imgui.InputText(u8"Название организации", textBuffer3)
    imgui.PopItemWidth()

    imgui.NewLine()
    imgui.Separator()
    imgui.NewLine()

    imgui.Checkbox(u8"Сохранять настройки авто.", checked_box2)
    imgui.Checkbox(u8"Принять участия в Beta тестировании (В разработке)", checked_box3)

    imgui.NewLine()
    imgui.Separator()
    imgui.NewLine()

    imgui.Button(u8"Сохранить настройки", imgui.ImVec2(337, 20), buttonSave)
    imgui.End()
  end

  if menu_window_state.v then
    imgui.SetNextWindowSize(imgui.ImVec2(355, 280))
    imgui.SetNextWindowPos(imgui.ImVec2((sw / 2), sh / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
    imgui.Begin(u8"Army-Assistant | Общее меню", menu_window_state, imgui.WindowFlags.NoResize + imgui.WindowFlags.NoCollapse + imgui.WindowFlags.NoScrollbar)

    imgui.Text(u8"Test")
    imgui.End()
  end

  if two_window_state.v then
    imgui.SetNextWindowSize(imgui.ImVec2(205, 110))
    imgui.SetNextWindowPos(imgui.ImVec2((sw / 2), sh / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))

    imgui.Begin(u8"Army-Assistant | Информация", two_window_state, imgui.WindowFlags.NoResize + imgui.WindowFlags.NoCollapse + imgui.WindowFlags.NoScrollbar)
    imgui.Text(u8"ALT + F5 - Общее меню")
    imgui.Text(u8"ALT + H - Меню взаймодействия")
    imgui.Text(u8"ALT + J - Главное меню")
    imgui.Text(u8"ALT + G - Меню докладов")
    imgui.End()
  end
end

function imgui.TextQuestion(text)
  imgui.TextDisabled('(?)')
  if imgui.IsItemHovered() then
    imgui.BeginTooltip()
    imgui.PushTextWrapPos(450)
    imgui.TextUnformatted(text)
    imgui.PopTextWrapPos()
    imgui.EndTooltip()
  end
end

function apply_custom_style()
  imgui.SwitchContext()
  local style = imgui.GetStyle()
  local colors = style.Colors
  local clr = imgui.Col
  local ImVec4 = imgui.ImVec4

  style.WindowRounding = 2.0
  style.WindowTitleAlign = imgui.ImVec2(0.5, 0.84)
  style.ChildWindowRounding = 2.0
  style.FrameRounding = 2.0
  style.ItemSpacing = imgui.ImVec2(5.0, 4.0)
  style.ScrollbarSize = 13.0
  style.ScrollbarRounding = 0
  style.GrabMinSize = 8.0
  style.GrabRounding = 1.0

  colors[clr.FrameBg] = ImVec4(0.16, 0.29, 0.48, 0.54)
  colors[clr.FrameBgHovered] = ImVec4(0.26, 0.59, 0.98, 0.40)
  colors[clr.FrameBgActive] = ImVec4(0.26, 0.59, 0.98, 0.67)
  colors[clr.TitleBg] = ImVec4(0.04, 0.04, 0.04, 1.00)
  colors[clr.TitleBgActive] = ImVec4(0.16, 0.29, 0.48, 1.00)
  colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.51)
  colors[clr.CheckMark] = ImVec4(0.26, 0.59, 0.98, 1.00)
  colors[clr.SliderGrab] = ImVec4(0.24, 0.52, 0.88, 1.00)
  colors[clr.SliderGrabActive] = ImVec4(0.26, 0.59, 0.98, 1.00)
  colors[clr.Button] = ImVec4(0.26, 0.59, 0.98, 0.40)
  colors[clr.ButtonHovered] = ImVec4(0.26, 0.59, 0.98, 1.00)
  colors[clr.ButtonActive] = ImVec4(0.06, 0.53, 0.98, 1.00)
  colors[clr.Header] = ImVec4(0.26, 0.59, 0.98, 0.31)
  colors[clr.HeaderHovered] = ImVec4(0.26, 0.59, 0.98, 0.80)
  colors[clr.HeaderActive] = ImVec4(0.26, 0.59, 0.98, 1.00)
  colors[clr.Separator] = colors[clr.Border]
  colors[clr.SeparatorHovered] = ImVec4(0.26, 0.59, 0.98, 0.78)
  colors[clr.SeparatorActive] = ImVec4(0.26, 0.59, 0.98, 1.00)
  colors[clr.ResizeGrip] = ImVec4(0.26, 0.59, 0.98, 0.25)
  colors[clr.ResizeGripHovered] = ImVec4(0.26, 0.59, 0.98, 0.67)
  colors[clr.ResizeGripActive] = ImVec4(0.26, 0.59, 0.98, 0.95)
  colors[clr.TextSelectedBg] = ImVec4(0.26, 0.59, 0.98, 0.35)
  colors[clr.Text] = ImVec4(1.00, 1.00, 1.00, 1.00)
  colors[clr.TextDisabled] = ImVec4(0.50, 0.50, 0.50, 1.00)
  colors[clr.WindowBg] = ImVec4(0.06, 0.06, 0.06, 0.94)
  colors[clr.ChildWindowBg] = ImVec4(1.00, 1.00, 1.00, 0.00)
  colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.94)
  colors[clr.ComboBg] = colors[clr.PopupBg]
  colors[clr.Border] = ImVec4(0.43, 0.43, 0.50, 0.50)
  colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00)
  colors[clr.MenuBarBg] = ImVec4(0.14, 0.14, 0.14, 1.00)
  colors[clr.ScrollbarBg] = ImVec4(0.02, 0.02, 0.02, 0.53)
  colors[clr.ScrollbarGrab] = ImVec4(0.31, 0.31, 0.31, 1.00)
  colors[clr.ScrollbarGrabHovered] = ImVec4(0.41, 0.41, 0.41, 1.00)
  colors[clr.ScrollbarGrabActive] = ImVec4(0.51, 0.51, 0.51, 1.00)
  colors[clr.CloseButton] = ImVec4(0.41, 0.41, 0.41, 0.50)
  colors[clr.CloseButtonHovered] = ImVec4(0.98, 0.39, 0.36, 1.00)
  colors[clr.CloseButtonActive] = ImVec4(0.98, 0.39, 0.36, 1.00)
  colors[clr.PlotLines] = ImVec4(0.61, 0.61, 0.61, 1.00)
  colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.43, 0.35, 1.00)
  colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00)
  colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
  colors[clr.ModalWindowDarkening] = ImVec4(0.80, 0.80, 0.80, 0.35)
end
apply_custom_style()
 
  • Нравится
Реакции: Jesus McWood