mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
button events and stuff properly work
This commit is contained in:
1 parent
eac41a7c9e
commit
8884996c06
5 files changed
+52
-5
No files matched your search
@@ -29,7 +29,7 @@ public partial class ExamplePlugin : BasePlugin, IMiraPlugin
|
||||
{
|
||||
Logger<ExamplePlugin>.Warning("Freeze button clicked!");
|
||||
e.Cancel();
|
||||
e.Button.SetTimer(5f);
|
||||
e.Button.SetTimer(15f);
|
||||
});
|
||||
|
||||
MiraEventManager.RegisterEventHandler<MiraButtonCancelledEvent<FreezeButton>>(e=>
|
||||
|
||||
Reference in new issue
Block a user