From 1c2bb3940929208ba829efa5fc557a89e643867f Mon Sep 17 00:00:00 2001 From: Yimura Date: Thu, 5 May 2022 01:39:11 +0200 Subject: [PATCH] chore: Cleanup code --- BigBaseV2/src/gui.cpp | 2 -- BigBaseV2/src/views/core/view_navigation.cpp | 20 -------------------- BigBaseV2/src/views/esp/view_esp.cpp | 4 +--- 3 files changed, 1 insertion(+), 25 deletions(-) diff --git a/BigBaseV2/src/gui.cpp b/BigBaseV2/src/gui.cpp index ef7acc86..b348948c 100644 --- a/BigBaseV2/src/gui.cpp +++ b/BigBaseV2/src/gui.cpp @@ -42,8 +42,6 @@ namespace big style.GrabRounding = 3.0f; style.ChildRounding = 4.0f; - LOG(INFO) << (int32_t)g->window.color; - auto& colors = style.Colors; colors[ImGuiCol_Text] = ImVec4(0.80f, 0.80f, 0.83f, 1.00f); colors[ImGuiCol_TextDisabled] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f); diff --git a/BigBaseV2/src/views/core/view_navigation.cpp b/BigBaseV2/src/views/core/view_navigation.cpp index fa298bd6..5f93c465 100644 --- a/BigBaseV2/src/views/core/view_navigation.cpp +++ b/BigBaseV2/src/views/core/view_navigation.cpp @@ -16,26 +16,6 @@ namespace big components::nav_item(navItem, 0); } - /*static navigation_struct playerPage = { tabs::PLAYER, "Player", view::view_player }; - - if (ImGui::BeginListBox("players", {(float)*g_pointers->m_resolution_x * 0.15f - 30, (float)*g_pointers->m_resolution_y * 0.3f})) { - for (auto& item : g_player_service->m_players) - { - std::unique_ptr& plyr = item.second; - if (plyr->is_host()) - ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.29f, 0.45f, 0.69f, 1.f)); - if (ImGui::Button(plyr->get_name(), { ImGui::GetWindowSize().x - 15.f, 0.f })) - { - g_player_service->set_selected(plyr.get()); - current_tab = &playerPage; - g->window.switched_view = true; - } - if (plyr->is_host()) - ImGui::PopStyleColor(); - } - - ImGui::EndListBox(); - }*/ ImGui::End(); } } diff --git a/BigBaseV2/src/views/esp/view_esp.cpp b/BigBaseV2/src/views/esp/view_esp.cpp index 964f05f6..9d1d4e10 100644 --- a/BigBaseV2/src/views/esp/view_esp.cpp +++ b/BigBaseV2/src/views/esp/view_esp.cpp @@ -26,9 +26,7 @@ namespace big static ImColor health_red_bg = ImColor(0.69f, 0.29f, 0.29f, 0.5f); static ImColor health_red = ImColor(0.69f, 0.29f, 0.29f, 1.f); - ImDrawList* draw_list = ImGui::GetBackgroundDrawList(); - - if (draw_list) + if (const auto draw_list = ImGui::GetBackgroundDrawList(); draw_list) { for (auto& item : g_player_service->m_players) {