forked from akanyan/mu3-mods
feat: add LockSelectionTime
This commit is contained in:
16
LockSelectionTime/MU3/patch_SystemUI.cs
Normal file
16
LockSelectionTime/MU3/patch_SystemUI.cs
Normal file
@ -0,0 +1,16 @@
|
||||
#pragma warning disable CS0626
|
||||
|
||||
namespace MU3;
|
||||
|
||||
public class patch_SystemUI: SystemUI {
|
||||
public class patch_Timer: SystemUI.Timer {
|
||||
public patch_Timer(UITimer timer): base(timer) { /* nop */ }
|
||||
public new void execute() { /* nop */ }
|
||||
public extern bool orig_get_show();
|
||||
public extern void orig_set_show(bool value);
|
||||
public new bool show {
|
||||
get { return orig_get_show(); }
|
||||
set { orig_set_show(false); }
|
||||
}
|
||||
}
|
||||
}
|
15
LockSelectionTime/MU3/patch_UITimer.cs
Normal file
15
LockSelectionTime/MU3/patch_UITimer.cs
Normal file
@ -0,0 +1,15 @@
|
||||
#pragma warning disable CS0626
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
namespace MU3;
|
||||
|
||||
public class patch_UITimer: UITimer {
|
||||
public new void update() { /* nop */ }
|
||||
public new void update(float externalCounter) { /* nop */ }
|
||||
public extern void orig_initialize(float counter);
|
||||
public new void initialize(float counter) {
|
||||
orig_initialize(counter);
|
||||
transform.localScale = new Vector3(0, 0, 0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user