mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
Stickers: cleanup
This commit is contained in:
parent
f178994dfe
commit
5a6dc316c8
4 changed files with 13 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue