diff --git a/README.md b/README.md index 7b22d47..9dc3f08 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Simple apartment and house plugin for roleplay servers. * **battletom1233** for sponsoring the addition of the UI to the plugin ## Workshop (optional) -[Sell Door UI](https://steamcommunity.com/sharedfiles/filedetails/?id=3239860033) - `3239860033` +[Sell Door UI](https://steamcommunity.com/sharedfiles/filedetails/?id=3239968404) - `3239968404` ## Commands * **/selldoor ** – Puts the door on sale diff --git a/SellDoor/SellDoor.csproj b/SellDoor/SellDoor.csproj index d3d22a7..1ffaef1 100644 --- a/SellDoor/SellDoor.csproj +++ b/SellDoor/SellDoor.csproj @@ -4,7 +4,7 @@ net48 latest RestoreMonarchy.SellDoor - 3.0.0 + 3.0.1 diff --git a/SellDoor/Services/UIService.cs b/SellDoor/Services/UIService.cs index e9ee306..6576d28 100644 --- a/SellDoor/Services/UIService.cs +++ b/SellDoor/Services/UIService.cs @@ -35,7 +35,9 @@ private void OnPlayerUpdateGesture(UnturnedPlayer unturnedPlayer, UnturnedPlayer { Player player = unturnedPlayer.Player; - if (gesture != UnturnedPlayerEvents.PlayerGesture.PunchRight) + if (gesture != UnturnedPlayerEvents.PlayerGesture.PunchRight + && gesture != UnturnedPlayerEvents.PlayerGesture.PunchLeft + && gesture != UnturnedPlayerEvents.PlayerGesture.Point) { return; } @@ -96,6 +98,7 @@ private void OnPlayerUpdateGesture(UnturnedPlayer unturnedPlayer, UnturnedPlayer EffectManager.sendUIEffectVisibility(EffectKey, player.TransportConnection(), true, "SellDoorUI", true); player.enablePluginWidgetFlag(EPluginWidgetFlags.Modal); + player.disablePluginWidgetFlag(EPluginWidgetFlags.ShowCenterDot); } private void OnEffectButtonClicked(Player player, string buttonName) @@ -140,6 +143,7 @@ private void HandleSellButtonClick(Player player) EffectManager.askEffectClearByID(EffectId, player.TransportConnection()); player.disablePluginWidgetFlag(EPluginWidgetFlags.Modal); + player.enablePluginWidgetFlag(EPluginWidgetFlags.ShowCenterDot); } private void HandleBuyButtonClick(Player player) @@ -150,6 +154,7 @@ private void HandleBuyButtonClick(Player player) { EffectManager.askEffectClearByID(EffectId, player.TransportConnection()); player.disablePluginWidgetFlag(EPluginWidgetFlags.Modal); + player.enablePluginWidgetFlag(EPluginWidgetFlags.ShowCenterDot); } } @@ -157,6 +162,7 @@ private void HandleCloseButtonClick(Player player) { EffectManager.askEffectClearByID(EffectId, player.TransportConnection()); player.disablePluginWidgetFlag(EPluginWidgetFlags.Modal); + player.enablePluginWidgetFlag(EPluginWidgetFlags.ShowCenterDot); } } } diff --git a/mod/SellDoorUI/SellDoorUI.unity3d b/mod/SellDoorUI/SellDoorUI.unity3d index 03de9ff..c0d98e2 100644 Binary files a/mod/SellDoorUI/SellDoorUI.unity3d and b/mod/SellDoorUI/SellDoorUI.unity3d differ diff --git a/selldoorui.unitypackage b/selldoorui.unitypackage index 0e1d253..62217eb 100644 Binary files a/selldoorui.unitypackage and b/selldoorui.unitypackage differ