mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-15 23:07:59 +08:00
Tunables service fix and theme changes (#1507)
This commit is contained in:
@ -42,8 +42,13 @@ namespace big
|
||||
|
||||
dl->AddRectFilled({(float)*g_pointers->m_gta.m_resolution_x - 360.f, 10.f + start_pos},
|
||||
{(float)*g_pointers->m_gta.m_resolution_x - 10.f, start_pos + 45.f + total_size},
|
||||
g.window.color);
|
||||
dl->AddRectFilledMultiColor({(float)*g_pointers->m_gta.m_resolution_x - 360.f, 10.f + start_pos}, {(float)*g_pointers->m_gta.m_resolution_x - 255.f, start_pos + 45.f + total_size}, fadeBegin, fadeEnd, fadeEnd, fadeBegin);
|
||||
g.window.background_color);
|
||||
dl->AddRectFilledMultiColor({(float)*g_pointers->m_gta.m_resolution_x - 360.f, 10.f + start_pos},
|
||||
{(float)*g_pointers->m_gta.m_resolution_x - 255.f, start_pos + 45.f + total_size},
|
||||
fadeBegin,
|
||||
fadeEnd,
|
||||
fadeEnd,
|
||||
fadeBegin);
|
||||
|
||||
dl->AddText(g.window.font_sub_title,
|
||||
22.f,
|
||||
|
@ -10,6 +10,8 @@ namespace big
|
||||
if (!g.window.ingame_overlay.opened || (g_gui->is_open() && !g.window.ingame_overlay.show_with_menu_opened))
|
||||
return;
|
||||
|
||||
g_gui->push_theme_colors();
|
||||
|
||||
ImGui::SetNextWindowPos(ImVec2(10.0f, 10.0f), ImGuiCond_FirstUseEver, ImVec2(0.0f, 0.0f));
|
||||
ImGui::SetNextWindowBgAlpha(0.5f);
|
||||
|
||||
@ -26,6 +28,15 @@ namespace big
|
||||
ImGui::Text(std::format("Players: {}/{}", network_player_mgr->m_player_count, network_player_mgr->m_player_limit)
|
||||
.c_str());
|
||||
|
||||
if (g.window.ingame_overlay.show_position && g_local_player)
|
||||
{
|
||||
ImGui::Separator();
|
||||
|
||||
auto& pos = *g_local_player->get_position();
|
||||
|
||||
ImGui::Text("Pos: %.2f, %.2f, %.2f", pos.x, pos.y, pos.z);
|
||||
}
|
||||
|
||||
// can't easily get used item count using pools, so keeping replay interface for now
|
||||
if (auto replay_interface = *g_pointers->m_gta.m_replay_interface; g.window.ingame_overlay.show_replay_interface)
|
||||
{
|
||||
@ -58,5 +69,7 @@ namespace big
|
||||
}
|
||||
}
|
||||
ImGui::End();
|
||||
|
||||
g_gui->pop_theme_colors();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user