Stickers: cleanup

This commit is contained in:
NotAKidoS 2024-08-25 14:44:57 -05:00
parent f178994dfe
commit 5a6dc316c8
4 changed files with 13 additions and 13 deletions

View file

@ -19,7 +19,7 @@ public static partial class BTKUIAddon
Setup_PlayerOptionsPage();
}
#region Initialization
#region Setup
private static void Setup_Icons()
{
@ -68,7 +68,7 @@ public static partial class BTKUIAddon
Setup_DebugOptionsCategory();
}
#endregion
#endregion Setup
#region Double-Click Place Sticker

View file

@ -78,7 +78,7 @@ public static partial class ModNetwork
LoggerOutbound("ClearAllStickers");
}
public static void SendStartTexture(int stickerSlot, Guid textureHash, int chunkCount, int width, int height)
private static void SendStartTexture(int stickerSlot, Guid textureHash, int chunkCount, int width, int height)
{
if (!IsConnectedToGameNetwork())
return;

View file

@ -31,7 +31,7 @@ public partial class StickerSystem
#endregion Singleton
#region Data
private int _selectedStickerSlot;
public int SelectedStickerSlot
{

View file

@ -84,15 +84,15 @@ public partial class StickerSystem
public void OnStickerClearAllReceived(string playerId)
=> ClearStickersForPlayer(playerId);
public void OnStickerIdentifyReceived(string playerId)
{
if (!_playerStickers.TryGetValue(playerId, out StickerData stickerData))
return;
// todo: make prettier (idk shaders)
SchedulerSystem.AddJob(() => stickerData.Identify(), 0f, 0.1f, 30);
SchedulerSystem.AddJob(() => stickerData.ResetIdentify(), 4f, 1f, 1);
}
// public void OnStickerIdentifyReceived(string playerId)
// {
// if (!_playerStickers.TryGetValue(playerId, out StickerData stickerData))
// return;
//
// // todo: make prettier (idk shaders)
// SchedulerSystem.AddJob(() => stickerData.Identify(), 0f, 0.1f, 30);
// SchedulerSystem.AddJob(() => stickerData.ResetIdentify(), 4f, 1f, 1);
// }
#endregion Player Callbacks
}