Skip to content

Commit 8950ac5

Browse files
committed
using isVisibleInTree/Parent instead IsHidden
1 parent 4756d07 commit 8950ac5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Intersect.Client.Core/Interface/Game/GameInterface.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public void Update(TimeSpan elapsed, TimeSpan total)
390390
GameMenu.OpenInventory();
391391
}
392392

393-
if (mShopWindow != null && (mShopWindow.IsHidden || mShouldCloseShop))
393+
if (mShopWindow != null && (mShopWindow.IsVisibleInTree || mShouldCloseShop))
394394
{
395395
CloseShop();
396396
}
@@ -583,7 +583,7 @@ public bool CloseAllWindows()
583583
closedWindows = true;
584584
}
585585

586-
if (mShopWindow != null && !mShopWindow.IsHidden)
586+
if (mShopWindow is { IsVisibleInTree: false })
587587
{
588588
CloseShop();
589589
closedWindows = true;

Intersect.Client.Core/Interface/Game/Shop/ShopItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public ShopItem(ShopWindow shopWindow, Base parent, int index) : base(parent, na
5151
// TODO: Refactor so shop only has 1 context menu shared between all items
5252
_contextMenu = new ContextMenu(Interface.CurrentInterface.Root, "ShopContextMenu")
5353
{
54-
IsHidden = true,
54+
IsVisibleInParent = false,
5555
IconMarginDisabled = true,
5656
ItemFont = GameContentManager.Current.GetFont(name: "sourcesansproblack"),
5757
ItemFontSize = 10,

0 commit comments

Comments
 (0)