mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
final touches and fixes
This commit is contained in:
1 parent
016d21075f
commit
76c39d9bdc
40 files changed
+241
-216
No files matched your search
@@ -7,25 +7,22 @@ using UnityEngine;
|
||||
|
||||
namespace MiraAPI.Example;
|
||||
[RegisterInIl2Cpp]
|
||||
public class MiraDebugWindow : MonoBehaviour
|
||||
public class MiraDebugWindow(IntPtr ptr) : MonoBehaviour(ptr)
|
||||
{
|
||||
public DragWindow DebuggingWindow;
|
||||
public MiraDebugWindow(IntPtr ptr) : base(ptr)
|
||||
public readonly DragWindow DebuggingWindow = new(new Rect(10, 10, 0, 0), "MIRA API DEBUGGING", () =>
|
||||
{
|
||||
DebuggingWindow = new DragWindow(new Rect(10, 10, 0, 0), "MIRA API DEBUGGING", () =>
|
||||
if (GUILayout.Button("Test modifier"))
|
||||
{
|
||||
if (GUILayout.Button("Test modifier"))
|
||||
{
|
||||
PlayerControl.LocalPlayer.AddModifier<ModifierTimerExample>();
|
||||
}
|
||||
if (GUILayout.Button("Remove modifier"))
|
||||
{
|
||||
PlayerControl.LocalPlayer.RemoveModifier<ModifierTimerExample>();
|
||||
}
|
||||
});
|
||||
|
||||
DebuggingWindow.Enabled = true;
|
||||
}
|
||||
PlayerControl.LocalPlayer.AddModifier<ModifierTimerExample>();
|
||||
}
|
||||
if (GUILayout.Button("Remove modifier"))
|
||||
{
|
||||
PlayerControl.LocalPlayer.RemoveModifier<ModifierTimerExample>();
|
||||
}
|
||||
})
|
||||
{
|
||||
Enabled = true
|
||||
};
|
||||
|
||||
public void OnGUI()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user