update for the new class name

This commit is contained in:
Beu 2023-09-27 01:42:16 +02:00
parent 1a417c8bcf
commit 805453d90c
2 changed files with 6 additions and 5 deletions

View File

@ -2,8 +2,8 @@
name = "Countdown Mover"
author = "Beu"
category = "Overlay"
version = "1.1"
version = "1.2"
siteid = 431
[script]
dependencies = ["MLHook"]
dependencies = ["MLHook"]

View File

@ -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();
}
}