modifiers UI

This commit is contained in:
ang-xd committed 2024-08-26 21:28:34 -04:00
1 parent a88646465b
commit dfa5591188
8 files changed
+118 -8

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
using MiraAPI.Modifiers.Types;
namespace MiraAPI.Example;
[RegisterModifier]
public class ModifierTimerExample : TimedModifier
{
public override string ModifierName => "Color Changer";
public override bool HideOnUi => true;
public override float Duration => 10f;
public override bool AutoStart => true;
private System.Random _rand = new();
public override void OnTimerComplete()
{
Player.SetColor((byte)_rand.Next(0, Palette.PlayerColors.Count));
StartTimer();
}
}