меню на imgui исходники
Меню на imgui исходники
Предоставляю вам исходник чистого меню для чита кс:го. Дальше я думаю вы знаете что делать :
#include «Cheat.h»
#include «Menu.h»
void GUI_Init( IDirect3DDevice9* pDevice );
EndSceneFn oEndScene;
int iTab;
void color()
<
ImGuiStyle& style = ImGui::GetStyle();
style.Colors[ImGuiCol_Text] = ImVec4(0.86f, 0.93f, 0.89f, 0.78f);
style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.86f, 0.93f, 0.89f, 0.78f);
style.Colors[ImGuiCol_WindowBg] = ImColor(15, 15, 15, 255);
style.Colors[ImGuiCol_ChildWindowBg] = ImColor(10, 10, 10, 255);
style.Colors[ImGuiCol_Border] = ImColor(15, 15, 15, 255);
style.Colors[ImGuiCol_FrameBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.09f);
style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);
style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.04f, 0.04f, 0.04f, 0.88f);
style.Colors[ImGuiCol_TitleBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.20f, 0.22f, 0.27f, 0.75f);
style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.35f, 0.35f, 0.35f, 1.00f);
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.13f, 0.13f, 0.13f, 1.00f);
style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.09f, 0.15f, 0.16f, 1.00f);
style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.15f, 0.60f, 0.78f, 0.78f);
style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
style.Colors[ImGuiCol_Button] = ImVec4(0.24f, 0.40f, 0.95f, 1.00f);
style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.24f, 0.40f, 0.95f, 0.59f);
style.Colors[ImGuiCol_ButtonActive] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);
style.Colors[ImGuiCol_Header] = ImVec4(0.24f, 0.40f, 0.95f, 1.00f);
style.Colors[ImGuiCol_HeaderHovered] = ImVec4(0.24f, 0.40f, 0.95f, 0.59f);
style.Colors[ImGuiCol_HeaderActive] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);
style.Colors[ImGuiCol_ColumnHovered] = ImVec4(0.70f, 0.02f, 0.60f, 0.22f);
style.Colors[ImGuiCol_CloseButton] = ImVec4(0.24f, 0.40f, 0.95f, 1.00f);
style.Colors[ImGuiCol_CloseButtonHovered] = ImVec4(0.24f, 0.40f, 0.95f, 0.59f);
>
void styled()
<
ImGuiStyle& style = ImGui::GetStyle();
style.WindowRounding = 0.f;
style.FramePadding = ImVec2(4, 0);
style.WindowPadding = ImVec2(0, 0);
style.ItemSpacing = ImVec2(0, 0);
style.ScrollbarSize = 10.f;
style.ScrollbarRounding = 0.f;
style.GrabMinSize = 5.f;
>
void ButtonColor(int r, int g, int b)
<
ImGuiStyle& style = ImGui::GetStyle();
style.Colors[ImGuiCol_Text] = ImVec4(0.86f, 0.93f, 0.89f, 0.78f);
style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.86f, 0.93f, 0.89f, 0.78f);
style.Colors[ImGuiCol_WindowBg] = ImColor(15, 15, 15, 255);
style.Colors[ImGuiCol_ChildWindowBg] = ImColor(10, 10, 10, 255);
style.Colors[ImGuiCol_Border] = ImColor(15, 15, 15, 255);
style.Colors[ImGuiCol_FrameBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.09f);
style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);
style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.04f, 0.04f, 0.04f, 0.88f);
style.Colors[ImGuiCol_TitleBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.20f, 0.22f, 0.27f, 0.75f);
style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.35f, 0.35f, 0.35f, 1.00f);
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.13f, 0.13f, 0.13f, 1.00f);
style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.09f, 0.15f, 0.16f, 1.00f);
style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.15f, 0.60f, 0.78f, 0.78f);
style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
style.Colors[ImGuiCol_Button] = ImVec4(0.24f, 0.40f, 0.95f, 1.00f);
style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.24f, 0.40f, 0.95f, 0.59f);
style.Colors[ImGuiCol_ButtonActive] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);
style.Colors[ImGuiCol_Header] = ImVec4(0.24f, 0.40f, 0.95f, 1.00f);
style.Colors[ImGuiCol_HeaderHovered] = ImVec4(0.24f, 0.40f, 0.95f, 0.59f);
style.Colors[ImGuiCol_HeaderActive] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);
style.Colors[ImGuiCol_ColumnHovered] = ImVec4(0.70f, 0.02f, 0.60f, 0.22f);
style.Colors[ImGuiCol_CloseButton] = ImVec4(0.24f, 0.40f, 0.95f, 1.00f);
style.Colors[ImGuiCol_CloseButtonHovered] = ImVec4(0.24f, 0.40f, 0.95f, 0.59f);
ImGui::Begin(«skeetttt», NULL, ImVec2(840, 560), 1.f, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoScrollbar);
<
ImGui::Columns(2, nullptr, false);
ImGui::SetColumnOffset(1, 135);
ButtonColor(15, 15, 15);
ImGui::Button(«##upprtabs», ImVec2(114, 20));
ImGui::SameLine();
styled();
color();
ButtonColor(50, 50, 50);
ImGui::Button(«##rageupline», ImVec2(1, 20));
/*rage*/
<
if (iTab == 0) ButtonColor(50, 50, 50); else ButtonColor(15, 15, 15);
ImGui::Button(«##rageupline», ImVec2(118, 1));
ButtonColor(50, 50, 50);
ImGui::Button(«##fgfgfg», ImVec2(1, 1));
ButtonColor(15, 15, 15);
if (iTab == 0) style.Colors[ImGuiCol_Text] = ImColor(200, 200, 200); else style.Colors[ImGuiCol_Text] = ImColor(80, 80, 80);
if (ImGui::Button(«A», ImVec2(118, 100))) iTab = 0;
if (iTab == 0) ButtonColor(50, 50, 50); else ButtonColor(15, 15, 15);
ImGui::Button(«##ragedownline», ImVec2(118, 1));
ButtonColor(50, 50, 50);
ImGui::Button(«##fgfgfg», ImVec2(1, 1));
/*legit*/
<
if (iTab == 1) ButtonColor(50, 50, 50); else ButtonColor(15, 15, 15);
ImGui::Button(«##lupline», ImVec2(118, 1));
ButtonColor(50, 50, 50);
ImGui::Button(«##fgfgfg», ImVec2(1, 1));
ButtonColor(15, 15, 15);
if (iTab == 1) style.Colors[ImGuiCol_Text] = ImColor(200, 200, 200); else style.Colors[ImGuiCol_Text] = ImColor(80, 80, 80);
if (ImGui::Button(«B», ImVec2(118, 100))) iTab = 1;
if (iTab == 1) ButtonColor(50, 50, 50); else ButtonColor(15, 15, 15);
ImGui::Button(«##ldownline», ImVec2(118, 1));
ButtonColor(50, 50, 50);
ImGui::Button(«##fgfgfg», ImVec2(1, 1));
>
/*visuals*/
<
if (iTab == 2) ButtonColor(50, 50, 50); else ButtonColor(15, 15, 15);
ImGui::Button(«##vupline», ImVec2(118, 1));
ButtonColor(50, 50, 50);
ImGui::Button(«##fgfgfg», ImVec2(1, 1));
ButtonColor(15, 15, 15);
if (iTab == 2) style.Colors[ImGuiCol_Text] = ImColor(200, 200, 200); else style.Colors[ImGuiCol_Text] = ImColor(80, 80, 80);
if (ImGui::Button(«C», ImVec2(118, 100))) iTab = 2;
ImGui::SameLine();
if (iTab == 2) ButtonColor(50, 50, 50); else ButtonColor(15, 15, 15);
ImGui::Button(«##vdownline», ImVec2(118, 1));
ButtonColor(50, 50, 50);
ImGui::Button(«##fgfgfg», ImVec2(1, 1));
>
/*misc*/
<
if (iTab == 3) ButtonColor(50, 50, 50); else ButtonColor(15, 15, 15);
ImGui::Button(«##mupline», ImVec2(118, 1));
ButtonColor(50, 50, 50);
ImGui::Button(«##fgfgfg», ImVec2(1, 1));
ButtonColor(15, 15, 15);
if (iTab == 3) style.Colors[ImGuiCol_Text] = ImColor(200, 200, 200); else style.Colors[ImGuiCol_Text] = ImColor(80, 80, 80);
if (ImGui::Button(«D», ImVec2(118, 100))) iTab = 3;
ImGui::SameLine();
if (iTab == 3) ButtonColor(50, 50, 50); else ButtonColor(15, 15, 15);
ImGui::Button(«##mdownline», ImVec2(118, 1));
ButtonColor(50, 50, 50);
ImGui::Button(«##fgfgfg», ImVec2(1, 1));
>
/*skins*/
<
if (iTab == 4) ButtonColor(50, 50, 50); else ButtonColor(15, 15, 15);
ImGui::Button(«##supline», ImVec2(118, 1));
ButtonColor(50, 50, 50);
ImGui::Button(«##fgfgfg», ImVec2(1, 1));
ButtonColor(15, 15, 15);
if (iTab == 4) style.Colors[ImGuiCol_Text] = ImColor(200, 200, 200); else style.Colors[ImGuiCol_Text] = ImColor(80, 80, 80);
if (ImGui::Button(«E», ImVec2(118, 100))) iTab = 4;
ImGui::SameLine();
if (iTab == 4) ButtonColor(50, 50, 50); else ButtonColor(15, 15, 15);
ImGui::Button(«##sdownline», ImVec2(118, 1));
ButtonColor(50, 50, 50);
ImGui::Button(«##fgfgfg», ImVec2(1, 1));
>
ButtonColor(15, 15, 15);
ImGui::Button(«##upprtabs», ImVec2(118, 20));
ButtonColor(50, 50, 50);
ImGui::Button(«##rageupline», ImVec2(1, 20));
ImGui::NextColumn();
style.WindowPadding = ImVec2(8, 8);
style.ItemSpacing = ImVec2(4, 4);
style.Colors[ImGuiCol_Text] = ImVec4(0.86f, 0.93f, 0.89f, 0.78f);
style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.86f, 0.93f, 0.89f, 0.78f);
style.Colors[ImGuiCol_WindowBg] = ImColor(15, 15, 15, 255);
style.Colors[ImGuiCol_ChildWindowBg] = ImColor(15, 15, 15, 255);
style.Colors[ImGuiCol_Border] = ImColor(15, 15, 15, 255);
style.Colors[ImGuiCol_FrameBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.09f);
style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);
style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.04f, 0.04f, 0.04f, 0.88f);
style.Colors[ImGuiCol_TitleBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.20f, 0.22f, 0.27f, 0.75f);
style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.35f, 0.35f, 0.35f, 1.00f);
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.13f, 0.13f, 0.13f, 1.00f);
style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.09f, 0.15f, 0.16f, 1.00f);
style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.15f, 0.60f, 0.78f, 0.78f);
style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
style.Colors[ImGuiCol_Button] = ImVec4(0.24f, 0.40f, 0.95f, 1.00f);
style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.24f, 0.40f, 0.95f, 0.59f);
style.Colors[ImGuiCol_ButtonActive] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);
style.Colors[ImGuiCol_Header] = ImVec4(0.24f, 0.40f, 0.95f, 1.00f);
style.Colors[ImGuiCol_HeaderHovered] = ImVec4(0.24f, 0.40f, 0.95f, 0.59f);
style.Colors[ImGuiCol_HeaderActive] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);
style.Colors[ImGuiCol_ColumnHovered] = ImVec4(0.70f, 0.02f, 0.60f, 0.22f);
style.Colors[ImGuiCol_CloseButton] = ImVec4(0.24f, 0.40f, 0.95f, 1.00f);
style.Colors[ImGuiCol_CloseButtonHovered] = ImVec4(0.24f, 0.40f, 0.95f, 0.59f);
ImGui::BeginChild(«main», ImVec2(700, 540));
<
//do tabs here
>ImGui::EndChild();
return oEndScene( pDevice );
>
auto hr = oReset( pDevice, pPresentationParameters );
ImGui_ImplDX9_CreateDeviceObjects();
void GUI_Init( IDirect3DDevice9* pDevice )
<
ImGui_ImplDX9_Init( G::Window, pDevice );
Код без хайда, так что забирайте бесплатно!.