mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 06:49:22 +00:00
Stickers: minor changes
This commit is contained in:
parent
c206d98a97
commit
2f65634031
16 changed files with 204 additions and 140 deletions
24
Stickers/Integrations/BTKUI/UIAddon.Category.MiscOptions.cs
Normal file
24
Stickers/Integrations/BTKUI/UIAddon.Category.MiscOptions.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using BTKUILib;
|
||||
using BTKUILib.UIObjects;
|
||||
using BTKUILib.UIObjects.Components;
|
||||
using NAK.Stickers.Utilities;
|
||||
|
||||
namespace NAK.Stickers.Integrations;
|
||||
|
||||
public static partial class BTKUIAddon
|
||||
{
|
||||
private static void Setup_OtherOptionsCategory()
|
||||
{
|
||||
Category debugCategory = _rootPage.AddMelonCategory(ModSettings.Hidden_Foldout_MiscCategory);
|
||||
debugCategory.AddMelonToggle(ModSettings.Debug_NetworkInbound);
|
||||
debugCategory.AddMelonToggle(ModSettings.Debug_NetworkOutbound);
|
||||
debugCategory.AddMelonToggle(ModSettings.Entry_FriendsOnly);
|
||||
debugCategory.AddButton("Clear Thumbnail Cache", "Stickers-rubbish-bin", "Clear the cache of all loaded stickers.", ButtonStyle.TextWithIcon)
|
||||
.OnPress += () => QuickMenuAPI.ShowConfirm("Clear Thumbnail Cache", "Are you sure you want to clear the Cohtml thumbnail cache for all stickers?",
|
||||
() =>
|
||||
{
|
||||
StickerCache.ClearCache();
|
||||
QuickMenuAPI.ShowAlertToast("Thumbnail cache cleared.", 2);
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue