From 73cbed632030f7f44d259dea1e2a1b00a17f95a5 Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 26 Dec 2018 00:11:18 +1300 Subject: obje]se incomepeternt porogrammer wtieres cod SPWOOOOOoo --- csgo-loader/csgo-client/UserExperience/MoneybotShared/ui.h | 8 ++++---- csgo-loader/csgo-client/UserExperience/UserInterface.hpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'csgo-loader/csgo-client/UserExperience') diff --git a/csgo-loader/csgo-client/UserExperience/MoneybotShared/ui.h b/csgo-loader/csgo-client/UserExperience/MoneybotShared/ui.h index 661ef1f..b061cd5 100644 --- a/csgo-loader/csgo-client/UserExperience/MoneybotShared/ui.h +++ b/csgo-loader/csgo-client/UserExperience/MoneybotShared/ui.h @@ -84,20 +84,20 @@ namespace ui { auto choose_form = menu->add_item(std::make_shared(120, 20, 190, 115, "select a cheat")); { // Change these if you want to. - static std::vector> m_beta_items{ + static std::vector> m_beta_items{ { "cs:go (release)", 0 }, { "cs:go (beta)", 1 }, { "cs:go (debug)", 2 }, }; - static std::vector> m_normal_items{ + static std::vector> m_normal_items{ { "cs:go", 0 }, }; - choose_form->add_item(std::make_shared>(15, 0, 140, "cheat selection:", &UserInterface->m_Data.m_SelectedGame, &m_beta_items))->set_cond([] { + choose_form->add_item(std::make_shared>(15, 0, 140, "cheat selection:", &UserInterface->m_Data.m_SelectedGame, &m_beta_items))->set_cond([] { return UserInterface->m_Data.m_SpecialAccess; }); - choose_form->add_item(std::make_shared>(15, 0, 140, "cheat selection:", &UserInterface->m_Data.m_SelectedGame, &m_normal_items))->set_cond([] { + choose_form->add_item(std::make_shared>(15, 0, 140, "cheat selection:", &UserInterface->m_Data.m_SelectedGame, &m_normal_items))->set_cond([] { return !UserInterface->m_Data.m_SpecialAccess; }); diff --git a/csgo-loader/csgo-client/UserExperience/UserInterface.hpp b/csgo-loader/csgo-client/UserExperience/UserInterface.hpp index d855c85..e905b3b 100644 --- a/csgo-loader/csgo-client/UserExperience/UserInterface.hpp +++ b/csgo-loader/csgo-client/UserExperience/UserInterface.hpp @@ -45,7 +45,7 @@ namespace UserExperience bool m_SpecialAccess = false; // Holds the selected game. - SelectedGame m_SelectedGame = GAME_CSGO; + uint16_t m_SelectedGame = GAME_CSGO; // Holds the current error message. ErrorReason m_Error = ERROR_GENERIC_ERROR; -- cgit v1.2.3