Stickers: Added back Identify button

This commit is contained in:
NotAKidoS 2024-09-02 00:36:49 -05:00
parent 2f65634031
commit 192ba3cceb
4 changed files with 39 additions and 43 deletions

View file

@ -15,8 +15,8 @@ public static partial class BTKUIAddon
{
Category category = QuickMenuAPI.PlayerSelectPage.AddCategory(ModSettings.SM_SettingsCategory, ModSettings.ModName);
//Button identifyButton = category.AddButton("Identify Stickers", "Stickers-magnifying-glass", "Identify this players stickers by making them flash.");
//identifyButton.OnPress += OnPressIdentifyPlayerStickersButton;
Button identifyButton = category.AddButton("Identify Stickers", "Stickers-magnifying-glass", "Identify this players stickers by making them flash.");
identifyButton.OnPress += OnPressIdentifyPlayerStickersButton;
Button clearStickersButton = category.AddButton("Clear Stickers", "Stickers-eraser", "Clear this players stickers.");
clearStickersButton.OnPress += OnPressClearSelectedPlayerStickersButton;
@ -30,11 +30,11 @@ public static partial class BTKUIAddon
#region Callbacks
// private static void OnPressIdentifyPlayerStickersButton()
// {
// if (string.IsNullOrEmpty(QuickMenuAPI.SelectedPlayerID)) return;
// StickerSystem.Instance.OnStickerIdentifyReceived(QuickMenuAPI.SelectedPlayerID);
// }
private static void OnPressIdentifyPlayerStickersButton()
{
if (string.IsNullOrEmpty(QuickMenuAPI.SelectedPlayerID)) return;
StickerSystem.Instance.OnStickerIdentifyReceived(QuickMenuAPI.SelectedPlayerID);
}
private static void OnPressClearSelectedPlayerStickersButton()
{