Skip to content

Add base nodes and terrain objects to info display#245

Merged
Rampastring merged 7 commits into
CnCNet:masterfrom
JoyfulShush:add-base-nodes-to-tooltips-view
Jul 17, 2025
Merged

Add base nodes and terrain objects to info display#245
Rampastring merged 7 commits into
CnCNet:masterfrom
JoyfulShush:add-base-nodes-to-tooltips-view

Conversation

@JoyfulShush
Copy link
Copy Markdown
Contributor

Adds the ability to show base nodes and terrain objects in the info display when hovering over a cell.

Base nodes:
image

Terrain Objects:
image

Comment thread src/TSMapEditor/Models/MapTile.cs Outdated
Moved base node lookup logic from MapTile to Map for improved encapsulation and efficiency. Updated TileInfoDisplay to use the new Map.GetBaseNode method and improved base node information formatting in the UI.
Changed Map.GetBaseNode to GetBaseNodes to return a list of base nodes for a given cell coordinate. Updated TileInfoDisplay to handle and display information for multiple base nodes on a tile.
Copy link
Copy Markdown
Member

@Rampastring Rampastring left a comment

Choose a reason for hiding this comment

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

Looks good aside from it adding some whitespace to MapTile.cs.

Comment thread src/TSMapEditor/Models/MapTile.cs Outdated
Comment thread src/TSMapEditor/UI/TileInfoDisplay.cs Outdated
@Rampastring Rampastring merged commit 967072d into CnCNet:master Jul 17, 2025
1 check passed
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