mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-14 23:06:38 +08:00
26 lines
734 B
C++
26 lines
734 B
C++
![]() |
#include "view_debug.hpp"
|
||
|
#include "gui/components/components.hpp"
|
||
|
#include "script_mgr.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();
|
||
|
}
|
||
|
}
|
||
|
}
|