Stickers: added lazy placement preview

This commit is contained in:
NotAKidoS 2024-09-06 00:57:39 -05:00
parent d409bf1743
commit 9433779641
6 changed files with 157 additions and 19 deletions

View file

@ -83,11 +83,18 @@ public partial class StickerSystem
set
{
_isInStickerMode = value;
if (_isInStickerMode) CohtmlHud.Instance.SelectPropToSpawn(
if (_isInStickerMode)
{
CohtmlHud.Instance.SelectPropToSpawn(
StickerCache.GetCohtmlResourcesPath(SelectedStickerName),
Path.GetFileNameWithoutExtension(SelectedStickerName),
"Sticker selected for stickering:");
else CohtmlHud.Instance.ClearPropToSpawn();
}
else
{
CohtmlHud.Instance.ClearPropToSpawn();
ClearStickerPreview();
}
}
}