mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
Timed Modifier Enhancements in TaskAdderGame
This commit is contained in:
1 parent
8967348cd3
commit
b2fdaaf89f
3 files changed
+11
No files matched your search
@@ -355,6 +355,12 @@ internal static class TaskAdderPatches
|
||||
}
|
||||
}));
|
||||
|
||||
if (Modifier is TimedModifer timed)
|
||||
{
|
||||
taskAddButton.FileImage.sprite = MiraAssets.TimedModifierFile.LoadAsset();
|
||||
taskAddButton.Text.text += $"\n {timed.Duration}s";
|
||||
}
|
||||
|
||||
instance.AddFileAsChildCustom(taskAddButton, ref num, ref num2, ref num3);
|
||||
|
||||
ControllerManager.Instance.AddSelectableUiElement(taskAddButton.Button);
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
@@ -99,4 +99,9 @@ public static class MiraAssets
|
||||
/// Gets the sprite used for the Keybind icons.
|
||||
/// </summary>
|
||||
public static LoadableResourceAsset KeybindButton { get; } = new("MiraAPI.Resources.KeybindButton.png");
|
||||
|
||||
/// <summary>
|
||||
/// Gets the sprite used for timed modifier file in TaskAdderGame.
|
||||
/// </summary>
|
||||
public static LoadableResourceAsset TimedModifierFile { get; } = new("MiraAPI.Resources.TimedModifierFile.png");
|
||||
}
|
||||
Reference in new issue
Block a user