mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-01 20:12:50 +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>
26 lines
599 B
C++
26 lines
599 B
C++
#include "gui/components/components.hpp"
|
|
#include "script_mgr.hpp"
|
|
#include "view_debug.hpp"
|
|
|
|
namespace big
|
|
{
|
|
void debug::scripts()
|
|
{
|
|
if (ImGui::BeginTabItem("DEBUG_TAB_SCRIPTS"_T.data()))
|
|
{
|
|
components::sub_title("DEBUG_SCRIPTS_SUB_TITLE"_T);
|
|
|
|
for (const auto& script : g_script_mgr.scripts())
|
|
{
|
|
if (script->is_toggleable())
|
|
{
|
|
if (ImGui::Checkbox(script->name(), script->toggle_ptr()))
|
|
{
|
|
g_notification_service->push(std::string(script->name()).append(" script"), script->is_enabled() ? "Resumed" : "Halted");
|
|
}
|
|
}
|
|
}
|
|
ImGui::EndTabItem();
|
|
}
|
|
}
|
|
} |