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

View file

@ -78,7 +78,7 @@ public static partial class ModNetwork
LoggerOutbound("ClearAllStickers"); 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()) if (!IsConnectedToGameNetwork())
return; return;

View file

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

View file

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