Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotbar window/item inherances #2661

Merged
merged 4 commits into from
Mar 12, 2025
Merged

Conversation

WeylonSantana
Copy link
Contributor

@WeylonSantana WeylonSantana commented Mar 12, 2025

assets - AscensionGameDev/Intersect-Assets#68

1741809564_Intersect_Client.mp4

Copy link
Member

@lodicolo lodicolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if there are other instances of the ! thing, but if there were any of those in this PR that I missed they should be changed too

@@ -61,7 +61,7 @@ public SpellItem(SpellsWindow spellWindow, Base parent, int index, ContextMenu c

LoadJsonUi(GameContentManager.UI.InGame, Graphics.Renderer.GetResolutionString());

_contextMenu.ClearChildren();
_contextMenu!.ClearChildren();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ? not !

@@ -74,7 +74,7 @@ public SpellItem(SpellsWindow spellWindow, Base parent, int index, ContextMenu c
public void OpenContextMenu()
{
// Clear out the old options.
_contextMenu.ClearChildren();
_contextMenu!.ClearChildren();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ? not !

@@ -34,7 +34,7 @@ public ShopItem(ShopWindow shopWindow, Base parent, int index, ContextMenu conte
LoadJsonUi(GameContentManager.UI.InGame, Graphics.Renderer.GetResolutionString());

//TODO: Is this a memory leak?
_contextMenu.ClearChildren();
_contextMenu!.ClearChildren();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ? not !

@@ -117,7 +117,7 @@ public InventoryItem(InventoryWindow inventoryWindow, Base parent, int index, Co
public override void OpenContextMenu()
{
// Clear out the old options since we might not show all of them
_contextMenu.ClearChildren();
_contextMenu!.ClearChildren();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ? not !

@@ -97,7 +97,7 @@ public InventoryItem(InventoryWindow inventoryWindow, Base parent, int index, Co

LoadJsonUi(GameContentManager.UI.InGame, Graphics.Renderer.GetResolutionString());

_contextMenu.ClearChildren();
_contextMenu!.ClearChildren();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ? not !

@lodicolo lodicolo merged commit c44b05b into AscensionGameDev:main Mar 12, 2025
1 check passed
@lodicolo lodicolo deleted the hotbar branch March 12, 2025 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants