Skip to content

Commit

Permalink
Show type IDs of building types in building type selection window
Browse files Browse the repository at this point in the history
  • Loading branch information
Rampastring committed Jul 24, 2024
1 parent bf7e7d3 commit 75d42d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[SelectBuildingTypeWindow]
$Width=250
$Width=350
$Height=RESOLUTION_HEIGHT - 100
$CC0=lblDescription:XNALabel
$CC1=tbSearch:EditorSuggestionTextBox
Expand Down
2 changes: 1 addition & 1 deletion src/TSMapEditor/UI/Windows/SelectBuildingTypeWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected override void ListObjects()

foreach (BuildingType buildingType in map.Rules.BuildingTypes)
{
lbObjectList.AddItem(new XNAListBoxItem() { Text = $"{buildingType.Index} {buildingType.GetEditorDisplayName()}", Tag = buildingType });
lbObjectList.AddItem(new XNAListBoxItem() { Text = $"{buildingType.Index} {buildingType.GetEditorDisplayName()} ({buildingType.ININame})", Tag = buildingType });
if (buildingType == SelectedObject)
lbObjectList.SelectedIndex = lbObjectList.Items.Count - 1;
}
Expand Down

0 comments on commit 75d42d3

Please sign in to comment.