Skip to content

Commit 6c1d3f8

Browse files
refactor spells window/item (#2659)
* refactor spells window/item * rename description window * small tweaks
1 parent 4aa542a commit 6c1d3f8

File tree

4 files changed

+261
-301
lines changed

4 files changed

+261
-301
lines changed

Intersect.Client.Core/Interface/Game/Bag/BagItem.cs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
using Intersect.Client.Interface.Game.Inventory;
1212
using Intersect.Client.Localization;
1313
using Intersect.Client.Networking;
14-
using Intersect.Collections.Slotting;
1514
using Intersect.Configuration;
1615
using Intersect.Framework.Core;
1716
using Intersect.Framework.Core.GameObjects.Items;

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public void ToggleSimplifiedEscapeMenu()
391391

392392
public void ToggleSpellsWindow()
393393
{
394-
if (_spellsWindow.IsVisible())
394+
if (_spellsWindow.IsVisibleInTree)
395395
{
396396
_spellsWindow.Hide();
397397
}
@@ -425,7 +425,7 @@ public bool HasWindowsOpen()
425425
_friendsWindow.IsVisible ||
426426
_inventoryWindow.IsVisibleInTree ||
427427
_questsWindow.IsVisible() ||
428-
_spellsWindow.IsVisible() ||
428+
_spellsWindow.IsVisibleInTree ||
429429
_partyWindow.IsVisible() ||
430430
_guildWindow.IsVisibleInTree;
431431
return windowsOpen;

0 commit comments

Comments
 (0)