nixware.cc
-
Автор темы
- #1
Всем здарова, откопал я тут свое старое меню и ахуел от кода.
Сливаю так как нахуй мне ненужно
Сливаю так как нахуй мне ненужно
Код:
void DrawAimbot()
{
ImGui::BeginGroup();
{
ImGui::BeginChild("squirewareChild11", ImVec2(346, 450), true);
{
}
ImGui::EndChild();
}
ImGui::EndGroup();
ImGui::SameLine();
ImGui::BeginGroup();
{
ImGui::BeginChild("squirewareChild2", ImVec2(346, 450), true);
{
}
ImGui::EndChild();
}
ImGui::EndGroup();
}
void DrawVisuals()
{
ImGui::BeginGroup();
{
ImGui::BeginChild("squirewareChild11", ImVec2(346, 450), true);
{
}
ImGui::EndChild();
}
ImGui::EndGroup();
ImGui::SameLine();
ImGui::BeginGroup();
{
ImGui::BeginChild("squirewareChild2", ImVec2(346, 450), true);
{
}
ImGui::EndChild();
}
ImGui::EndGroup();
}
void DrawSkins()
{
float SpaceLineOne = 140.f;
float SpaceLinewTwo = 250.f;
float SpaceLineThr = 180.f;
ImGui::BeginGroup();
{
ImGui::BeginChild("Child1", ImVec2(385, 180), true);
{
}
ImGui::EndChild();
ImGui::BeginChild("Child2", ImVec2(385, 80), true);
{
}
ImGui::EndChild();
ImGui::BeginGroup();
{
ImGui::BeginChild("Child3", ImVec2(190, 182), true);
{
}
ImGui::EndChild();
ImGui::BeginChild("Child31313", ImVec2(190, 89), true);
{
}
ImGui::EndChild();
}
ImGui::EndGroup();
}
ImGui::EndGroup();
ImGui::SameLine();
ImGui::BeginGroup();
{
ImGui::BeginChild("Child77", ImVec2(304, 180), true);
{
}
ImGui::EndChild();
ImGui::BeginChild("Child78", ImVec2(304, 80), true);
{
}
ImGui::EndChild();
ImGui::BeginGroup();
{
ImGui::BeginChild("Child791313", ImVec2(147, 182), true);
{
}
ImGui::EndChild();
ImGui::SameLine();
ImGui::BeginChild("Child71313191313", ImVec2(149, 182), true);
{
}
ImGui::EndChild();
}
ImGui::EndGroup();
}
ImGui::EndGroup();
}
void DrawMisc()
{
ImGui::BeginGroup();
{
ImGui::BeginChild("Child1", ImVec2(185, 230), true);
{
}
ImGui::EndChild();
ImGui::SameLine();
ImGui::BeginChild("Child2", ImVec2(185, 230), true);
{
}
ImGui::EndChild();
ImGui::SameLine();
ImGui::BeginChild("Child3", ImVec2(314, 230), true);
{
}
ImGui::EndChild();
}
ImGui::EndGroup();
ImGui::BeginGroup();
{
ImGui::BeginChild("Child4", ImVec2(185, 214), true);
{
}
ImGui::EndChild();
ImGui::SameLine();
ImGui::BeginChild("Child5", ImVec2(185, 214), true);
{
}
ImGui::EndChild();
ImGui::SameLine();
ImGui::BeginChild("Child6", ImVec2(314, 214), true);
{
}
ImGui::EndChild();
}
ImGui::EndGroup();
}
void DrawRadar()
{
ImGui::BeginGroup();
{
ImGui::BeginChild("Ch13ild99", ImVec2(346, 395), true);
{
}
ImGui::EndChild();
ImGui::SameLine();
ImGui::BeginChild("Child913434", ImVec2(346, 395), true);
{
}
ImGui::EndChild();
}
ImGui::EndGroup();
ImGui::BeginGroup();
{
ImGui::BeginChild("Child131319434", ImVec2(700, 51), true);
{
}
ImGui::EndChild();
}
ImGui::EndGroup();
}
void DrawColors()
{
ImGui::BeginGroup();
{
ImGui::BeginChild("Child99", ImVec2(346, 130), true);
{
}
ImGui::EndChild();
}
ImGui::EndGroup();
ImGui::SameLine();
ImGui::BeginGroup();
{
ImGui::BeginChild("Child9434", ImVec2(346, 130), true);
{
}
ImGui::EndChild();
}
ImGui::EndGroup();
}
void OnRenderGUI()
{
auto& style = ImGui::GetStyle();
ImGuiIO& io = ImGui::GetIO();
io.IniFilename = GuiFile.c_str();
int w;
int h;
if (bIsGuiVisible)
if (style.Alpha > 1.f)
style.Alpha = 1.f;
else if (style.Alpha != 1.f)
style.Alpha += 0.01f;
else if (!bIsGuiVisible)
if (style.Alpha < 0.f)
style.Alpha = 0.f;
else if (style.Alpha != 0.f)
style.Alpha -= 0.01f;
Interfaces::Engine()->GetScreenSize(w, h);
ImVec2 mainWindowPos;
ImGui::SetNextWindowPos(ImVec2(0, 0), ImGuiSetCond_Appearing);
style.WindowPadding = ImVec2(8, 8);
ImGui::SetNextWindowPosCenter(ImGuiSetCond_Appearing);
style.WindowPadding = ImVec2(0, 0);
ImGui::Begin("Menu3", &bIsGuiVisible, ImVec2(0, 0), 0.98f, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoTitleBar);
{
style.WindowPadding = ImVec2(8, 8);
style.ItemSpacing = ImVec2(8, 4);
style.IndentSpacing = 30.0f;
mainWindowPos = ImGui::GetWindowPos();
if (Global::MenuTab == 0)
DrawAimbot();
if (Global::MenuTab == 1)
DrawVisuals();
if (Global::MenuTab == 2)
DrawSkins();
if (Global::MenuTab == 3)
DrawMisc();
if (Global::MenuTab == 4)
DrawRadar();
if (Global::MenuTab == 5)
DrawColors();
}
ImGui::End();
ImGui::SetNextWindowPos(ImVec2(mainWindowPos.x - 6, mainWindowPos.y - 6));
ImGui::Begin("Menu1", &bIsGuiVisible, ImVec2(713, 462), 0.98f, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoBringToFrontOnFocus);
{
}
ImGui::End();
ImGui::SetNextWindowPos(ImVec2(mainWindowPos.x - 0, mainWindowPos.y - 85));
style.WindowPadding = ImVec2(6, 0);
style.ItemSpacing = ImVec2(8, 3);
style.FrameRounding = 4.0f;
style.WindowRounding = 4.0f;
ImGui::Begin("Menu2", &bIsGuiVisible, ImVec2(650, 100), 0.0f, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoTitleBar);
{
ImGui::PushFont(tabfont);
ImGui::Text(" ");
ImGui::SameLine();
if (ImGui::Button("A", ImVec2(80, 60))) Global::MenuTab = 0;
ImGui::SameLine();
if (ImGui::Button("D", ImVec2(80, 60))) Global::MenuTab = 1;
ImGui::SameLine();
if (ImGui::Button("B", ImVec2(80, 60))) Global::MenuTab = 2;
ImGui::SameLine();
if (ImGui::Button("G", ImVec2(80, 60))) Global::MenuTab = 3;
ImGui::SameLine();
if (ImGui::Button("C", ImVec2(80, 60))) Global::MenuTab = 4;
ImGui::SameLine();
if (ImGui::Button("H", ImVec2(80, 60))) Global::MenuTab = 5;
ImGui::PopFont();
}
ImGui::End();
}
}
using namespace Client;
bool bIsGuiInitalize = false;
bool bIsGuiVisible = false;
WNDPROC WndProc_o = nullptr;
#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR)/sizeof(*_ARR)))
LRESULT WINAPI GUI_WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
CGui::CGui() {}
CGui::~CGui()
{
ImGui_ImplDX9_Shutdown();
}
void CGui::GUI_Init(IDirect3DDevice9 * pDevice)
{
HWND hWindow = FindWindowA("Valve001", 0);
ImGui_ImplDX9_Init(hWindow, pDevice);
ImGuiIO& io = ImGui::GetIO();
ImGuiStyle& style = ImGui::GetStyle();
io.IniFilename = GuiFile.c_str();
font = io.Fonts->AddFontFromMemoryCompressedTTF(MyFont_compressed_data2, MyFont_compressed_size2, 14.f);
tabfont = io.Fonts->AddFontFromMemoryCompressedTTF(MyFont_compressed_data, MyFont_compressed_size, 62.f);
style.Alpha = 1.0f;
style.WindowPadding = ImVec2(8, 8);
style.WindowMinSize = ImVec2(32, 32);
style.WindowRounding = 0.5f;
style.WindowTitleAlign = ImVec2(0.5f, 0.5f);
style.ChildRounding = 6.0f;
style.FramePadding = ImVec2(4, 2);
style.FrameRounding = 0.0f;
style.ItemSpacing = ImVec2(8, 4);
style.ItemInnerSpacing = ImVec2(4, 4);
style.TouchExtraPadding = ImVec2(0, 0);
style.IndentSpacing = 40.0f;
style.ColumnsMinSpacing = 2.0f;
style.ScrollbarSize = 0.0f;
style.ScrollbarRounding = 0.0f;
style.GrabMinSize = 2.0f;
style.GrabRounding = 6.0f;
style.ButtonTextAlign = ImVec2(0.5f, 0.5f);
style.DisplayWindowPadding = ImVec2(22, 22);
style.DisplaySafeAreaPadding = ImVec2(4, 4);
style.AntiAliasedLines = true;
style.AntiAliasedShapes = true;
style.CurveTessellationTol = 1.25f;
RedSheme();
ImGui_ImplDX9_CreateDeviceObjects();
WndProc_o = (WNDPROC)SetWindowLongA(hWindow, GWL_WNDPROC, (LONG)(LONG_PTR)GUI_WndProc);
bIsGuiInitalize = true;
}
void CGui::GUI_Begin_Render()
{
ImGui_ImplDX9_NewFrame();
}
void CGui::GUI_End_Render()
{
ImGui::Render();
}
LRESULT WINAPI GUI_WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
static bool is_down = false;
static bool is_clicked = false;
static bool check_closed = false;
if (GetAsyncKeyState(VK_INSERT))
{
is_clicked = false;
is_down = true;
}
else if (!GetAsyncKeyState(VK_INSERT) && is_down)
{
is_clicked = true;
is_down = false;
}
else
{
is_clicked = false;
is_down = false;
}
if (!bIsGuiVisible && !is_clicked && check_closed)
{
string msg = "cl_mouseenable " + to_string(!bIsGuiVisible);
Interfaces::Engine()->ClientCmd_Unrestricted2(msg.c_str());
check_closed = false;
}
if (is_clicked)
{
bIsGuiVisible = !bIsGuiVisible;
string msg = "cl_mouseenable " + to_string(!bIsGuiVisible);
Interfaces::Engine()->ClientCmd_Unrestricted2(msg.c_str());
if (!check_closed)
check_closed = true;
}
if (bIsGuiVisible && ImGui_ImplDX9_WndProcHandler(hwnd, uMsg, wParam, lParam))
return true;
return CallWindowProcA(WndProc_o, hwnd, uMsg, wParam, lParam);
}
void CGui::GUI_Draw_Elements()
{
if (!bIsGuiInitalize || Interfaces::Engine()->IsTakingScreenshot() || !Interfaces::Engine()->IsActiveApp())
return;
g_pGui->GUI_Begin_Render();
ImGui::GetIO().MouseDrawCursor = bIsGuiVisible;
bool bOpenTimer = (bIsGuiVisible || (bC4Timer && iC4Timer));
if (g_pEsp && Settings::Esp::esp_BombTimer && bOpenTimer)
{
ImVec2 OldMinSize = ImGui::GetStyle().WindowMinSize;
ImGui::GetStyle().WindowMinSize = ImVec2(0.f, 0.f);
ImGui::SetNextWindowSize(ImVec2(130.f, 45.f));
if (ImGui::Begin("Bomb Timer", &bOpenTimer,
ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoTitleBar))
{
ImGui::Spacing();
ImGui::BeginChild("squirewareChild1", ImVec2(120, 38));
{
ImGui::Text(C4_TIMER_STRING, g_pEsp->fC4Timer);
}
ImGui::EndChild();
ImGui::End();
}
ImGui::GetStyle().WindowMinSize = OldMinSize;
}
if (bIsGuiVisible)
{
int pX, pY;
Interfaces::InputSystem()->GetCursorPosition(&pX, &pY);
ImGui::GetIO().MousePos.x = (float)pX;
ImGui::GetIO().MousePos.y = (float)pY;
Client::OnRenderGUI();
}
if (g_pRadar)
g_pRadar->OnRender();
if (Settings::Misc::misc_Spectators) g_pMisc->OnRenderSpectatorList();
g_pGui->GUI_End_Render();
}
void CGui::MenuColor()
{
ImGuiStyle& style = ImGui::GetStyle();
static int hue = 140;
ImVec4 col_text = ImColor::HSV(hue / 255.f, 20.f / 255.f, 235.f / 255.f);
ImVec4 col_main = ImColor(9, 82, 128);
ImVec4 col_back = ImColor(31, 44, 54);
ImVec4 col_area = ImColor(4, 32, 41);
}
void CGui::RedSheme()
{
ImGuiStyle& style = ImGui::GetStyle();
style.Alpha = 1.0f;
style.WindowPadding = ImVec2(8, 8);
style.WindowMinSize = ImVec2(32, 32);
style.WindowRounding = 6.0f;
style.WindowTitleAlign = ImVec2(0.5f, 0.5f);
style.ChildRounding = 6.0f;
style.FramePadding = ImVec2(4, 2);
style.FrameRounding = 0.0f;
style.ItemSpacing = ImVec2(8, 4);
style.ItemInnerSpacing = ImVec2(4, 4);
style.TouchExtraPadding = ImVec2(0, 0);
style.IndentSpacing = 40.0f;
style.ColumnsMinSpacing = 2.0f;
style.ScrollbarSize = 0.0f;
style.ScrollbarRounding = 0.0f;
style.GrabMinSize = 2.0f;
style.GrabRounding = 6.0f;
style.ButtonTextAlign = ImVec2(0.5f, 0.5f);
style.DisplayWindowPadding = ImVec2(22, 22);
style.DisplaySafeAreaPadding = ImVec2(4, 4);
style.AntiAliasedLines = true;
style.AntiAliasedShapes = true;
style.CurveTessellationTol = 1.25f;
style.Colors[ImGuiCol_Text] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f);
style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f);
style.Colors[ImGuiCol_ChildWindowBg] = ImVec4(0.87f, 0.87f, 0.87f, 0.94f);
style.Colors[ImGuiCol_WindowBg] = ImVec4(0.62f, 0.62f, 0.62f, 0.94f);
style.Colors[ImGuiCol_PopupBg] = ImVec4(0.62f, 0.62f, 0.62f, 0.94f);
style.Colors[ImGuiCol_Border] = ImVec4(0.45f, 0.45f, 0.45f, 0.94f);
style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.71f, 0.66f, 0.66f, 0.00f);
style.Colors[ImGuiCol_FrameBg] = ImVec4(0.53f, 0.57f, 0.53f, 0.66f);
style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.53f, 0.58f, 0.53f, 0.66f);
style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.53f, 0.57f, 0.53f, 0.66f);
style.Colors[ImGuiCol_TitleBg] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
style.Colors[ImGuiCol_TitleBgActive] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.72f, 0.38f, 0.38f, 0.51f);
style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.06f, 0.92f, 0.18f, 1.00f);
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.02f, 0.02f, 0.02f, 0.53f);
style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.02f, 0.60f, 0.05f, 1.00f);
style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.09f, 0.61f, 0.11f, 1.00f);
style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.04f, 0.51f, 0.16f, 1.00f);
style.Colors[ImGuiCol_CheckMark] = ImVec4(0.07f, 0.56f, 0.18f, 1.00f);
style.Colors[ImGuiCol_SliderGrab] = ImVec4(0.12f, 0.69f, 0.30f, 1.00f);
style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(0.07f, 0.73f, 0.19f, 1.00f);
style.Colors[ImGuiCol_Button] = ImVec4(0.05f, 0.68f, 0.25f, 0.40f);
style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.33f, 0.72f, 0.42f, 1.00f);
style.Colors[ImGuiCol_ButtonActive] = ImVec4(0.33f, 0.72f, 0.42f, 1.00f);
style.Colors[ImGuiCol_Header] = ImVec4(0.05f, 0.54f, 0.23f, 0.50f);
style.Colors[ImGuiCol_HeaderHovered] = ImVec4(0.05f, 0.54f, 0.23f, 0.50f);
style.Colors[ImGuiCol_HeaderActive] = ImVec4(0.05f, 0.54f, 0.23f, 0.50f);
style.Colors[ImGuiCol_Separator] = ImVec4(0.07f, 0.76f, 0.31f, 0.50f);
style.Colors[ImGuiCol_SeparatorHovered] = ImVec4(0.07f, 0.76f, 0.31f, 0.50f);
style.Colors[ImGuiCol_SeparatorActive] = ImVec4(0.07f, 0.76f, 0.31f, 0.50f);
style.Colors[ImGuiCol_ResizeGrip] = ImVec4(0.26f, 0.59f, 0.98f, 0.25f);
style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f);
style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f);
style.Colors[ImGuiCol_CloseButton] = ImVec4(0.14f, 0.75f, 0.14f, 0.00f);
style.Colors[ImGuiCol_CloseButtonHovered] = ImVec4(0.14f, 0.75f, 0.14f, 0.00f);
style.Colors[ImGuiCol_CloseButtonActive] = ImVec4(0.09f, 0.46f, 0.02f, 0.50f);
style.Colors[ImGuiCol_PlotLines] = ImVec4(0.82f, 0.12f, 0.12f, 1.00f);
style.Colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f);
style.Colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f);
style.Colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f);
style.Colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f);
style.Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f);
style.Colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f);
}
namespace ImGui
{
static auto vector_getter = [](void* vec, int idx, const char** out_text)
{
auto& vector = *static_cast<std::vector<std::string>*>(vec);
if (idx < 0 || idx >= static_cast<int>(vector.size())) { return false; }
*out_text = vector.at(idx).c_str();
return true;
};
IMGUI_API bool ComboBoxArray(const char* label, int* currIndex, std::vector<std::string>& values)
{
if (values.empty()) { return false; }
return Combo(label, currIndex, vector_getter,
static_cast<void*>(&values), values.size());
}
IMGUI_API bool TabLabels(const char **tabLabels, int tabSize, int &tabIndex, int *tabOrder)
{
ImGuiStyle& style = ImGui::GetStyle();
const ImVec2 itemSpacing = style.ItemSpacing;
const ImVec4 color = style.Colors[ImGuiCol_Button];
const ImVec4 colorActive = style.Colors[ImGuiCol_ButtonActive];
const ImVec4 colorHover = style.Colors[ImGuiCol_ButtonHovered];
const ImVec4 colorText = style.Colors[ImGuiCol_Text];
style.ItemSpacing.x = 2.5;
style.ItemSpacing.y = 1;
const ImVec4 colorSelectedTab = ImVec4(color.x, color.y, color.z, color.w*0.5f);
const ImVec4 colorSelectedTabHovered = ImVec4(colorHover.x, colorHover.y, colorHover.z, colorHover.w*0.5f);
const ImVec4 colorSelectedTabText = ImVec4(colorText.x*0.8f, colorText.y*0.8f, colorText.z*0.8f, colorText.w*0.8f);
if (tabSize>0 && (tabIndex<0 || tabIndex >= tabSize))
{
if (!tabOrder)
{
tabIndex = 0;
}
else
{
tabIndex = -1;
}
}
float windowWidth = 0.f, sumX = 0.f;
windowWidth = ImGui::GetWindowWidth() - style.WindowPadding.x - (ImGui::GetScrollMaxY()>0 ? style.ScrollbarSize : 0.f);
const bool isMMBreleased = ImGui::IsMouseReleased(2);
int justClosedTabIndex = -1, newtabIndex = tabIndex;
bool selection_changed = false; bool noButtonDrawn = true;
for (int j = 0, i; j < tabSize; j++)
{
i = tabOrder ? tabOrder[j] : j;
if (i == -1) continue;
if (sumX > 0.f)
{
sumX += style.ItemSpacing.x;
sumX += ImGui::CalcTextSize(tabLabels[i]).x + 2.f*style.FramePadding.x;
if (sumX>windowWidth)
{
sumX = 0.f;
}
else
{
ImGui::SameLine();
}
}
if (i != tabIndex)
{
// Push the style
style.Colors[ImGuiCol_Button] = colorSelectedTab;
style.Colors[ImGuiCol_ButtonActive] = colorSelectedTab;
style.Colors[ImGuiCol_ButtonHovered] = colorSelectedTabHovered;
style.Colors[ImGuiCol_Text] = colorSelectedTabText;
}
// Draw the button
ImGui::PushID(i); // otherwise two tabs with the same name would clash.
if (ImGui::Button(tabLabels[i], ImVec2(67.f, 15.f))) { selection_changed = (tabIndex != i); newtabIndex = i; }
ImGui::PopID();
if (i != tabIndex)
{
// Reset the style
style.Colors[ImGuiCol_Button] = color;
style.Colors[ImGuiCol_ButtonActive] = colorActive;
style.Colors[ImGuiCol_ButtonHovered] = colorHover;
style.Colors[ImGuiCol_Text] = colorText;
}
noButtonDrawn = false;
if (sumX == 0.f) sumX = style.WindowPadding.x + ImGui::GetItemRectSize().x; // First element of a line
}
tabIndex = newtabIndex;
// Change selected tab when user closes the selected tab
if (tabIndex == justClosedTabIndex && tabIndex >= 0)
{
tabIndex = -1;
for (int j = 0, i; j < tabSize; j++)
{
i = tabOrder ? tabOrder[j] : j;
if (i == -1)
{
continue;
}
tabIndex = i;
break;
}
}
// Restore the style
style.Colors[ImGuiCol_Button] = color;
style.Colors[ImGuiCol_ButtonActive] = colorActive;
style.Colors[ImGuiCol_ButtonHovered] = colorHover;
style.Colors[ImGuiCol_Text] = colorText;
style.ItemSpacing = itemSpacing;
return selection_changed;
}
}