HELP (imgui)

Статус
В этой теме нельзя размещать новые ответы.
Забаненный
Статус
Оффлайн
Регистрация
12 Сен 2016
Сообщения
71
Реакции[?]
2
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Пожалуйста, авторизуйтесь для просмотра ссылки.
- картинка











Вот сам код
#include "../Cheat.h"
#include "Menu.h"
#include "../Xor.h"
#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR)/sizeof(*_ARR)))
void GUI_Init( IDirect3DDevice9* pDevice );
bool legitTab = true;
bool visualsTab = false;
bool radarTab = false;
bool rageTab = false;
bool miscTab = false;
bool cfgTab = false;
void SelectTab(bool* tab)
{
legitTab = false;
visualsTab = false;
radarTab = false;
rageTab = false;
miscTab = false;
cfgTab = false;
*tab = true;
}
bool DrawTab(const char* name, ImVec2 tabWidth, bool *boole, bool forceTabs = true)
{
bool ret = false;
if (ImGui::Tab(name, tabWidth, *boole))
{
ret = true;
*boole = true;
if (forceTabs) SelectTab(boole);
}
return ret;
}
void CfgTab()
{
ImVec2 siz = ImVec2(200, 370 - ImGui::GetCursorPosY() - 40);
ImVec2 size = ImVec2(290, 372 - ImGui::GetCursorPosY() - 40);
ImGui::PushItemWidth(129.f);
ImGui::Combo(charenc("##CFGSELECTION"), &MenuSettings.CFGbase.curcfg, charenc("MM\0\rLegit\0\rMM HvH\0\rRage\0\rPublic\0\0"), -1);
if (ImGui::Button(charenc("Load"), ImVec2(60.275f, 20.f))) {
Config->Load();
}
ImGui::SameLine();
if (ImGui::Button(charenc("Save"), ImVec2(60.275f, 20.f))) {
Config->Save();
}
if (ImGui::Button(charenc("Reset"), ImVec2(129.f, 20.f))) {
Config->Setup();
}
}
void RageTab()
{
ImVec2 siz = ImVec2(200, 370 - ImGui::GetCursorPosY() - 40);
ImVec2 size = ImVec2(290, 372 - ImGui::GetCursorPosY() - 40);
ImGui::Checkbox(charenc("Enable Skins"), &MenuSettings.Skins.SSEnabled);
if (ImGui::BeginChild(charenc("##skins-child"), size, false))
{
if (G::LocalPlayer->GetAlive() && I::Engine->IsConnected())
ImGui::Text(XorStr("Selecting Skin For: %s"), G::LocalPlayer->GetWeapon()->GetWeaponName().c_str());
else
ImGui::Text(XorStr("Not alive/unknown weapon"));
ImGui::Separator();
ImGui::SliderInt(XorStr("Paint Kit"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].PaintKit, 0, 600);
if (ImGui::Combo(XorStr("Knife Model"), &MenuSettings.Skins.KnifeModel, charenc("No Knife\0\rBayonet\0\rFlip Knife\0\rGut Knife\0\rKarambit\0\rM9 Bayonet\0\rHuntsman Knife\0\rButterfly Knife\0\rFalchion Knife\0\rShadow Daggers\0\rBowie Knife\0\0"), -1))
Utils::CL_FullUpdate();
if (ImGui::Button(XorStr("Full Update"), ImVec2(93.f, 20.f))) {
Utils::CL_FullUpdate();
}
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##gloves-misc"), size, false))
{
ImGui::Text(XorStr("Gloves"));
ImGui::Separator();
if (ImGui::Combo(XorStr("Glove Model"), &MenuSettings.Skins.Glove, XorStr("No Glove\0\rBloodhound\0\rSport\0\rDriver\0\rWraps\0\rMoto\0\rSpecialist\0\0"), -1))
Utils::CL_FullUpdate();
const char* gstr = XorStr("Select Glove type!");
if (MenuSettings.Skins.Glove == 1)
{
gstr = XorStr("Select Glove type!");
}
else if (MenuSettings.Skins.Glove == 1)
{
gstr = XorStr("Charred\0\rSnakebite\0\rBronzed\0\rGuerilla\0\0");
}
else if (MenuSettings.Skins.Glove == 2)
{
gstr = XorStr("Hedge Maze\0\rPandoras Box\0\rSuperconductor\0\rArid\0\0");
}
else if (MenuSettings.Skins.Glove == 3)
{
gstr = XorStr("Lunar Weave\0\rConvoy\0\rCrimson Weave\0\rDiamondback\0\0");
}
else if (MenuSettings.Skins.Glove == 4)
{
gstr = XorStr("Leather\0\rSpruce DDPAT\0\rSlaughter\0\rBadlands\0\0");
}
else if (MenuSettings.Skins.Glove == 5)
{
gstr = XorStr("Eclipse\0\rSpearmint\0\rBoom!\0\rCool Mint\0\0");
}
else if (MenuSettings.Skins.Glove == 6)
{
gstr = XorStr("Forest DDPAT\0\rCrimson Kimono\0\rEmerald Web\0\rFoundation\0\0");
}
if (ImGui::Combo(XorStr("##2"), &MenuSettings.Skins.GloveSkin, gstr, -1))
Utils::CL_FullUpdate();
}ImGui::EndChild(); ImGui::NewLine();
}
void LegitTab()
{
ImVec2 siz = ImVec2(200, 370 - ImGui::GetCursorPosY() - 40);
ImVec2 size = ImVec2(290, 372 - ImGui::GetCursorPosY() - 40);
if (ImGui::BeginChild(charenc("##legitbot-child"), siz, false))
{
ImGui::Text(charenc("Main Settings"));
ImGui::Separator();
ImGui::Checkbox(charenc("Enable Aimbot"), &MenuSettings.Legitbot.Aimbot.Enabled);
ImGui::Combo(charenc("Aimbot Key"), &MenuSettings.Legitbot.Aimbot.Key, keyNames, IM_ARRAYSIZE(keyNames));
ImGui::Checkbox(charenc("Smoke Check"), &MenuSettings.Legitbot.Aimbot.SmokeCheck);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("If Enemy is behind smoke, aim wont work"));
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##legitbotwpnz-child"), size, false))
{
if (I::Engine->IsConnected())
ImGui::Text(charenc("Settings for %s"), G::LocalPlayer->GetWeapon()->GetWeaponName().c_str());
else
ImGui::Text(charenc("Not alive/unknown weapon"));
ImGui::Separator();
ImGui::Checkbox(charenc("BestHit"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Nearest);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aims at nearest to crosshair bone"));
if (!MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Nearest) {
ImGui::Combo(charenc("Aimspot"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Bone, charenc("PELVIS\0\r\0\r\0\rHIP\0\rLOWER SPINE\0\rMIDDLE SPINE\0\rUPPER SPINE\0\rNECK\0\rHEAD\0\0"), -1);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aim bone"));
}
ImGui::Checkbox(charenc("pSilent"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].pSilent);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Perfect Silent"));
ImGui::SliderInt(charenc("Start Bullet"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].StartBullet, 1, 30);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot start bullet"));
ImGui::SliderInt(charenc("End Bullet"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].EndBullet, 1, 30);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot end bullet"));
if (MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].pSilent) {
ImGui::SliderFloat(charenc("pSilent FOV"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].pSilentFov, 0.1f, 3.f, charenc("%.1f"));
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot field of view for pSilent"));
}
ImGui::SliderFloat(charenc("FOV"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Fov, 0.1f, 20.f, charenc("%.1f"));
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot field of view"));
ImGui::SliderFloat(charenc("Smooth"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Smooth, 0.1f, 100.f, charenc("%.1f"));
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot smoothness"));
ImGui::SliderInt(charenc("RCS Vertical"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].RcsX, 1, 100);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Recoil control system"));
ImGui::SliderInt(charenc("RCS Horizontal"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].RcsY, 1, 100);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Recoil control system"));
}ImGui::EndChild(); ImGui::NewLine();
}
void VisTab()
{
static bool vistab = true;
static bool coltab;
ImVec2 siz = ImVec2(185, 360 - ImGui::GetCursorPosY() - 40);
if (DrawTab(charenc("Visuals"), ImVec2(265.f, 20.f), &vistab, false))
{
vistab = true;
coltab = false;
}
ImGui::SameLine();
if (DrawTab(charenc("Colors"), ImVec2(265.f, 20.f), &coltab, false))
{
vistab = false;
coltab = true;
}
if (vistab)
{
if (ImGui::BeginChild(charenc("##esp-child"), siz, false))
{
ImGui::Text(charenc("Visuals"));
ImGui::Separator();
ImGui::Checkbox(charenc("Enable"), &MenuSettings.Visuals.Enabled);
ImGui::Combo(charenc("Box"), &MenuSettings.Visuals.Box, charenc("Off\0\rOutline\0\rCorners\0\0"), -1);
ImGui::Checkbox(charenc("Team"), &MenuSettings.Visuals.Filter.Friendlies);
ImGui::Separator();
ImGui::Text(charenc("Misc"));
//ImGui::Checkbox(charenc("Spectator List"), &MenuSettings.Visuals.SpectatorList);
ImGui::Checkbox(charenc("Crosshair"), &MenuSettings.Visuals.CrosshairOn);
//ImGui::Checkbox(charenc("FOV Circle"), &MenuSettings.Visuals.CrosshairFOV);
//MenuSettings.Visuals.Filter.Friendlies
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##chams-child"), siz, false))
{
ImGui::Text(charenc("Chams"));
ImGui::Separator();
ImGui::Checkbox(charenc("Enable Chams"), &MenuSettings.Visuals.Chams.Enabled);
ImGui::Combo(charenc("Mode"), &MenuSettings.Visuals.Chams.Mode, chamsMode, IM_ARRAYSIZE(chamsMode));
ImGui::Checkbox(charenc("XQZ"), &MenuSettings.Visuals.Chams.XQZ);
ImGui::Separator();
ImGui::Text(charenc("Removals"));
ImGui::Checkbox(charenc("Visual Recoil"), &MenuSettings.Visuals.Removals.VisualRecoil);
ImGui::Checkbox(charenc("Weapon"), &MenuSettings.Visuals.Removals.Weapon);
ImGui::Checkbox(charenc("Flash"), &MenuSettings.Visuals.Removals.Flash);
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##info-child"), siz, false))
{
ImGui::Text(charenc("Information"));
ImGui::Separator();
ImGui::Selectable(charenc("Name"), &MenuSettings.Visuals.Info.Name);
ImGui::Selectable(charenc("Health"), &MenuSettings.Visuals.Info.Health);
ImGui::Selectable(charenc("Bomb"), &MenuSettings.Visuals.Filter.C4);
}ImGui::EndChild(); ImGui::NewLine();
}
else if (coltab)
{
if (ImGui::BeginChild(charenc("##colors-child"), ImVec2(460, 360 - ImGui::GetCursorPosY() - 40), false))
{
ImGui::Text(charenc("Chams Colors"));
ImGui::Separator();
ImGui::Text(charenc("Chams CT InVisible"));
ImGui::ColorEdit3("##CTIV", MenuSettings.CFGbase.g_iChamsCTH);
ImGui::Text(charenc("Chams CT Visible"));
ImGui::ColorEdit3("##CTTH", MenuSettings.CFGbase.g_iChamsCTV);
ImGui::Text(charenc("Chams T InVisible"));
ImGui::ColorEdit3("##CTH", MenuSettings.CFGbase.g_iChamsTH);
ImGui::Text(charenc("Chams T Visible"));
ImGui::ColorEdit3("##CTV", MenuSettings.CFGbase.g_iChamsTV);
//MenuSettings.Visuals.Filter.Friendlies
}ImGui::EndChild(); ImGui::NewLine();
}
}
void MiscTab()
{
ImVec2 siz = ImVec2(185, 350 - ImGui::GetCursorPosY() - 40);
ImVec2 size = ImVec2(240, 290 - ImGui::GetCursorPosY() - 40);
static bool misctab = true;
static bool skintab;
if (DrawTab(charenc("Misc"), ImVec2(265.f, 20.f), &misctab, false))
{
misctab = true;
}
if (misctab)
{
if (ImGui::BeginChild(charenc("##movement-misc"), siz, false))
{
ImGui::Text(charenc("Movement"));
ImGui::Separator();
//ImGui::SliderInt(charenc("FakeLag"), &MenuSettings.Misc.FakeLag, 0, 16);
ImGui::Checkbox(charenc("Bunny Hop"), &MenuSettings.Misc.Bhop);
ImGui::Checkbox(charenc("Autostrafe"), &MenuSettings.Misc.AutoStrafe);
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##misc-child"), siz, false))
{
ImGui::Text(charenc("Misc"));
ImGui::Separator();
ImGui::Checkbox(charenc("Reveal Ranks"), &MenuSettings.Misc.Ranks);
ImGui::Checkbox(charenc("Auto Accept"), &MenuSettings.Misc.AutoAccept);
/*ImGui::Checkbox(charenc("Anti OBS"), &MenuSettings.Misc.AntiOBS);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Hide cheat when recording"));*/
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##ad-child"), siz, false))
{
ImGui::Text(charenc("Advertisment"));
ImGui::Separator();
ImGui::Text(charenc("Clan Tag"));
if (ImGui::Combo(charenc("##ANIMATIONTYPE"), &MenuSettings.Misc.Clantag, charenc("Off\0\rStatic\0\rScroll\0\rNice\0\0"), -1))
Func::ClantagChanger->BeginFrame();
if (ImGui::Button(charenc("Spam Nick"), ImVec2(80, 20))) {
MenuSettings.Misc.SpamName = true;
}
ImGui::Text(charenc("Chat Spam"));
ImGui::Combo(charenc("##CHATSPAMSELECTION"), &MenuSettings.Misc.ChatSpam, charenc("Off\0\rSlow\0\rFast\0\0"), -1);
}ImGui::EndChild(); ImGui::NewLine();
}
}
EndSceneFn oEndScene;
long __stdcall Hks::EndScene(IDirect3DDevice9* pDevice)
{
if (!G::d3dinit)
GUI_Init(pDevice);
H::D3D9->ReHook();
ImGui::GetIO().MouseDrawCursor = MenuSettings.Menu.Opened;
ImGui_ImplDX9_NewFrame();
if (MenuSettings.Visuals.SpectatorList)
Func::Visuals->SpecList();
if (MenuSettings.Menu.Opened)
{
int pX, pY;
I::InputSystem->GetCursorPosition(&pX, &pY);
ImGuiIO& io = ImGui::GetIO();
io.MousePos.x = (float)(pX);
io.MousePos.y = (float)(pY);
ImGui::Begin(charenc("Tenderness Reborn"), &MenuSettings.Menu.Opened, ImVec2(720, 400), 0.9f, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar);
{
int curHeight = 400;
ImVec2 siz = ImVec2(185, curHeight - ImGui::GetCursorPosY() - 40);
ImVec2 lPos = ImGui::GetCursorPos();
DrawTab(charenc("skin"), ImVec2(145.f, 50.f), &rageTab);
DrawTab(charenc("Legit"), ImVec2(145.f, 50.f), &legitTab);
DrawTab(charenc("Visuals"), ImVec2(145.f, 50.f), &visualsTab);
DrawTab(charenc("Misc"), ImVec2(145.f, 50.f), &miscTab);
DrawTab(charenc("Config"), ImVec2(145.f, 50.f), &cfgTab);
//ImGui::PushItemWidth(145.f);
}
ImGui::EndChild();
//ImGui::SetCursorPos(ImVec2(160, lPos.y));
ImGui::BeginChild(charenc("##Menu-Child"), ImVec2(0, 0), true);
{
if (legitTab) LegitTab();
if (visualsTab) VisTab();
if (rageTab) RageTab();
if (miscTab) MiscTab();
if (cfgTab) CfgTab();
}
ImGui::EndChild();
//ImGui::Separator();
//ImGui::Columns( 2, charenc( "##config-settings" ), false );
//if( ImGui::Button( charenc( "Save Config" ), ImVec2( 93.f, 20.f ) ) ) Config->Save();
//ImGui::NextColumn();
//if( ImGui::Button( charenc( "Load Config" ), ImVec2( 93.f, 20.f ) ) ) Config->Load();
//ImGui::Columns( 1 );
}
ImGui::End(); //End main window
}
ImGui::Render();
return oEndScene(pDevice);
}
ResetFn oReset;
long __stdcall Hks::Reset( IDirect3DDevice9* pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
{
if( !G::d3dinit )
return oReset( pDevice, pPresentationParameters );
ImGui_ImplDX9_InvalidateDeviceObjects();
auto hr = oReset( pDevice, pPresentationParameters );
ImGui_ImplDX9_CreateDeviceObjects();
return hr;
}
void color()
{
//int(enemyColor[0] * 255.0f), int(enemyColor[1] * 255.0f), int(enemyColor[2] * 255.0f), 255
ImColor mainColor = ImColor(0, 130, 22, 255);
ImColor bodyColor = ImColor(24, 24, 24, 240);
ImColor memeColor = ImColor(54, 54, 54, 240);
ImColor fontColor = ImColor(255, 255, 255, 255);
ImGuiStyle& style = ImGui::GetStyle();
ImVec4 mainColorHovered = ImVec4(mainColor.Value.x + 0.1f, mainColor.Value.y + 0.1f, mainColor.Value.z + 0.1f, mainColor.Value.w);
ImVec4 mainColorActive = ImVec4(mainColor.Value.x + 0.2f, mainColor.Value.y + 0.2f, mainColor.Value.z + 0.2f, mainColor.Value.w);
ImVec4 menubarColor = ImVec4(bodyColor.Value.x, bodyColor.Value.y, bodyColor.Value.z, bodyColor.Value.w - 0.8f);
ImVec4 frameBgColor = ImVec4(memeColor.Value.x, memeColor.Value.y, memeColor.Value.z, memeColor.Value.w);
ImVec4 tooltipBgColor = ImVec4(bodyColor.Value.x, bodyColor.Value.y, bodyColor.Value.z, bodyColor.Value.w + .05f);
style.Alpha = 1.0f;
style.WindowPadding = ImVec2(8, 8);
style.WindowMinSize = ImVec2(32, 32);
style.WindowRounding = 0.0f;
style.WindowTitleAlign = ImVec2(0.5f, 0.5f);
style.ChildWindowRounding = 0.0f;
style.FramePadding = ImVec2(4, 3);
style.FrameRounding = 0.0f;
style.ItemSpacing = ImVec2(8, 4);
style.ItemInnerSpacing = ImVec2(4, 4);
style.TouchExtraPadding = ImVec2(0, 0);
style.IndentSpacing = 21.0f;
style.ColumnsMinSpacing = 3.0f;
style.ScrollbarSize = 12.0f;
style.ScrollbarRounding = 0.0f;
style.GrabMinSize = 5.0f;
style.GrabRounding = 0.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] = fontColor;
style.Colors[ImGuiCol_Tab] = bodyColor;
style.Colors[ImGuiCol_TabHovered] = mainColorHovered;
style.Colors[ImGuiCol_TabActive] = mainColorActive;
style.Colors[ImGuiCol_TabText] = ImColor(fontColor.Value.x - .2f, fontColor.Value.y - .2f, fontColor.Value.z - .2f, fontColor.Value.w);
style.Colors[ImGuiCol_TabTextActive] = fontColor;
style.Colors[ImGuiCol_TabSelected] = mainColor;
style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f);
style.Colors[ImGuiCol_WindowBg] = bodyColor;
style.Colors[ImGuiCol_ChildWindowBg] = ImVec4(.0f, .0f, .0f, .0f);
style.Colors[ImGuiCol_PopupBg] = tooltipBgColor;
style.Colors[ImGuiCol_Border] = mainColor;
style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.92f, 0.91f, 0.88f, 0.00f);
style.Colors[ImGuiCol_FrameBg] = frameBgColor;
style.Colors[ImGuiCol_FrameBgHovered] = mainColorHovered;
style.Colors[ImGuiCol_FrameBgActive] = mainColorActive;
style.Colors[ImGuiCol_TitleBg] = mainColor;
style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(1.00f, 0.98f, 0.95f, 0.75f);
style.Colors[ImGuiCol_TitleBgActive] = mainColor;
style.Colors[ImGuiCol_MenuBarBg] = menubarColor;
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(frameBgColor.x + .05f, frameBgColor.y + .05f, frameBgColor.z + .05f, frameBgColor.w);
style.Colors[ImGuiCol_ScrollbarGrab] = mainColor;
style.Colors[ImGuiCol_ScrollbarGrabHovered] = mainColorHovered;
style.Colors[ImGuiCol_ScrollbarGrabActive] = mainColorActive;
style.Colors[ImGuiCol_ComboBg] = frameBgColor;
style.Colors[ImGuiCol_CheckMark] = mainColor;
style.Colors[ImGuiCol_SliderGrab] = mainColorHovered;
style.Colors[ImGuiCol_SliderGrabActive] = mainColorActive;
style.Colors[ImGuiCol_Button] = mainColor;
style.Colors[ImGuiCol_ButtonHovered] = mainColorHovered;
style.Colors[ImGuiCol_ButtonActive] = mainColorActive;
style.Colors[ImGuiCol_Header] = mainColor;
style.Colors[ImGuiCol_HeaderHovered] = mainColorHovered;
style.Colors[ImGuiCol_HeaderActive] = mainColorActive;
style.Colors[ImGuiCol_Column] = mainColor;
style.Colors[ImGuiCol_ColumnHovered] = mainColorHovered;
style.Colors[ImGuiCol_ColumnActive] = mainColorActive;
style.Colors[ImGuiCol_ResizeGrip] = mainColor;
style.Colors[ImGuiCol_ResizeGripHovered] = mainColorHovered;
style.Colors[ImGuiCol_ResizeGripActive] = mainColorActive;
style.Colors[ImGuiCol_CloseButton] = mainColor;
style.Colors[ImGuiCol_CloseButtonHovered] = mainColorHovered;
style.Colors[ImGuiCol_CloseButtonActive] = mainColorActive;
style.Colors[ImGuiCol_PlotLines] = mainColor;
style.Colors[ImGuiCol_PlotLinesHovered] = mainColorHovered;
style.Colors[ImGuiCol_PlotHistogram] = mainColor;
style.Colors[ImGuiCol_PlotHistogramHovered] = mainColorHovered;
style.Colors[ImGuiCol_TextSelectedBg] = ImVec4(0.25f, 1.00f, 0.00f, 0.43f);
style.Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(1.00f, 0.98f, 0.95f, 0.73f);
}
void GUI_Init( IDirect3DDevice9* pDevice )
{
ImGui_ImplDX9_Init( G::Window, pDevice );
color();
G::d3dinit = true;
}
 
В игре Source SDK
Забаненный
Статус
Оффлайн
Регистрация
10 Янв 2017
Сообщения
2,148
Реакции[?]
806
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Пожалуйста, авторизуйтесь для просмотра ссылки.
- картинка











Вот сам код
#include "../Cheat.h"
#include "Menu.h"
#include "../Xor.h"
#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR)/sizeof(*_ARR)))
void GUI_Init( IDirect3DDevice9* pDevice );
bool legitTab = true;
bool visualsTab = false;
bool radarTab = false;
bool rageTab = false;
bool miscTab = false;
bool cfgTab = false;
void SelectTab(bool* tab)
{
legitTab = false;
visualsTab = false;
radarTab = false;
rageTab = false;
miscTab = false;
cfgTab = false;
*tab = true;
}
bool DrawTab(const char* name, ImVec2 tabWidth, bool *boole, bool forceTabs = true)
{
bool ret = false;
if (ImGui::Tab(name, tabWidth, *boole))
{
ret = true;
*boole = true;
if (forceTabs) SelectTab(boole);
}
return ret;
}
void CfgTab()
{
ImVec2 siz = ImVec2(200, 370 - ImGui::GetCursorPosY() - 40);
ImVec2 size = ImVec2(290, 372 - ImGui::GetCursorPosY() - 40);
ImGui::PushItemWidth(129.f);
ImGui::Combo(charenc("##CFGSELECTION"), &MenuSettings.CFGbase.curcfg, charenc("MM\0\rLegit\0\rMM HvH\0\rRage\0\rPublic\0\0"), -1);
if (ImGui::Button(charenc("Load"), ImVec2(60.275f, 20.f))) {
Config->Load();
}
ImGui::SameLine();
if (ImGui::Button(charenc("Save"), ImVec2(60.275f, 20.f))) {
Config->Save();
}
if (ImGui::Button(charenc("Reset"), ImVec2(129.f, 20.f))) {
Config->Setup();
}
}
void RageTab()
{
ImVec2 siz = ImVec2(200, 370 - ImGui::GetCursorPosY() - 40);
ImVec2 size = ImVec2(290, 372 - ImGui::GetCursorPosY() - 40);
ImGui::Checkbox(charenc("Enable Skins"), &MenuSettings.Skins.SSEnabled);
if (ImGui::BeginChild(charenc("##skins-child"), size, false))
{
if (G::LocalPlayer->GetAlive() && I::Engine->IsConnected())
ImGui::Text(XorStr("Selecting Skin For: %s"), G::LocalPlayer->GetWeapon()->GetWeaponName().c_str());
else
ImGui::Text(XorStr("Not alive/unknown weapon"));
ImGui::Separator();
ImGui::SliderInt(XorStr("Paint Kit"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].PaintKit, 0, 600);
if (ImGui::Combo(XorStr("Knife Model"), &MenuSettings.Skins.KnifeModel, charenc("No Knife\0\rBayonet\0\rFlip Knife\0\rGut Knife\0\rKarambit\0\rM9 Bayonet\0\rHuntsman Knife\0\rButterfly Knife\0\rFalchion Knife\0\rShadow Daggers\0\rBowie Knife\0\0"), -1))
Utils::CL_FullUpdate();
if (ImGui::Button(XorStr("Full Update"), ImVec2(93.f, 20.f))) {
Utils::CL_FullUpdate();
}
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##gloves-misc"), size, false))
{
ImGui::Text(XorStr("Gloves"));
ImGui::Separator();
if (ImGui::Combo(XorStr("Glove Model"), &MenuSettings.Skins.Glove, XorStr("No Glove\0\rBloodhound\0\rSport\0\rDriver\0\rWraps\0\rMoto\0\rSpecialist\0\0"), -1))
Utils::CL_FullUpdate();
const char* gstr = XorStr("Select Glove type!");
if (MenuSettings.Skins.Glove == 1)
{
gstr = XorStr("Select Glove type!");
}
else if (MenuSettings.Skins.Glove == 1)
{
gstr = XorStr("Charred\0\rSnakebite\0\rBronzed\0\rGuerilla\0\0");
}
else if (MenuSettings.Skins.Glove == 2)
{
gstr = XorStr("Hedge Maze\0\rPandoras Box\0\rSuperconductor\0\rArid\0\0");
}
else if (MenuSettings.Skins.Glove == 3)
{
gstr = XorStr("Lunar Weave\0\rConvoy\0\rCrimson Weave\0\rDiamondback\0\0");
}
else if (MenuSettings.Skins.Glove == 4)
{
gstr = XorStr("Leather\0\rSpruce DDPAT\0\rSlaughter\0\rBadlands\0\0");
}
else if (MenuSettings.Skins.Glove == 5)
{
gstr = XorStr("Eclipse\0\rSpearmint\0\rBoom!\0\rCool Mint\0\0");
}
else if (MenuSettings.Skins.Glove == 6)
{
gstr = XorStr("Forest DDPAT\0\rCrimson Kimono\0\rEmerald Web\0\rFoundation\0\0");
}
if (ImGui::Combo(XorStr("##2"), &MenuSettings.Skins.GloveSkin, gstr, -1))
Utils::CL_FullUpdate();
}ImGui::EndChild(); ImGui::NewLine();
}
void LegitTab()
{
ImVec2 siz = ImVec2(200, 370 - ImGui::GetCursorPosY() - 40);
ImVec2 size = ImVec2(290, 372 - ImGui::GetCursorPosY() - 40);
if (ImGui::BeginChild(charenc("##legitbot-child"), siz, false))
{
ImGui::Text(charenc("Main Settings"));
ImGui::Separator();
ImGui::Checkbox(charenc("Enable Aimbot"), &MenuSettings.Legitbot.Aimbot.Enabled);
ImGui::Combo(charenc("Aimbot Key"), &MenuSettings.Legitbot.Aimbot.Key, keyNames, IM_ARRAYSIZE(keyNames));
ImGui::Checkbox(charenc("Smoke Check"), &MenuSettings.Legitbot.Aimbot.SmokeCheck);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("If Enemy is behind smoke, aim wont work"));
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##legitbotwpnz-child"), size, false))
{
if (I::Engine->IsConnected())
ImGui::Text(charenc("Settings for %s"), G::LocalPlayer->GetWeapon()->GetWeaponName().c_str());
else
ImGui::Text(charenc("Not alive/unknown weapon"));
ImGui::Separator();
ImGui::Checkbox(charenc("BestHit"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Nearest);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aims at nearest to crosshair bone"));
if (!MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Nearest) {
ImGui::Combo(charenc("Aimspot"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Bone, charenc("PELVIS\0\r\0\r\0\rHIP\0\rLOWER SPINE\0\rMIDDLE SPINE\0\rUPPER SPINE\0\rNECK\0\rHEAD\0\0"), -1);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aim bone"));
}
ImGui::Checkbox(charenc("pSilent"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].pSilent);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Perfect Silent"));
ImGui::SliderInt(charenc("Start Bullet"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].StartBullet, 1, 30);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot start bullet"));
ImGui::SliderInt(charenc("End Bullet"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].EndBullet, 1, 30);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot end bullet"));
if (MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].pSilent) {
ImGui::SliderFloat(charenc("pSilent FOV"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].pSilentFov, 0.1f, 3.f, charenc("%.1f"));
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot field of view for pSilent"));
}
ImGui::SliderFloat(charenc("FOV"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Fov, 0.1f, 20.f, charenc("%.1f"));
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot field of view"));
ImGui::SliderFloat(charenc("Smooth"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Smooth, 0.1f, 100.f, charenc("%.1f"));
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot smoothness"));
ImGui::SliderInt(charenc("RCS Vertical"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].RcsX, 1, 100);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Recoil control system"));
ImGui::SliderInt(charenc("RCS Horizontal"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].RcsY, 1, 100);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Recoil control system"));
}ImGui::EndChild(); ImGui::NewLine();
}
void VisTab()
{
static bool vistab = true;
static bool coltab;
ImVec2 siz = ImVec2(185, 360 - ImGui::GetCursorPosY() - 40);
if (DrawTab(charenc("Visuals"), ImVec2(265.f, 20.f), &vistab, false))
{
vistab = true;
coltab = false;
}
ImGui::SameLine();
if (DrawTab(charenc("Colors"), ImVec2(265.f, 20.f), &coltab, false))
{
vistab = false;
coltab = true;
}
if (vistab)
{
if (ImGui::BeginChild(charenc("##esp-child"), siz, false))
{
ImGui::Text(charenc("Visuals"));
ImGui::Separator();
ImGui::Checkbox(charenc("Enable"), &MenuSettings.Visuals.Enabled);
ImGui::Combo(charenc("Box"), &MenuSettings.Visuals.Box, charenc("Off\0\rOutline\0\rCorners\0\0"), -1);
ImGui::Checkbox(charenc("Team"), &MenuSettings.Visuals.Filter.Friendlies);
ImGui::Separator();
ImGui::Text(charenc("Misc"));
//ImGui::Checkbox(charenc("Spectator List"), &MenuSettings.Visuals.SpectatorList);
ImGui::Checkbox(charenc("Crosshair"), &MenuSettings.Visuals.CrosshairOn);
//ImGui::Checkbox(charenc("FOV Circle"), &MenuSettings.Visuals.CrosshairFOV);
//MenuSettings.Visuals.Filter.Friendlies
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##chams-child"), siz, false))
{
ImGui::Text(charenc("Chams"));
ImGui::Separator();
ImGui::Checkbox(charenc("Enable Chams"), &MenuSettings.Visuals.Chams.Enabled);
ImGui::Combo(charenc("Mode"), &MenuSettings.Visuals.Chams.Mode, chamsMode, IM_ARRAYSIZE(chamsMode));
ImGui::Checkbox(charenc("XQZ"), &MenuSettings.Visuals.Chams.XQZ);
ImGui::Separator();
ImGui::Text(charenc("Removals"));
ImGui::Checkbox(charenc("Visual Recoil"), &MenuSettings.Visuals.Removals.VisualRecoil);
ImGui::Checkbox(charenc("Weapon"), &MenuSettings.Visuals.Removals.Weapon);
ImGui::Checkbox(charenc("Flash"), &MenuSettings.Visuals.Removals.Flash);
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##info-child"), siz, false))
{
ImGui::Text(charenc("Information"));
ImGui::Separator();
ImGui::Selectable(charenc("Name"), &MenuSettings.Visuals.Info.Name);
ImGui::Selectable(charenc("Health"), &MenuSettings.Visuals.Info.Health);
ImGui::Selectable(charenc("Bomb"), &MenuSettings.Visuals.Filter.C4);
}ImGui::EndChild(); ImGui::NewLine();
}
else if (coltab)
{
if (ImGui::BeginChild(charenc("##colors-child"), ImVec2(460, 360 - ImGui::GetCursorPosY() - 40), false))
{
ImGui::Text(charenc("Chams Colors"));
ImGui::Separator();
ImGui::Text(charenc("Chams CT InVisible"));
ImGui::ColorEdit3("##CTIV", MenuSettings.CFGbase.g_iChamsCTH);
ImGui::Text(charenc("Chams CT Visible"));
ImGui::ColorEdit3("##CTTH", MenuSettings.CFGbase.g_iChamsCTV);
ImGui::Text(charenc("Chams T InVisible"));
ImGui::ColorEdit3("##CTH", MenuSettings.CFGbase.g_iChamsTH);
ImGui::Text(charenc("Chams T Visible"));
ImGui::ColorEdit3("##CTV", MenuSettings.CFGbase.g_iChamsTV);
//MenuSettings.Visuals.Filter.Friendlies
}ImGui::EndChild(); ImGui::NewLine();
}
}
void MiscTab()
{
ImVec2 siz = ImVec2(185, 350 - ImGui::GetCursorPosY() - 40);
ImVec2 size = ImVec2(240, 290 - ImGui::GetCursorPosY() - 40);
static bool misctab = true;
static bool skintab;
if (DrawTab(charenc("Misc"), ImVec2(265.f, 20.f), &misctab, false))
{
misctab = true;
}
if (misctab)
{
if (ImGui::BeginChild(charenc("##movement-misc"), siz, false))
{
ImGui::Text(charenc("Movement"));
ImGui::Separator();
//ImGui::SliderInt(charenc("FakeLag"), &MenuSettings.Misc.FakeLag, 0, 16);
ImGui::Checkbox(charenc("Bunny Hop"), &MenuSettings.Misc.Bhop);
ImGui::Checkbox(charenc("Autostrafe"), &MenuSettings.Misc.AutoStrafe);
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##misc-child"), siz, false))
{
ImGui::Text(charenc("Misc"));
ImGui::Separator();
ImGui::Checkbox(charenc("Reveal Ranks"), &MenuSettings.Misc.Ranks);
ImGui::Checkbox(charenc("Auto Accept"), &MenuSettings.Misc.AutoAccept);
/*ImGui::Checkbox(charenc("Anti OBS"), &MenuSettings.Misc.AntiOBS);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Hide cheat when recording"));*/
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##ad-child"), siz, false))
{
ImGui::Text(charenc("Advertisment"));
ImGui::Separator();
ImGui::Text(charenc("Clan Tag"));
if (ImGui::Combo(charenc("##ANIMATIONTYPE"), &MenuSettings.Misc.Clantag, charenc("Off\0\rStatic\0\rScroll\0\rNice\0\0"), -1))
Func::ClantagChanger->BeginFrame();
if (ImGui::Button(charenc("Spam Nick"), ImVec2(80, 20))) {
MenuSettings.Misc.SpamName = true;
}
ImGui::Text(charenc("Chat Spam"));
ImGui::Combo(charenc("##CHATSPAMSELECTION"), &MenuSettings.Misc.ChatSpam, charenc("Off\0\rSlow\0\rFast\0\0"), -1);
}ImGui::EndChild(); ImGui::NewLine();
}
}
EndSceneFn oEndScene;
long __stdcall Hks::EndScene(IDirect3DDevice9* pDevice)
{
if (!G::d3dinit)
GUI_Init(pDevice);
H::D3D9->ReHook();
ImGui::GetIO().MouseDrawCursor = MenuSettings.Menu.Opened;
ImGui_ImplDX9_NewFrame();
if (MenuSettings.Visuals.SpectatorList)
Func::Visuals->SpecList();
if (MenuSettings.Menu.Opened)
{
int pX, pY;
I::InputSystem->GetCursorPosition(&pX, &pY);
ImGuiIO& io = ImGui::GetIO();
io.MousePos.x = (float)(pX);
io.MousePos.y = (float)(pY);
ImGui::Begin(charenc("Tenderness Reborn"), &MenuSettings.Menu.Opened, ImVec2(720, 400), 0.9f, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar);
{
int curHeight = 400;
ImVec2 siz = ImVec2(185, curHeight - ImGui::GetCursorPosY() - 40);
ImVec2 lPos = ImGui::GetCursorPos();
DrawTab(charenc("skin"), ImVec2(145.f, 50.f), &rageTab);
DrawTab(charenc("Legit"), ImVec2(145.f, 50.f), &legitTab);
DrawTab(charenc("Visuals"), ImVec2(145.f, 50.f), &visualsTab);
DrawTab(charenc("Misc"), ImVec2(145.f, 50.f), &miscTab);
DrawTab(charenc("Config"), ImVec2(145.f, 50.f), &cfgTab);
//ImGui::PushItemWidth(145.f);
}
ImGui::EndChild();
//ImGui::SetCursorPos(ImVec2(160, lPos.y));
ImGui::BeginChild(charenc("##Menu-Child"), ImVec2(0, 0), true);
{
if (legitTab) LegitTab();
if (visualsTab) VisTab();
if (rageTab) RageTab();
if (miscTab) MiscTab();
if (cfgTab) CfgTab();
}
ImGui::EndChild();
//ImGui::Separator();
//ImGui::Columns( 2, charenc( "##config-settings" ), false );
//if( ImGui::Button( charenc( "Save Config" ), ImVec2( 93.f, 20.f ) ) ) Config->Save();
//ImGui::NextColumn();
//if( ImGui::Button( charenc( "Load Config" ), ImVec2( 93.f, 20.f ) ) ) Config->Load();
//ImGui::Columns( 1 );
}
ImGui::End(); //End main window
}
ImGui::Render();
return oEndScene(pDevice);
}
ResetFn oReset;
long __stdcall Hks::Reset( IDirect3DDevice9* pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
{
if( !G::d3dinit )
return oReset( pDevice, pPresentationParameters );
ImGui_ImplDX9_InvalidateDeviceObjects();
auto hr = oReset( pDevice, pPresentationParameters );
ImGui_ImplDX9_CreateDeviceObjects();
return hr;
}
void color()
{
//int(enemyColor[0] * 255.0f), int(enemyColor[1] * 255.0f), int(enemyColor[2] * 255.0f), 255
ImColor mainColor = ImColor(0, 130, 22, 255);
ImColor bodyColor = ImColor(24, 24, 24, 240);
ImColor memeColor = ImColor(54, 54, 54, 240);
ImColor fontColor = ImColor(255, 255, 255, 255);
ImGuiStyle& style = ImGui::GetStyle();
ImVec4 mainColorHovered = ImVec4(mainColor.Value.x + 0.1f, mainColor.Value.y + 0.1f, mainColor.Value.z + 0.1f, mainColor.Value.w);
ImVec4 mainColorActive = ImVec4(mainColor.Value.x + 0.2f, mainColor.Value.y + 0.2f, mainColor.Value.z + 0.2f, mainColor.Value.w);
ImVec4 menubarColor = ImVec4(bodyColor.Value.x, bodyColor.Value.y, bodyColor.Value.z, bodyColor.Value.w - 0.8f);
ImVec4 frameBgColor = ImVec4(memeColor.Value.x, memeColor.Value.y, memeColor.Value.z, memeColor.Value.w);
ImVec4 tooltipBgColor = ImVec4(bodyColor.Value.x, bodyColor.Value.y, bodyColor.Value.z, bodyColor.Value.w + .05f);
style.Alpha = 1.0f;
style.WindowPadding = ImVec2(8, 8);
style.WindowMinSize = ImVec2(32, 32);
style.WindowRounding = 0.0f;
style.WindowTitleAlign = ImVec2(0.5f, 0.5f);
style.ChildWindowRounding = 0.0f;
style.FramePadding = ImVec2(4, 3);
style.FrameRounding = 0.0f;
style.ItemSpacing = ImVec2(8, 4);
style.ItemInnerSpacing = ImVec2(4, 4);
style.TouchExtraPadding = ImVec2(0, 0);
style.IndentSpacing = 21.0f;
style.ColumnsMinSpacing = 3.0f;
style.ScrollbarSize = 12.0f;
style.ScrollbarRounding = 0.0f;
style.GrabMinSize = 5.0f;
style.GrabRounding = 0.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] = fontColor;
style.Colors[ImGuiCol_Tab] = bodyColor;
style.Colors[ImGuiCol_TabHovered] = mainColorHovered;
style.Colors[ImGuiCol_TabActive] = mainColorActive;
style.Colors[ImGuiCol_TabText] = ImColor(fontColor.Value.x - .2f, fontColor.Value.y - .2f, fontColor.Value.z - .2f, fontColor.Value.w);
style.Colors[ImGuiCol_TabTextActive] = fontColor;
style.Colors[ImGuiCol_TabSelected] = mainColor;
style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f);
style.Colors[ImGuiCol_WindowBg] = bodyColor;
style.Colors[ImGuiCol_ChildWindowBg] = ImVec4(.0f, .0f, .0f, .0f);
style.Colors[ImGuiCol_PopupBg] = tooltipBgColor;
style.Colors[ImGuiCol_Border] = mainColor;
style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.92f, 0.91f, 0.88f, 0.00f);
style.Colors[ImGuiCol_FrameBg] = frameBgColor;
style.Colors[ImGuiCol_FrameBgHovered] = mainColorHovered;
style.Colors[ImGuiCol_FrameBgActive] = mainColorActive;
style.Colors[ImGuiCol_TitleBg] = mainColor;
style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(1.00f, 0.98f, 0.95f, 0.75f);
style.Colors[ImGuiCol_TitleBgActive] = mainColor;
style.Colors[ImGuiCol_MenuBarBg] = menubarColor;
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(frameBgColor.x + .05f, frameBgColor.y + .05f, frameBgColor.z + .05f, frameBgColor.w);
style.Colors[ImGuiCol_ScrollbarGrab] = mainColor;
style.Colors[ImGuiCol_ScrollbarGrabHovered] = mainColorHovered;
style.Colors[ImGuiCol_ScrollbarGrabActive] = mainColorActive;
style.Colors[ImGuiCol_ComboBg] = frameBgColor;
style.Colors[ImGuiCol_CheckMark] = mainColor;
style.Colors[ImGuiCol_SliderGrab] = mainColorHovered;
style.Colors[ImGuiCol_SliderGrabActive] = mainColorActive;
style.Colors[ImGuiCol_Button] = mainColor;
style.Colors[ImGuiCol_ButtonHovered] = mainColorHovered;
style.Colors[ImGuiCol_ButtonActive] = mainColorActive;
style.Colors[ImGuiCol_Header] = mainColor;
style.Colors[ImGuiCol_HeaderHovered] = mainColorHovered;
style.Colors[ImGuiCol_HeaderActive] = mainColorActive;
style.Colors[ImGuiCol_Column] = mainColor;
style.Colors[ImGuiCol_ColumnHovered] = mainColorHovered;
style.Colors[ImGuiCol_ColumnActive] = mainColorActive;
style.Colors[ImGuiCol_ResizeGrip] = mainColor;
style.Colors[ImGuiCol_ResizeGripHovered] = mainColorHovered;
style.Colors[ImGuiCol_ResizeGripActive] = mainColorActive;
style.Colors[ImGuiCol_CloseButton] = mainColor;
style.Colors[ImGuiCol_CloseButtonHovered] = mainColorHovered;
style.Colors[ImGuiCol_CloseButtonActive] = mainColorActive;
style.Colors[ImGuiCol_PlotLines] = mainColor;
style.Colors[ImGuiCol_PlotLinesHovered] = mainColorHovered;
style.Colors[ImGuiCol_PlotHistogram] = mainColor;
style.Colors[ImGuiCol_PlotHistogramHovered] = mainColorHovered;
style.Colors[ImGuiCol_TextSelectedBg] = ImVec4(0.25f, 1.00f, 0.00f, 0.43f);
style.Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(1.00f, 0.98f, 0.95f, 0.73f);
}
void GUI_Init( IDirect3DDevice9* pDevice )
{
ImGui_ImplDX9_Init( G::Window, pDevice );
color();
G::d3dinit = true;
}
Оформи тему
 
Участник
Статус
Оффлайн
Регистрация
15 Апр 2017
Сообщения
396
Реакции[?]
194
Поинты[?]
0
Пожалуйста, авторизуйтесь для просмотра ссылки.
- картинка











Вот сам код
#include "../Cheat.h"
#include "Menu.h"
#include "../Xor.h"
#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR)/sizeof(*_ARR)))
void GUI_Init( IDirect3DDevice9* pDevice );
bool legitTab = true;
bool visualsTab = false;
bool radarTab = false;
bool rageTab = false;
bool miscTab = false;
bool cfgTab = false;
void SelectTab(bool* tab)
{
legitTab = false;
visualsTab = false;
radarTab = false;
rageTab = false;
miscTab = false;
cfgTab = false;
*tab = true;
}
bool DrawTab(const char* name, ImVec2 tabWidth, bool *boole, bool forceTabs = true)
{
bool ret = false;
if (ImGui::Tab(name, tabWidth, *boole))
{
ret = true;
*boole = true;
if (forceTabs) SelectTab(boole);
}
return ret;
}
void CfgTab()
{
ImVec2 siz = ImVec2(200, 370 - ImGui::GetCursorPosY() - 40);
ImVec2 size = ImVec2(290, 372 - ImGui::GetCursorPosY() - 40);
ImGui::PushItemWidth(129.f);
ImGui::Combo(charenc("##CFGSELECTION"), &MenuSettings.CFGbase.curcfg, charenc("MM\0\rLegit\0\rMM HvH\0\rRage\0\rPublic\0\0"), -1);
if (ImGui::Button(charenc("Load"), ImVec2(60.275f, 20.f))) {
Config->Load();
}
ImGui::SameLine();
if (ImGui::Button(charenc("Save"), ImVec2(60.275f, 20.f))) {
Config->Save();
}
if (ImGui::Button(charenc("Reset"), ImVec2(129.f, 20.f))) {
Config->Setup();
}
}
void RageTab()
{
ImVec2 siz = ImVec2(200, 370 - ImGui::GetCursorPosY() - 40);
ImVec2 size = ImVec2(290, 372 - ImGui::GetCursorPosY() - 40);
ImGui::Checkbox(charenc("Enable Skins"), &MenuSettings.Skins.SSEnabled);
if (ImGui::BeginChild(charenc("##skins-child"), size, false))
{
if (G::LocalPlayer->GetAlive() && I::Engine->IsConnected())
ImGui::Text(XorStr("Selecting Skin For: %s"), G::LocalPlayer->GetWeapon()->GetWeaponName().c_str());
else
ImGui::Text(XorStr("Not alive/unknown weapon"));
ImGui::Separator();
ImGui::SliderInt(XorStr("Paint Kit"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].PaintKit, 0, 600);
if (ImGui::Combo(XorStr("Knife Model"), &MenuSettings.Skins.KnifeModel, charenc("No Knife\0\rBayonet\0\rFlip Knife\0\rGut Knife\0\rKarambit\0\rM9 Bayonet\0\rHuntsman Knife\0\rButterfly Knife\0\rFalchion Knife\0\rShadow Daggers\0\rBowie Knife\0\0"), -1))
Utils::CL_FullUpdate();
if (ImGui::Button(XorStr("Full Update"), ImVec2(93.f, 20.f))) {
Utils::CL_FullUpdate();
}
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##gloves-misc"), size, false))
{
ImGui::Text(XorStr("Gloves"));
ImGui::Separator();
if (ImGui::Combo(XorStr("Glove Model"), &MenuSettings.Skins.Glove, XorStr("No Glove\0\rBloodhound\0\rSport\0\rDriver\0\rWraps\0\rMoto\0\rSpecialist\0\0"), -1))
Utils::CL_FullUpdate();
const char* gstr = XorStr("Select Glove type!");
if (MenuSettings.Skins.Glove == 1)
{
gstr = XorStr("Select Glove type!");
}
else if (MenuSettings.Skins.Glove == 1)
{
gstr = XorStr("Charred\0\rSnakebite\0\rBronzed\0\rGuerilla\0\0");
}
else if (MenuSettings.Skins.Glove == 2)
{
gstr = XorStr("Hedge Maze\0\rPandoras Box\0\rSuperconductor\0\rArid\0\0");
}
else if (MenuSettings.Skins.Glove == 3)
{
gstr = XorStr("Lunar Weave\0\rConvoy\0\rCrimson Weave\0\rDiamondback\0\0");
}
else if (MenuSettings.Skins.Glove == 4)
{
gstr = XorStr("Leather\0\rSpruce DDPAT\0\rSlaughter\0\rBadlands\0\0");
}
else if (MenuSettings.Skins.Glove == 5)
{
gstr = XorStr("Eclipse\0\rSpearmint\0\rBoom!\0\rCool Mint\0\0");
}
else if (MenuSettings.Skins.Glove == 6)
{
gstr = XorStr("Forest DDPAT\0\rCrimson Kimono\0\rEmerald Web\0\rFoundation\0\0");
}
if (ImGui::Combo(XorStr("##2"), &MenuSettings.Skins.GloveSkin, gstr, -1))
Utils::CL_FullUpdate();
}ImGui::EndChild(); ImGui::NewLine();
}
void LegitTab()
{
ImVec2 siz = ImVec2(200, 370 - ImGui::GetCursorPosY() - 40);
ImVec2 size = ImVec2(290, 372 - ImGui::GetCursorPosY() - 40);
if (ImGui::BeginChild(charenc("##legitbot-child"), siz, false))
{
ImGui::Text(charenc("Main Settings"));
ImGui::Separator();
ImGui::Checkbox(charenc("Enable Aimbot"), &MenuSettings.Legitbot.Aimbot.Enabled);
ImGui::Combo(charenc("Aimbot Key"), &MenuSettings.Legitbot.Aimbot.Key, keyNames, IM_ARRAYSIZE(keyNames));
ImGui::Checkbox(charenc("Smoke Check"), &MenuSettings.Legitbot.Aimbot.SmokeCheck);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("If Enemy is behind smoke, aim wont work"));
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##legitbotwpnz-child"), size, false))
{
if (I::Engine->IsConnected())
ImGui::Text(charenc("Settings for %s"), G::LocalPlayer->GetWeapon()->GetWeaponName().c_str());
else
ImGui::Text(charenc("Not alive/unknown weapon"));
ImGui::Separator();
ImGui::Checkbox(charenc("BestHit"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Nearest);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aims at nearest to crosshair bone"));
if (!MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Nearest) {
ImGui::Combo(charenc("Aimspot"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Bone, charenc("PELVIS\0\r\0\r\0\rHIP\0\rLOWER SPINE\0\rMIDDLE SPINE\0\rUPPER SPINE\0\rNECK\0\rHEAD\0\0"), -1);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aim bone"));
}
ImGui::Checkbox(charenc("pSilent"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].pSilent);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Perfect Silent"));
ImGui::SliderInt(charenc("Start Bullet"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].StartBullet, 1, 30);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot start bullet"));
ImGui::SliderInt(charenc("End Bullet"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].EndBullet, 1, 30);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot end bullet"));
if (MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].pSilent) {
ImGui::SliderFloat(charenc("pSilent FOV"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].pSilentFov, 0.1f, 3.f, charenc("%.1f"));
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot field of view for pSilent"));
}
ImGui::SliderFloat(charenc("FOV"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Fov, 0.1f, 20.f, charenc("%.1f"));
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot field of view"));
ImGui::SliderFloat(charenc("Smooth"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].Smooth, 0.1f, 100.f, charenc("%.1f"));
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Aimbot smoothness"));
ImGui::SliderInt(charenc("RCS Vertical"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].RcsX, 1, 100);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Recoil control system"));
ImGui::SliderInt(charenc("RCS Horizontal"), &MenuSettings.Legitbot.Weapons[MenuSettings.WeaponID].RcsY, 1, 100);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Recoil control system"));
}ImGui::EndChild(); ImGui::NewLine();
}
void VisTab()
{
static bool vistab = true;
static bool coltab;
ImVec2 siz = ImVec2(185, 360 - ImGui::GetCursorPosY() - 40);
if (DrawTab(charenc("Visuals"), ImVec2(265.f, 20.f), &vistab, false))
{
vistab = true;
coltab = false;
}
ImGui::SameLine();
if (DrawTab(charenc("Colors"), ImVec2(265.f, 20.f), &coltab, false))
{
vistab = false;
coltab = true;
}
if (vistab)
{
if (ImGui::BeginChild(charenc("##esp-child"), siz, false))
{
ImGui::Text(charenc("Visuals"));
ImGui::Separator();
ImGui::Checkbox(charenc("Enable"), &MenuSettings.Visuals.Enabled);
ImGui::Combo(charenc("Box"), &MenuSettings.Visuals.Box, charenc("Off\0\rOutline\0\rCorners\0\0"), -1);
ImGui::Checkbox(charenc("Team"), &MenuSettings.Visuals.Filter.Friendlies);
ImGui::Separator();
ImGui::Text(charenc("Misc"));
//ImGui::Checkbox(charenc("Spectator List"), &MenuSettings.Visuals.SpectatorList);
ImGui::Checkbox(charenc("Crosshair"), &MenuSettings.Visuals.CrosshairOn);
//ImGui::Checkbox(charenc("FOV Circle"), &MenuSettings.Visuals.CrosshairFOV);
//MenuSettings.Visuals.Filter.Friendlies
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##chams-child"), siz, false))
{
ImGui::Text(charenc("Chams"));
ImGui::Separator();
ImGui::Checkbox(charenc("Enable Chams"), &MenuSettings.Visuals.Chams.Enabled);
ImGui::Combo(charenc("Mode"), &MenuSettings.Visuals.Chams.Mode, chamsMode, IM_ARRAYSIZE(chamsMode));
ImGui::Checkbox(charenc("XQZ"), &MenuSettings.Visuals.Chams.XQZ);
ImGui::Separator();
ImGui::Text(charenc("Removals"));
ImGui::Checkbox(charenc("Visual Recoil"), &MenuSettings.Visuals.Removals.VisualRecoil);
ImGui::Checkbox(charenc("Weapon"), &MenuSettings.Visuals.Removals.Weapon);
ImGui::Checkbox(charenc("Flash"), &MenuSettings.Visuals.Removals.Flash);
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##info-child"), siz, false))
{
ImGui::Text(charenc("Information"));
ImGui::Separator();
ImGui::Selectable(charenc("Name"), &MenuSettings.Visuals.Info.Name);
ImGui::Selectable(charenc("Health"), &MenuSettings.Visuals.Info.Health);
ImGui::Selectable(charenc("Bomb"), &MenuSettings.Visuals.Filter.C4);
}ImGui::EndChild(); ImGui::NewLine();
}
else if (coltab)
{
if (ImGui::BeginChild(charenc("##colors-child"), ImVec2(460, 360 - ImGui::GetCursorPosY() - 40), false))
{
ImGui::Text(charenc("Chams Colors"));
ImGui::Separator();
ImGui::Text(charenc("Chams CT InVisible"));
ImGui::ColorEdit3("##CTIV", MenuSettings.CFGbase.g_iChamsCTH);
ImGui::Text(charenc("Chams CT Visible"));
ImGui::ColorEdit3("##CTTH", MenuSettings.CFGbase.g_iChamsCTV);
ImGui::Text(charenc("Chams T InVisible"));
ImGui::ColorEdit3("##CTH", MenuSettings.CFGbase.g_iChamsTH);
ImGui::Text(charenc("Chams T Visible"));
ImGui::ColorEdit3("##CTV", MenuSettings.CFGbase.g_iChamsTV);
//MenuSettings.Visuals.Filter.Friendlies
}ImGui::EndChild(); ImGui::NewLine();
}
}
void MiscTab()
{
ImVec2 siz = ImVec2(185, 350 - ImGui::GetCursorPosY() - 40);
ImVec2 size = ImVec2(240, 290 - ImGui::GetCursorPosY() - 40);
static bool misctab = true;
static bool skintab;
if (DrawTab(charenc("Misc"), ImVec2(265.f, 20.f), &misctab, false))
{
misctab = true;
}
if (misctab)
{
if (ImGui::BeginChild(charenc("##movement-misc"), siz, false))
{
ImGui::Text(charenc("Movement"));
ImGui::Separator();
//ImGui::SliderInt(charenc("FakeLag"), &MenuSettings.Misc.FakeLag, 0, 16);
ImGui::Checkbox(charenc("Bunny Hop"), &MenuSettings.Misc.Bhop);
ImGui::Checkbox(charenc("Autostrafe"), &MenuSettings.Misc.AutoStrafe);
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##misc-child"), siz, false))
{
ImGui::Text(charenc("Misc"));
ImGui::Separator();
ImGui::Checkbox(charenc("Reveal Ranks"), &MenuSettings.Misc.Ranks);
ImGui::Checkbox(charenc("Auto Accept"), &MenuSettings.Misc.AutoAccept);
/*ImGui::Checkbox(charenc("Anti OBS"), &MenuSettings.Misc.AntiOBS);
if (ImGui::IsItemHovered())
ImGui::SetTooltip(charenc("Hide cheat when recording"));*/
}ImGui::EndChild(); ImGui::SameLine();
if (ImGui::BeginChild(charenc("##ad-child"), siz, false))
{
ImGui::Text(charenc("Advertisment"));
ImGui::Separator();
ImGui::Text(charenc("Clan Tag"));
if (ImGui::Combo(charenc("##ANIMATIONTYPE"), &MenuSettings.Misc.Clantag, charenc("Off\0\rStatic\0\rScroll\0\rNice\0\0"), -1))
Func::ClantagChanger->BeginFrame();
if (ImGui::Button(charenc("Spam Nick"), ImVec2(80, 20))) {
MenuSettings.Misc.SpamName = true;
}
ImGui::Text(charenc("Chat Spam"));
ImGui::Combo(charenc("##CHATSPAMSELECTION"), &MenuSettings.Misc.ChatSpam, charenc("Off\0\rSlow\0\rFast\0\0"), -1);
}ImGui::EndChild(); ImGui::NewLine();
}
}
EndSceneFn oEndScene;
long __stdcall Hks::EndScene(IDirect3DDevice9* pDevice)
{
if (!G::d3dinit)
GUI_Init(pDevice);
H::D3D9->ReHook();
ImGui::GetIO().MouseDrawCursor = MenuSettings.Menu.Opened;
ImGui_ImplDX9_NewFrame();
if (MenuSettings.Visuals.SpectatorList)
Func::Visuals->SpecList();
if (MenuSettings.Menu.Opened)
{
int pX, pY;
I::InputSystem->GetCursorPosition(&pX, &pY);
ImGuiIO& io = ImGui::GetIO();
io.MousePos.x = (float)(pX);
io.MousePos.y = (float)(pY);
ImGui::Begin(charenc("Tenderness Reborn"), &MenuSettings.Menu.Opened, ImVec2(720, 400), 0.9f, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar);
{
int curHeight = 400;
ImVec2 siz = ImVec2(185, curHeight - ImGui::GetCursorPosY() - 40);
ImVec2 lPos = ImGui::GetCursorPos();
DrawTab(charenc("skin"), ImVec2(145.f, 50.f), &rageTab);
DrawTab(charenc("Legit"), ImVec2(145.f, 50.f), &legitTab);
DrawTab(charenc("Visuals"), ImVec2(145.f, 50.f), &visualsTab);
DrawTab(charenc("Misc"), ImVec2(145.f, 50.f), &miscTab);
DrawTab(charenc("Config"), ImVec2(145.f, 50.f), &cfgTab);
//ImGui::PushItemWidth(145.f);
}
ImGui::EndChild();
//ImGui::SetCursorPos(ImVec2(160, lPos.y));
ImGui::BeginChild(charenc("##Menu-Child"), ImVec2(0, 0), true);
{
if (legitTab) LegitTab();
if (visualsTab) VisTab();
if (rageTab) RageTab();
if (miscTab) MiscTab();
if (cfgTab) CfgTab();
}
ImGui::EndChild();
//ImGui::Separator();
//ImGui::Columns( 2, charenc( "##config-settings" ), false );
//if( ImGui::Button( charenc( "Save Config" ), ImVec2( 93.f, 20.f ) ) ) Config->Save();
//ImGui::NextColumn();
//if( ImGui::Button( charenc( "Load Config" ), ImVec2( 93.f, 20.f ) ) ) Config->Load();
//ImGui::Columns( 1 );
}
ImGui::End(); //End main window
}
ImGui::Render();
return oEndScene(pDevice);
}
ResetFn oReset;
long __stdcall Hks::Reset( IDirect3DDevice9* pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
{
if( !G::d3dinit )
return oReset( pDevice, pPresentationParameters );
ImGui_ImplDX9_InvalidateDeviceObjects();
auto hr = oReset( pDevice, pPresentationParameters );
ImGui_ImplDX9_CreateDeviceObjects();
return hr;
}
void color()
{
//int(enemyColor[0] * 255.0f), int(enemyColor[1] * 255.0f), int(enemyColor[2] * 255.0f), 255
ImColor mainColor = ImColor(0, 130, 22, 255);
ImColor bodyColor = ImColor(24, 24, 24, 240);
ImColor memeColor = ImColor(54, 54, 54, 240);
ImColor fontColor = ImColor(255, 255, 255, 255);
ImGuiStyle& style = ImGui::GetStyle();
ImVec4 mainColorHovered = ImVec4(mainColor.Value.x + 0.1f, mainColor.Value.y + 0.1f, mainColor.Value.z + 0.1f, mainColor.Value.w);
ImVec4 mainColorActive = ImVec4(mainColor.Value.x + 0.2f, mainColor.Value.y + 0.2f, mainColor.Value.z + 0.2f, mainColor.Value.w);
ImVec4 menubarColor = ImVec4(bodyColor.Value.x, bodyColor.Value.y, bodyColor.Value.z, bodyColor.Value.w - 0.8f);
ImVec4 frameBgColor = ImVec4(memeColor.Value.x, memeColor.Value.y, memeColor.Value.z, memeColor.Value.w);
ImVec4 tooltipBgColor = ImVec4(bodyColor.Value.x, bodyColor.Value.y, bodyColor.Value.z, bodyColor.Value.w + .05f);
style.Alpha = 1.0f;
style.WindowPadding = ImVec2(8, 8);
style.WindowMinSize = ImVec2(32, 32);
style.WindowRounding = 0.0f;
style.WindowTitleAlign = ImVec2(0.5f, 0.5f);
style.ChildWindowRounding = 0.0f;
style.FramePadding = ImVec2(4, 3);
style.FrameRounding = 0.0f;
style.ItemSpacing = ImVec2(8, 4);
style.ItemInnerSpacing = ImVec2(4, 4);
style.TouchExtraPadding = ImVec2(0, 0);
style.IndentSpacing = 21.0f;
style.ColumnsMinSpacing = 3.0f;
style.ScrollbarSize = 12.0f;
style.ScrollbarRounding = 0.0f;
style.GrabMinSize = 5.0f;
style.GrabRounding = 0.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] = fontColor;
style.Colors[ImGuiCol_Tab] = bodyColor;
style.Colors[ImGuiCol_TabHovered] = mainColorHovered;
style.Colors[ImGuiCol_TabActive] = mainColorActive;
style.Colors[ImGuiCol_TabText] = ImColor(fontColor.Value.x - .2f, fontColor.Value.y - .2f, fontColor.Value.z - .2f, fontColor.Value.w);
style.Colors[ImGuiCol_TabTextActive] = fontColor;
style.Colors[ImGuiCol_TabSelected] = mainColor;
style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f);
style.Colors[ImGuiCol_WindowBg] = bodyColor;
style.Colors[ImGuiCol_ChildWindowBg] = ImVec4(.0f, .0f, .0f, .0f);
style.Colors[ImGuiCol_PopupBg] = tooltipBgColor;
style.Colors[ImGuiCol_Border] = mainColor;
style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.92f, 0.91f, 0.88f, 0.00f);
style.Colors[ImGuiCol_FrameBg] = frameBgColor;
style.Colors[ImGuiCol_FrameBgHovered] = mainColorHovered;
style.Colors[ImGuiCol_FrameBgActive] = mainColorActive;
style.Colors[ImGuiCol_TitleBg] = mainColor;
style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(1.00f, 0.98f, 0.95f, 0.75f);
style.Colors[ImGuiCol_TitleBgActive] = mainColor;
style.Colors[ImGuiCol_MenuBarBg] = menubarColor;
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(frameBgColor.x + .05f, frameBgColor.y + .05f, frameBgColor.z + .05f, frameBgColor.w);
style.Colors[ImGuiCol_ScrollbarGrab] = mainColor;
style.Colors[ImGuiCol_ScrollbarGrabHovered] = mainColorHovered;
style.Colors[ImGuiCol_ScrollbarGrabActive] = mainColorActive;
style.Colors[ImGuiCol_ComboBg] = frameBgColor;
style.Colors[ImGuiCol_CheckMark] = mainColor;
style.Colors[ImGuiCol_SliderGrab] = mainColorHovered;
style.Colors[ImGuiCol_SliderGrabActive] = mainColorActive;
style.Colors[ImGuiCol_Button] = mainColor;
style.Colors[ImGuiCol_ButtonHovered] = mainColorHovered;
style.Colors[ImGuiCol_ButtonActive] = mainColorActive;
style.Colors[ImGuiCol_Header] = mainColor;
style.Colors[ImGuiCol_HeaderHovered] = mainColorHovered;
style.Colors[ImGuiCol_HeaderActive] = mainColorActive;
style.Colors[ImGuiCol_Column] = mainColor;
style.Colors[ImGuiCol_ColumnHovered] = mainColorHovered;
style.Colors[ImGuiCol_ColumnActive] = mainColorActive;
style.Colors[ImGuiCol_ResizeGrip] = mainColor;
style.Colors[ImGuiCol_ResizeGripHovered] = mainColorHovered;
style.Colors[ImGuiCol_ResizeGripActive] = mainColorActive;
style.Colors[ImGuiCol_CloseButton] = mainColor;
style.Colors[ImGuiCol_CloseButtonHovered] = mainColorHovered;
style.Colors[ImGuiCol_CloseButtonActive] = mainColorActive;
style.Colors[ImGuiCol_PlotLines] = mainColor;
style.Colors[ImGuiCol_PlotLinesHovered] = mainColorHovered;
style.Colors[ImGuiCol_PlotHistogram] = mainColor;
style.Colors[ImGuiCol_PlotHistogramHovered] = mainColorHovered;
style.Colors[ImGuiCol_TextSelectedBg] = ImVec4(0.25f, 1.00f, 0.00f, 0.43f);
style.Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(1.00f, 0.98f, 0.95f, 0.73f);
}
void GUI_Init( IDirect3DDevice9* pDevice )
{
ImGui_ImplDX9_Init( G::Window, pDevice );
color();
G::d3dinit = true;
}
код засунь в [CОDE] и [SPОILER]
 
Забаненный
Статус
Оффлайн
Регистрация
2 Сен 2017
Сообщения
249
Реакции[?]
70
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Оформи тему, объясни что ты менял в SRC. Какие ошибки и т.д.
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу