From 805453d90c8b281866210b4876b705758387adfc Mon Sep 17 00:00:00 2001 From: Beu Date: Wed, 27 Sep 2023 01:42:16 +0200 Subject: [PATCH] update for the new class name --- CountdownMover/info.toml | 4 ++-- CountdownMover/main.as | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CountdownMover/info.toml b/CountdownMover/info.toml index eb31c2d..42083a3 100644 --- a/CountdownMover/info.toml +++ b/CountdownMover/info.toml @@ -2,8 +2,8 @@ name = "Countdown Mover" author = "Beu" category = "Overlay" -version = "1.1" +version = "1.2" siteid = 431 [script] -dependencies = ["MLHook"] \ No newline at end of file +dependencies = ["MLHook"] diff --git a/CountdownMover/main.as b/CountdownMover/main.as index ac2f1a5..8ad2217 100644 --- a/CountdownMover/main.as +++ b/CountdownMover/main.as @@ -1,7 +1,7 @@ [Setting name="Countdown Position"] vec2 Setting_CountdownOffset = vec2(155. , 4.); -const string C_Class_UIModules = 'component-modelibs-uimodules-module'; +const string C_Class_UIModules = 'component-cmgame-uimodules-module'; const string C_Id_Countdown = 'Race_Countdown'; const string C_MLID_UIModuleUpdate = 'MLHook_CustomizableModule'; @@ -53,6 +53,7 @@ CGameManialinkControl@ GetControl(CGameManiaAppPlayground@ _ManiaApp) { } } } + print("Layer not found"); return null; } @@ -63,7 +64,7 @@ void OnSettingsChanged() { void Main() { @HookEvents = HookCustomizableModuleEvents(); - MLHook::RegisterMLHook(HookEvents, C_MLID_UIModuleUpdate + "_Update", true); + MLHook::RegisterMLHook(HookEvents, C_MLID_UIModuleUpdate + "_Update", false); MLHook::InjectManialinkToPlayground(C_MLID_UIModuleUpdate, C_ML_UIModuleUpdate, true); while(true) { @@ -101,4 +102,4 @@ void OnDisabled() { _Unload(); } void _Unload() { trace('_Unload, unloading all hooks and removing all injected ML'); MLHook::UnregisterMLHooksAndRemoveInjectedML(); -} \ No newline at end of file +}