mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-20 07:48:11 +08:00

* feat(Spoofing): add spoofing * feat(Spoofing): prepare code for player attach * remove(PlayerAttach): isn't going to work due to netsync architecture * fix(GUI): fix scaling * feat(Project): add clang-format file * feat(Classes): update classes * fix(BlackHole): remove unnecessary cleanup * fix(Formatting): fix formatting for initializer lists * feat(clang-format): Set tab width and 1 space before comment Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
27 lines
751 B
C++
27 lines
751 B
C++
#include "services/gui/gui_service.hpp"
|
|
#include "views/view.hpp"
|
|
|
|
namespace big
|
|
{
|
|
void view::navigation()
|
|
{
|
|
ImGui::SetNextWindowPos({10.f, 100.f * g.window.gui_scale}, ImGuiCond_Always);
|
|
ImGui::SetNextWindowSize({300.f * g.window.gui_scale, 0.f}, ImGuiCond_Always);
|
|
|
|
if (ImGui::Begin("navigation", 0, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoNav))
|
|
{
|
|
g_gui_service->reset_nav_size();
|
|
for (std::pair<tabs, navigation_struct> navItem : g_gui_service->get_navigation())
|
|
{
|
|
switch (navItem.first)
|
|
{
|
|
case tabs::PLAYER:
|
|
case tabs::DEBUG: continue;
|
|
default: components::nav_item(navItem, 0);
|
|
}
|
|
}
|
|
}
|
|
ImGui::End();
|
|
}
|
|
}
|