Skip to content

Commit

Permalink
Fixed hovering tooltip not being removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirtle committed Jul 7, 2020
1 parent e8ca564 commit 620a215
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UI/BasePanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class BasePanel : UIState
{
public static UIImageButton buildingModeButton;
public static bool isBuildingModeButtonVisible;
static UIText hoverText;
public static UIText hoverText;
static string text;
public override void OnInitialize()
{
Expand Down
2 changes: 2 additions & 0 deletions Utilities/MiscUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,13 @@ public static bool ToolHasRange(int range)

public static bool UIPanelLogic(UIPanel UIPanel, ref bool UIOpen, ref bool UIVisible)
{
BasePanel.hoverText?.Remove();
if (UIPanel != null && Main.playerInventory)
{
UIPanel.Remove();
UIOpen = false;
UIVisible = false;

return false;
}

Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
displayName = Builder Essentials
author = Kirtle
version = 0.1.14.1
version = 0.1.14.3
buildIgnore = *.csproj, *.user, obj\*, bin\*, .vs\*
homepage = https://discord.gg/wQYMbQq

0 comments on commit 620a215

Please sign in to comment.