chore: Cleanup code

This commit is contained in:
Yimura 2022-05-05 01:39:11 +02:00
parent a40e459788
commit 1c2bb39409
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
3 changed files with 1 additions and 25 deletions

View File

@ -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);

View File

@ -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<player>& 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();
}
}

View File

@ -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)
{