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();
|
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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue