@@ -19,29 +19,14 @@ class PalSchema : public RC::CppUserModBase
1919 PalSchema () : CppUserModBase()
2020 {
2121 ModName = STR (" PalSchema" );
22- ModVersion = STR (" 0.3.0 " );
22+ ModVersion = STR (" 0.3.1 " );
2323 ModDescription = STR (" Allows modifying of Palworld's DataTables and DataAssets dynamically." );
2424 ModAuthors = STR (" Okaetsu" );
2525
2626 PS::PSConfig::Load ();
2727 Palworld::SignatureManager::Initialize ();
2828 MainLoader.PreInitialize ();
2929
30- register_tab (STR (" Pal Schema" ), [](CppUserModBase* instance) {
31- auto mod = dynamic_cast <PalSchema*>(instance);
32- if (!mod)
33- {
34- return ;
35- }
36-
37- if (ImGui::Button (" Reload Schema Mods" ))
38- {
39- UECustom::AsyncTask (UECustom::ENamedThreads::GameThread, [mod]() {
40- mod->reload_mods ();
41- });
42- }
43- });
44-
4530 PS::Log<RC::LogLevel::Verbose>(STR (" {} v{} by {} loaded.\n " ), ModName, ModVersion, ModAuthors);
4631 }
4732
@@ -56,7 +41,25 @@ class PalSchema : public RC::CppUserModBase
5641
5742 auto on_ui_init () -> void override
5843 {
59- UE4SS_ENABLE_IMGUI ()
44+ if (UE4SSProgram::settings_manager.Debug .DebugConsoleVisible )
45+ {
46+ UE4SS_ENABLE_IMGUI ()
47+
48+ register_tab (STR (" Pal Schema" ), [](CppUserModBase* instance) {
49+ auto mod = dynamic_cast <PalSchema*>(instance);
50+ if (!mod)
51+ {
52+ return ;
53+ }
54+
55+ if (ImGui::Button (" Reload Schema Mods" ))
56+ {
57+ UECustom::AsyncTask (UECustom::ENamedThreads::GameThread, [mod]() {
58+ mod->reload_mods ();
59+ });
60+ }
61+ });
62+ }
6063 }
6164
6265 auto on_update () -> void override
0 commit comments