Advertisement
Guest User

Untitled

a guest
May 13th, 2019
927
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 31.71 KB | None | 0 0
  1. #include "Config.h"
  2. #include "WndProc.h"
  3. #include "bass.h"
  4. #include "OutFontCompress.h"
  5. #include <fstream>
  6. #include <d3dx9.h>
  7. #pragma comment(lib, "bass.lib")
  8. // DirectX
  9. #include <d3d9.h>
  10. #include <d3dx9.h>
  11. #pragma comment(lib, "d3d9.lib")
  12. #pragma comment(lib, "d3dx9.lib")
  13. int radio_selected = 0;
  14. bool radio_paused;
  15. #using <System.dll>
  16. ATOM RegMyWindowClass(HINSTANCE, LPCTSTR);
  17.  
  18. IDirect3DTexture9* TitleTexture;
  19. int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
  20. {
  21.     LPCTSTR lpzClass = NAME;
  22.     if (!RegMyWindowClass(hInstance, lpzClass))
  23.         return 1;
  24.     RECT screen_rect;
  25.     GetWindowRect(GetDesktopWindow(), &screen_rect);
  26.     int x = screen_rect.right / 2 - 150;
  27.     int y = screen_rect.bottom / 2 - 75;
  28.  
  29.     HWND hWnd = CreateWindow(lpzClass, NAME, WS_POPUP, x, y, WINDOW_WIDTH, WINDOW_HEIGHT, NULL, NULL, hInstance, NULL);
  30.     if (!hWnd) return 2;
  31.  
  32.     LPDIRECT3D9 pD3D;
  33.     if ((pD3D = Direct3DCreate9(D3D_SDK_VERSION)) == NULL)
  34.     {
  35.         UnregisterClass(lpzClass, hInstance);
  36.     }
  37.  
  38.     ZeroMemory(&g_d3dpp, sizeof(g_d3dpp));
  39.     g_d3dpp.Windowed = TRUE;
  40.     g_d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
  41.     g_d3dpp.BackBufferFormat = D3DFMT_UNKNOWN;
  42.     g_d3dpp.EnableAutoDepthStencil = TRUE;
  43.     g_d3dpp.AutoDepthStencilFormat = D3DFMT_D16;
  44.     g_d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_ONE; // Present with vsync
  45.     //g_d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE; // Present without vsync, maximum unthrottled framerate
  46.  
  47.     if (pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &g_d3dpp, &g_pd3dDevice) < 0)
  48.     {
  49.  
  50.         pD3D->Release();
  51.         UnregisterClass(lpzClass, hInstance);
  52.         return 0;
  53.  
  54.     }
  55.  
  56.     // Setup ImGui binding
  57.     ImGui_ImplDX9_Init(hWnd, g_pd3dDevice);
  58.  
  59.     ImGuiStyle& style = ImGui::GetStyle();
  60.    
  61.     style.Alpha = 1.0f;
  62.     style.WindowPadding = ImVec2(0, 0);
  63.     style.WindowMinSize = ImVec2(32, 32);
  64.     style.WindowRounding = 0.0f;
  65.     style.WindowTitleAlign = ImVec2(0.0f, 0.5f);
  66.     style.ChildWindowRounding = 0.0f;
  67.     style.FramePadding = ImVec2(4, 3);
  68.     style.FrameRounding = 0.0f;
  69.     style.ItemSpacing = ImVec2(8, 8);
  70.     style.ItemInnerSpacing = ImVec2(8, 8);
  71.     style.TouchExtraPadding = ImVec2(0, 0);
  72.     style.IndentSpacing = 21.0f;
  73.     style.ColumnsMinSpacing = 0.0f;
  74.     style.ScrollbarSize = 6.0f;
  75.     style.ScrollbarRounding = 0.0f;
  76.     style.GrabMinSize = 5.0f;
  77.     style.GrabRounding = 0.0f;
  78.     style.ButtonTextAlign = ImVec2(0.0f, 0.5f);
  79.     style.DisplayWindowPadding = ImVec2(22, 22);
  80.     style.DisplaySafeAreaPadding = ImVec2(4, 4);
  81.     style.AntiAliasedLines = true;
  82.     style.AntiAliasedShapes = false;
  83.     style.CurveTessellationTol = 1.f;
  84.    
  85.     static int hue = 140;
  86.     static float col_main_sat = 180.f / 255.f;
  87.     static float col_main_val = 161.f / 255.f;
  88.     static float col_area_sat = 124.f / 255.f;
  89.     static float col_area_val = 100.f / 255.f;
  90.     static float col_back_sat = 59.f / 255.f;
  91.     static float col_back_val = 40.f / 255.f;
  92.  
  93.     ImVec4 col_text = ImColor::HSV(hue / 255.f, 20.f / 255.f, 235.f / 255.f);
  94.     ImVec4 col_main = ImColor::HSV(hue / 255.f, col_main_sat, col_main_val);
  95.     ImVec4 col_back = ImColor::HSV(hue / 255.f, col_back_sat, col_back_val);
  96.     ImVec4 col_area = ImColor::HSV(hue / 255.f, col_area_sat, col_area_val);
  97.  
  98.     ImVec4* colors = ImGui::GetStyle().Colors;
  99.     colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
  100.     colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f);
  101.     colors[ImGuiCol_WindowBg] = ImVec4(33 / 255.f, 35 / 255.f, 47 / 255.f, 1.0f);
  102.     colors[ImGuiCol_PopupBg] = ImVec4(29 / 255.f, 24 / 255.f, 67 / 255.f, 1.0f);
  103.     colors[ImGuiCol_Border] = ImVec4(30 / 255.f, 30 / 255.f, 41 / 255.f, 1.0f);
  104.     colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
  105.     colors[ImGuiCol_ChildWindowBg] = ImVec4(33 / 255.f, 35 / 255.f, 47 / 255.f, 1.0f);
  106.     colors[ImGuiCol_FrameBg] = ImVec4(33 / 255.f, 35 / 255.f, 47 / 255.f, 1.0f);
  107.     colors[ImGuiCol_FrameBgHovered] = ImVec4(33 / 255.f, 35 / 255.f, 47 / 255.f, 1.0f);
  108.     colors[ImGuiCol_FrameBgActive] = ImVec4(33 / 255.f, 35 / 255.f, 47 / 255.f, 1.0f);
  109.     colors[ImGuiCol_TitleBgActive] = ImVec4(35 / 255.f, 35 / 255.f, 35 / 255.f, 1.0f);
  110.     colors[ImGuiCol_TitleBg] = ImVec4(35 / 255.f, 35 / 255.f, 35 / 255.f, 1.0f);
  111.     colors[ImGuiCol_TitleBgCollapsed] = ImVec4(35 / 255.f, 35 / 255.f, 35 / 255.f, 1.0f);
  112.     colors[ImGuiCol_MenuBarBg] = ImVec4(0.14f, 0.14f, 0.14f, 1.00f);
  113.     colors[ImGuiCol_ScrollbarBg] = ImVec4(0.17f, 0.17f, 0.17f, 1.00f);
  114.     colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.25f, 0.25f, 0.25f, 1.00f);
  115.     colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.25f, 0.25f, 0.25f, 1.00f);
  116.     colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.25f, 0.25f, 0.25f, 1.00f);
  117.     colors[ImGuiCol_Button] = ImColor(225, 31, 92);
  118.     colors[ImGuiCol_ButtonHovered] = ImColor(225, 31, 92);
  119.     colors[ImGuiCol_ButtonActive] = ImVec4(135 / 255.f, 135 / 255.f, 135 / 255.f, 1.0f); //
  120.     colors[ImGuiCol_Header] = ImColor(225, 31, 92); //multicombo, combo selected item color.
  121.     colors[ImGuiCol_HeaderHovered] = ImColor(125, 21, 72);
  122.     colors[ImGuiCol_HeaderActive] = ImColor(225, 31, 92);
  123.     colors[ImGuiCol_ResizeGrip] = ImVec4(0.26f, 0.59f, 0.98f, 0.25f);
  124.     colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f);
  125.     colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f);
  126.     colors[ImGuiCol_PlotLines] = ImVec4(0.61f, 0.61f, 0.61f, 1.00f);
  127.     colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f);
  128.     colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f);
  129.     colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f);
  130.     colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f);
  131.     colors[ImGuiCol_CloseButton] = ImVec4(0, 0, 0, 0);
  132.     colors[ImGuiCol_CloseButtonHovered] = ImVec4(0, 0, 0, 0);
  133.  
  134.  
  135.  
  136.     const int TITLE_ICON_SIZEX = 30;
  137.     const int TITLE_ICON_SIZEY = 25;
  138.     if (TitleTexture == nullptr)
  139.         D3DXCreateTextureFromFileInMemoryEx(g_pd3dDevice, _Bytes, 1435, TITLE_ICON_SIZEX, TITLE_ICON_SIZEY, D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0, NULL, NULL, &TitleTexture);
  140.  
  141.     bool show_test_window = true;
  142.     bool show_another_window = false;
  143.     ImVec4 clear_col = ImColor(0, 0, 0, 255);
  144.    
  145.     ImFont* Main;
  146.     ImFont* Menu;
  147.     ImFont* MainCaps;
  148.     ImFont* Icons;
  149.  
  150.     ImFontConfig config;
  151.     config.OversampleH = 6;
  152.     config.OversampleV = 6;
  153.  
  154.     Main = ImGui::GetIO().Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\URW Martin Gothic W01 Medium.ttf", 15, &config);
  155.     MainCaps = ImGui::GetIO().Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\URW Martin Gothic W01 Medium.ttf", 19, &config);
  156.     Menu = ImGui::GetIO().Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\URW Martin Gothic W01 Medium.ttf", 13, &config);
  157.     Icons = ImGui::GetIO().Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\URW Martin Gothic W01 Thin.ttf", 15, &config);
  158.  
  159.     // Main
  160.     MSG msg;
  161.     ZeroMemory(&msg, sizeof(msg));
  162.     ShowWindow(hWnd, SW_SHOWDEFAULT);
  163.     UpdateWindow(hWnd);
  164.     while (msg.message != WM_QUIT)
  165.     {
  166.         if (PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE))
  167.         {
  168.             TranslateMessage(&msg);
  169.             DispatchMessage(&msg);
  170.             continue;
  171.         }
  172.  
  173.         ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
  174.  
  175.         ImGui_ImplDX9_NewFrame();
  176.         DWORD dwFlag = ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings |  ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoTitleBar;
  177.  
  178.         static bool open = true;
  179.  
  180.         if (!open)
  181.             ExitProcess(0);
  182.         ImGui::GetStyle().Colors[ImGuiCol_CheckMark] = ImColor(225, 31, 92);
  183.         ImGui::GetStyle().Colors[ImGuiCol_SliderGrab] = ImVec4(225 / 255.f, 31 / 255.f, 92 / 255.f, 1.f);
  184.         ImGui::GetStyle().Colors[ImGuiCol_SliderGrabActive] = ImVec4(225 / 255.f, 31 / 255.f, 92 / 255.f, 1.f);
  185.         ImGui::GetStyle().Colors[ImGuiCol_Border] = ImColor(65, 55, 67, 255);
  186.         ImGui::Begin(NAME_LOADER, &open, ImVec2(WINDOW_WIDTH, WINDOW_HEIGHT), 1.0f, dwFlag );
  187.         {
  188.         {
  189.  
  190.             static int iPage = 3;
  191.             if (iPage == 3)
  192.             {
  193.                 ImGui::BeginChild(("Tabs"), ImVec2(0, 0), 0.9f, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse);
  194.                 {
  195.                     ImVec2 p = ImGui::GetCursorScreenPos();
  196.                     ImColor c = ImColor(32, 114, 247);
  197.                     static int page = 0;
  198.                     //title bar
  199.  
  200.                     bool backtrack;
  201.                     bool aim_at_backtrack;
  202.                     bool backtrack_visualize;
  203.                     bool aim_enabled;
  204.                     bool scope_aim;
  205.                     bool smoke_check;
  206.                     bool aim_silent_pistol;
  207.                     bool aim_silent_rifle;
  208.                     bool aim_silent_sniper;
  209.                     bool aim_silent_heavy;
  210.                     bool aim_silent_smg;
  211.                     bool aim_distance_based_fov;
  212.                     float aim_fov_pistol;
  213.                     float rcs_x_pistol;
  214.                     float rcs_y_pistol;
  215.                     float rcs_x_rifle;
  216.                     float rcs_y_rifle;
  217.                     float rcs_x_sniper;
  218.                     float rcs_y_sniper;
  219.                     float rcs_x_heavy;
  220.                     float rcs_y_heavy;
  221.                     float rcs_x_smg;
  222.                     float rcs_y_smg;
  223.                     float aim_smooth_pistol;
  224.                     float aim_fov_rifle;
  225.                     float aim_smooth_rifle;
  226.                     float aim_fov_sniper;
  227.                     float aim_smooth_sniper;
  228.                     float aim_fov_heavy;
  229.                     float aim_smooth_heavy;
  230.                     float aim_fov_smg;
  231.                     float aim_smooth_smg;
  232.                     int aim_bone_smg;
  233.                     int aim_bone_sniper;
  234.                     int aim_bone_pistol;
  235.                     int aim_mode ;
  236.                     int aim_bone_rifle ;
  237.                     int aim_bone_heavy;
  238.                     int aim_weapon ;
  239.                     bool aim_team_check;
  240.  
  241.                     ImGui::GetWindowDrawList()->AddRectFilledMultiColor(ImVec2(p.x, p.y + 52), ImVec2(p.x + ImGui::GetWindowWidth(), p.y + 62), ImColor(0, 0, 0, 255), ImColor(0, 0, 0, 255), ImColor(14, 13, 35, 255), ImColor(14, 13, 35, 255));
  242.                     ImGui::GetWindowDrawList()->AddRectFilledMultiColor(ImVec2(p.x, p.y + 62), ImVec2(p.x + ImGui::GetWindowWidth(), p.y + 500), ImColor(14, 13, 35, 255), ImColor(14, 13, 35, 255), ImColor(14, 13, 35, 255), ImColor(14, 13, 35, 255));
  243.  
  244.                     ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(p.x, p.y + 52), ImVec2(p.x + ImGui::GetWindowWidth(), p.y - 3), ImColor(29, 27, 66));
  245.                     ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(p.x, p.y + 12), ImVec2(p.x + ImGui::GetWindowWidth(), p.y - 3), ImColor(29, 27, 66));
  246.                     //draw gradient bellow title bar
  247.                     ImGui::GetWindowDrawList()->AddRectFilledMultiColor(ImVec2(p.x, p.y + 14), ImVec2(p.x + ImGui::GetWindowWidth(), p.y + 12), ImColor(167, 24, 71, 255), ImColor(58, 31, 87, 255), ImColor(58, 31, 87, 255), ImColor(167, 24, 71, 255));
  248.                     //  ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(p.x, p.y + 30), ImVec2(p.x + ImGui::GetWindowWidth(), p.y - 3), ImColor(30, 30, 39));
  249.                         //push font for window stuff
  250.                     ImGui::PushFont(MainCaps);
  251.                     //set cheat name position
  252.                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 22); //góra, dółx
  253.                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 7); //lewo prawo
  254.                     //render cheat name
  255.                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  256.  
  257.                     ImGui::Text("KARRATY.CLUB");
  258.                     ImGui::SameLine();
  259.                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  260.  
  261.                     ImGui::PopFont();
  262.                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 4); //góra, dół
  263.  
  264.                     ImGui::PushFont(Menu);
  265.                     if (ImGui::ButtonT("RAGE", ImVec2(50, 30), page, 0, ImColor(167, 24, 71), false)) page = 0; ImGui::SameLine(0, 0);
  266.                     if (ImGui::ButtonT("VISUALS", ImVec2(50, 30), page, 1, ImColor(167, 24, 71), false)) page = 1; ImGui::SameLine(0, 0);
  267.                     if (ImGui::ButtonT("MISC", ImVec2(50, 30), page, 2, ImColor(167, 24, 71), false)) page = 2; ImGui::SameLine(0, 0);
  268.                     if (ImGui::ButtonT("SKINS", ImVec2(50, 30), page, 3, ImColor(167, 24, 71), false)) page = 3; ImGui::SameLine(0, 0);
  269.                     if (ImGui::ButtonT("LEGIT", ImVec2(50, 30), page, 4, ImColor(167, 24, 71), false)) page = 4; ImGui::SameLine(0, 0);
  270.  
  271.                     ImGui::PopFont();
  272.  
  273.                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 45); //góra, dół
  274.                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 222); //lewo prawo
  275.                     ImGui::PushFont(Menu);
  276.                     ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(16, 16));
  277.  
  278.  
  279.                     ImGui::PushStyleColor(ImGuiCol_ChildWindowBg, ImVec4(30 / 255.f, 30 / 255.f, 39 / 255.f, 1.0f));
  280.  
  281.                     ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0 / 255.f, 0 / 255.f, 0 / 255.f, 0.1f));
  282.  
  283.                     ImGui::PopStyleColor();
  284.                     ImGui::PopStyleColor();
  285.                     ImGui::PopStyleVar();
  286.  
  287.                     static int test = 0;
  288.                     static int vispg = 0;
  289.                     static int mscpg = 0;
  290.                     static int skinpg = 0;
  291.                     static int cfgpg = 0;
  292.  
  293.                     switch (page) {
  294.                     case 0:
  295.                         ImGui::Dummy(ImVec2(0, -2)); ImGui::SameLine();
  296.                         ImGui::Dummy(ImVec2(0, 0)); ImGui::SameLine();
  297.                         ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(16, 16));
  298.  
  299.                         //push window color for child
  300.                         ImGui::PushStyleColor(ImGuiCol_ChildWindowBg, ImVec4(32 / 255.f, 27 / 255.f, 68 / 255.f, 1.0f));
  301.                         //push border color for child
  302.                         ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(61 / 255.f, 55 / 255.f, 85 / 255.f, 1.0f));
  303.  
  304.                         ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 0);
  305.                         ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 153);
  306.  
  307.                         ImGui::BeginChild("##tab", ImVec2(576, 23), true , ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  308.                         {
  309.                             ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 20);
  310.                             if (ImGui::ButtonT(" AIMBOT", ImVec2(50, 30), test, 0, ImColor(167, 24, 71), false)) test = 0; ImGui::SameLine(0, 0); //pistol
  311.                             if (ImGui::ButtonT("ANTI-AIM", ImVec2(50, 30), test, 1, ImColor(167, 24, 71), false)) test = 1; ImGui::SameLine(0, 0); //pistol
  312.                             if (ImGui::ButtonT("WEAPONS", ImVec2(53, 30), test, 2, ImColor(167, 24, 71), false)) test = 2; //rifle
  313.  
  314.                         }
  315.                         ImGui::EndChild();
  316.  
  317.                         ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 12);
  318.  
  319.                         ImGui::SetCursorPosY(ImGui::GetCursorPosY() -16);
  320.  
  321.                         ImGui::PushStyleColor(ImGuiCol_ChildWindowBg, ImVec4(27 / 255.f, 22 / 255.f, 54 / 255.f, 1.0f));
  322.                         ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(61 / 255.f, 55 / 255.f, 85 / 255.f, 1.0f));
  323.                         ImGui::BeginChild("", ImVec2(576, 403), true); {
  324.                        
  325.                             ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  326.                            
  327.                             ImVec2 winpos = ImGui::GetWindowPos();
  328.  
  329.                             switch (test) {
  330.                             case 0:
  331.                                 ImGui::PushStyleColor(ImGuiCol_ChildWindowBg, ImColor(32, 28, 66));
  332.                                 ImGui::PushStyleColor(ImGuiCol_FrameBg, ImColor(29, 24, 67));
  333.                                 ImGui::PushStyleColor(ImGuiCol_Border, ImColor(53, 48, 83));
  334.                                 ImGui::BeginChild("Aimbot", ImVec2(181, 378), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar );
  335.                                 {
  336.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 9);
  337.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  338.                                     ImGui::Checkbox("Aimbot", &aim_enabled);
  339.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  340.                                     ImGui::Checkbox("Autofire", &aim_distance_based_fov);
  341.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  342.                                     ImGui::Checkbox("Backtrack", &scope_aim);
  343.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  344.                                     ImGui::Checkbox("Resolver", &smoke_check);
  345.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  346.                                     ImGui::Checkbox("Override resolver", &aim_team_check);
  347.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  348.                                     ImGui::Checkbox("Fakelag compensation", &backtrack);
  349.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  350.                                     ImGui::Checkbox("Delay shot", &aim_team_check);
  351.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  352.                                     ImGui::Checkbox("Force baim", &aim_team_check);
  353.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  354.                                     ImGui::Checkbox("Remove spread", &aim_team_check);
  355.                                 }
  356.                                 ImGui::EndChild();
  357.  
  358.                                 ImGui::SameLine();
  359.  
  360.                                 ImGui::BeginChild("Other", ImVec2(181, 378), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  361.                                 {
  362.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 9);
  363.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  364.                                     ImGui::Checkbox("Knifebot", &aim_team_check);
  365.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  366.                                     ImGui::Checkbox("Zeusbot", &aim_team_check);
  367.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  368.                                     ImGui::Checkbox("Extended backtrack", &aim_team_check);
  369.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  370.                                     ImGui::Checkbox("Ping spike", &aim_team_check);
  371.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  372.                                     ImGui::Checkbox("Philiptime", &aim_team_check);
  373.                                 }
  374.                                 ImGui::EndChild();
  375.  
  376.                                 ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 371);
  377.  
  378.                                 ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 100);
  379.  
  380.                                 ImGui::BeginChild("##config", ImVec2(180, 92), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  381.                                 {
  382.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 13);
  383.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  384.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  385.                                     ImGui::Text("Slot");
  386.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  387.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  388.                                     ImGui::Combo("##Slot", &aim_mode, "Slot 1\0Slot 2"); //todo add custom bone selection - designer
  389.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  390.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 3);
  391.                                     ImGui::Button("            Load config",ImVec2(115 , 16));
  392.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  393.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 3);
  394.                                     ImGui::Button("            Save config", ImVec2(115, 16));
  395.  
  396.                                 }
  397.                                 ImGui::EndChild();
  398.  
  399.                                 break;
  400.                             case 1:
  401.                                 ImGui::PushStyleColor(ImGuiCol_ChildWindowBg, ImColor(32, 28, 66));
  402.                                 ImGui::PushStyleColor(ImGuiCol_FrameBg, ImColor(29, 24, 67));
  403.                                 ImGui::PushStyleColor(ImGuiCol_Border, ImColor(53, 48, 83));
  404.                                 ImGui::BeginChild("Stand", ImVec2(181, 378), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  405.                                 {
  406.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  407.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 13);
  408.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  409.                                     ImGui::Text("Pitch");
  410.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  411.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  412.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  413.                                     ImGui::Combo("##Slot123", &aim_mode, "None\0Slot 2");
  414.  
  415.  
  416.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  417.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  418.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  419.                                     ImGui::Text("Yaw");
  420.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  421.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  422.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  423.                                     ImGui::Combo("##Slot1234", &aim_mode, "None\0Slot 2");
  424.  
  425.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  426.                                     ImGui::Checkbox("Yaw add", &aim_enabled);
  427.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  428.                                     ImGui::Checkbox("At fov target", &aim_enabled);
  429.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  430.                                     ImGui::Checkbox("Freestand", &aim_enabled);
  431.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  432.                                     ImGui::Checkbox("Fake lag", &aim_enabled);
  433.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  434.                                     ImGui::Checkbox("Spin", &aim_enabled);
  435.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  436.                                     ImGui::Checkbox("Jitter", &aim_enabled);
  437.  
  438.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  439.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  440.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  441.                                     ImGui::Text("Lby");
  442.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  443.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  444.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  445.                                     ImGui::Combo("##Slot1234", &aim_mode, "None\0Slot 2"); //todo add custom bone selection - designer
  446.  
  447.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  448.                                     ImGui::Checkbox("Hide when hittable", &aim_enabled);
  449.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  450.                                     ImGui::Checkbox("Limit delta", &aim_enabled);
  451.  
  452.                                 }
  453.                                 ImGui::EndChild();
  454.  
  455.                                 ImGui::SameLine();
  456.  
  457.                                 ImGui::BeginChild("Moving", ImVec2(181, 190), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  458.                                 {
  459.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  460.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 13);
  461.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  462.                                     ImGui::Text("Pitch");
  463.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  464.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  465.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  466.                                     ImGui::Combo("##Slot123", &aim_mode, "None\0Slot 2");
  467.  
  468.  
  469.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  470.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  471.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  472.                                     ImGui::Text("Yaw");
  473.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  474.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  475.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  476.                                     ImGui::Combo("##Slot1234", &aim_mode, "None\0Slot 2");
  477.  
  478.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  479.                                     ImGui::Checkbox("Yaw add", &aim_enabled);
  480.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  481.                                     ImGui::Checkbox("At fov target", &aim_enabled);
  482.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  483.                                     ImGui::Checkbox("Freestand", &aim_enabled);
  484.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  485.                                     ImGui::Checkbox("Fake lag", &aim_enabled);
  486.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  487.                                     ImGui::Checkbox("Spin", &aim_enabled);
  488.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  489.                                     ImGui::Checkbox("Jitter", &aim_enabled);
  490.                                 }
  491.                                 ImGui::EndChild();
  492.  
  493.                                 ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 182);
  494.  
  495.                                 ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 188);
  496.  
  497.                                 ImGui::BeginChild("Air", ImVec2(181, 180), true, ImGuiWindowFlags_NoScrollbar);
  498.                                 {
  499.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  500.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 13);
  501.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  502.                                     ImGui::Text("Pitch");
  503.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  504.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  505.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  506.                                     ImGui::Combo("##Slot123", &aim_mode, "None\0Slot 2");
  507.  
  508.  
  509.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  510.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  511.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  512.                                     ImGui::Text("Yaw");
  513.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  514.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  515.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  516.                                     ImGui::Combo("##Slot1234", &aim_mode, "None\0Slot 2");
  517.  
  518.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  519.                                     ImGui::Checkbox("Yaw add", &aim_enabled);
  520.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  521.                                     ImGui::SliderFloat("##Volume", &aim_fov_heavy, 0.f, 1.f);
  522.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  523.                                     ImGui::Checkbox("At fov target", &aim_enabled);
  524.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  525.                                     ImGui::Checkbox("Freestand", &aim_enabled);
  526.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  527.                                     ImGui::Checkbox("Fake lag", &aim_enabled);
  528.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  529.                                     ImGui::Checkbox("Spin", &aim_enabled);
  530.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  531.                                     ImGui::Checkbox("Jitter", &aim_enabled);
  532.  
  533.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  534.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  535.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  536.                                     ImGui::Text("Lby");
  537.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  538.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  539.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  540.                                     ImGui::Combo("##Slot1234", &aim_mode, "None\0Slot 2"); //todo add custom bone selection - designer
  541.  
  542.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  543.                                     ImGui::Checkbox("Hide when hittable", &aim_enabled);
  544.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  545.                                     ImGui::Checkbox("Limit delta", &aim_enabled);
  546.                                 }
  547.                                 ImGui::EndChild();
  548.  
  549.  
  550.  
  551.                                 ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 371);
  552.  
  553.                                 ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 386);
  554.  
  555.                                 ImGui::BeginChild("General", ImVec2(180, 278), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  556.                                 {
  557.  
  558.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 9);
  559.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  560.                                     ImGui::Checkbox("Anti-aim", &aim_enabled);
  561.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  562.                                     ImGui::Checkbox("Fakelag always on", &aim_enabled);
  563.  
  564.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  565.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  566.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  567.                                     ImGui::Text("Additional fakelag");
  568.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  569.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  570.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  571.                                     ImGui::Combo("##Slot1234", &aim_mode, "None\0Slot 2"); //todo add custom bone selection - designer
  572.  
  573.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  574.                                     ImGui::Checkbox("Fakewalk", &aim_enabled);
  575.  
  576.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  577.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  578.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  579.                                     ImGui::Text("Indicators");
  580.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  581.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  582.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  583.                                     ImGui::Combo("##Slot1234", &aim_mode, "None\0Slot 2"); //todo add custom bone selection - designer
  584.  
  585.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  586.                                     ImGui::Checkbox("Low performance mode", &aim_enabled);
  587.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  588.                                     ImGui::Checkbox("Antiaim override", &aim_enabled);
  589.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  590.                                     ImGui::Checkbox("Back", &aim_enabled);
  591.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  592.                                     ImGui::Checkbox("Left", &aim_enabled);
  593.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  594.                                     ImGui::Checkbox("Right", &aim_enabled);
  595.                                 }
  596.                                 ImGui::EndChild();
  597.  
  598.  
  599.                                 ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 371);
  600.  
  601.                                 ImGui::SetCursorPosY(ImGui::GetCursorPosY());
  602.  
  603.                                 ImGui::BeginChild("##config", ImVec2(180, 92), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  604.                                 {
  605.                                     ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  606.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 13);
  607.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  608.                                     ImGui::Text("Slot");
  609.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  610.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  611.                                     ImGui::Combo("##Slot", &aim_mode, "Slot 1\0Slot 2"); //todo add custom bone selection - designer
  612.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  613.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 3);
  614.                                     ImGui::Button("            Load config", ImVec2(115, 16));
  615.                                     ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  616.                                     ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 3);
  617.                                     ImGui::Button("            Save config", ImVec2(115, 16));
  618.  
  619.                                 }
  620.                                 ImGui::EndChild();
  621.  
  622.                                 break;
  623.                             case 2:
  624.    
  625.                                 break;
  626.                             case 3:
  627.  
  628.                                 break;
  629.                             case 4:
  630.  
  631.                                 break;
  632.                             case 5:
  633.  
  634.                                 break;
  635.                             }
  636.                         }
  637.                         ImGui::EndChild();
  638.                         ImGui::PopStyleColor();
  639.                         ImGui::PopStyleColor();
  640.                         ImGui::PopStyleVar();
  641.  
  642.                         break;
  643.  
  644.                     case 1:
  645.                         ImGui::Dummy(ImVec2(0, -2)); ImGui::SameLine();
  646.                         ImGui::Dummy(ImVec2(0, 0)); ImGui::SameLine();
  647.                         ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(16, 16));
  648.  
  649.                         //push window color for child
  650.                         ImGui::PushStyleColor(ImGuiCol_ChildWindowBg, ImVec4(30 / 255.f, 30 / 255.f, 39 / 255.f, 1.0f));
  651.                         //push border color for child
  652.                         ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0 / 255.f, 0 / 255.f, 0 / 255.f, 0.1f));
  653.  
  654.                         ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 0); //góra, dół
  655.                         ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 100); //lewo prawo
  656.  
  657.                         ImGui::BeginChild("", ImVec2(385, 190), true); {
  658.                         }
  659.  
  660.                         ImGui::EndChild();
  661.                         ImGui::PopStyleColor();
  662.                         ImGui::PopStyleColor();
  663.                         ImGui::PopStyleVar();
  664.  
  665.                         break;
  666.  
  667.                     case 2:
  668.                         ImGui::Dummy(ImVec2(0, -2)); ImGui::SameLine();
  669.                         ImGui::Dummy(ImVec2(0, 0)); ImGui::SameLine();
  670.                         ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(16, 16));
  671.  
  672.                         //push window color for child
  673.                         ImGui::PushStyleColor(ImGuiCol_ChildWindowBg, ImVec4(30 / 255.f, 30 / 255.f, 39 / 255.f, 1.0f));
  674.                         //push border color for child
  675.                         ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0 / 255.f, 0 / 255.f, 0 / 255.f, 0.1f));
  676.  
  677.                         ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 0); //góra, dół
  678.                         ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 100); //lewo prawo
  679.  
  680.                         ImGui::BeginChild("", ImVec2(385, 190), true); {
  681.                         }
  682.  
  683.                         ImGui::EndChild();
  684.                         ImGui::PopStyleColor();
  685.                         ImGui::PopStyleColor();
  686.                         ImGui::PopStyleVar();
  687.  
  688.                         break;
  689.                     }
  690.  
  691.  
  692.                 }
  693.                 ImGui::EndChild();
  694.             }
  695.         }
  696.     }
  697.         ImGui::End();
  698.        
  699.        
  700.  
  701.         // Render
  702.         g_pd3dDevice->SetRenderState(D3DRS_ZENABLE, false);
  703.         g_pd3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, false);
  704.         g_pd3dDevice->SetRenderState(D3DRS_SCISSORTESTENABLE, false);
  705.  
  706.             //D3DCOLOR clear_col_dx = D3DCOLOR_RGBA((int)(clear_color.x*255.0f), (int)(clear_color.y*255.0f), (int)(clear_color.z*255.0f), (int)(clear_color.w*255.0f));
  707.             //g_pd3dDevice->Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, clear_col_dx, 1.0f, 0);
  708.             if (g_pd3dDevice->BeginScene() >= 0)
  709.             {
  710.                 ImGui::Render();
  711.                 g_pd3dDevice->EndScene();
  712.             }
  713.             g_pd3dDevice->Present(NULL, NULL, NULL, NULL);
  714.     }
  715.  
  716.     ImGui_ImplDX9_Shutdown();
  717.     if (g_pd3dDevice) g_pd3dDevice->Release();
  718.     if (pD3D) pD3D->Release();
  719.     UnregisterClass(NAME, hInstance);
  720.  
  721.     return 0;
  722. }
  723.  
  724. //////////////////////////////////////////////////////////////////////////
  725. ATOM RegMyWindowClass(HINSTANCE hInst, LPCTSTR lpzClassName)
  726. {
  727.     WNDCLASS wcWindowClass = { 0 };
  728.     // адрес ф-ции обработки сообщений
  729.     wcWindowClass.lpfnWndProc = (WNDPROC)WndProc;
  730.     // стиль окна
  731.     wcWindowClass.style = CS_HREDRAW | CS_VREDRAW;
  732.     // дискриптор экземпляра приложения
  733.     wcWindowClass.hInstance = hInst;
  734.     // название класса
  735.     wcWindowClass.lpszClassName = lpzClassName;
  736.     // загрузка курсора
  737.     wcWindowClass.hCursor = LoadCursor(NULL, IDC_ARROW);
  738.     // загрузка цвета окон
  739.     wcWindowClass.hbrBackground = (HBRUSH)COLOR_APPWORKSPACE;
  740.     return RegisterClass(&wcWindowClass); // регистрация класса
  741. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement