mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-08-26 03:28:57 +00:00
Added category name to tile selection in map editor
This commit is contained in:
parent
6bc3b87329
commit
cfad4e4bdc
@ -281,7 +281,7 @@ public class MapEditorTabControllerImpl extends MapEditorTabController {
|
||||
Application.gameData.getTile().stream().map((t) -> {
|
||||
WritableImage img = TileUtils.getImage(t, currentPlatform);
|
||||
ImageView iv = new ImageView(img);
|
||||
MenuItem mapSelectItem = new MenuItem(t.getName(), iv);
|
||||
MenuItem mapSelectItem = new MenuItem(String.valueOf(t.getCategory())+"/"+String.valueOf(t.getName()), iv);
|
||||
mapSelectItem.setGraphic(new ImageView(TileUtils.getImage(t, currentPlatform)));
|
||||
mapSelectItem.setOnAction((ActionEvent event) -> {
|
||||
if (getCurrentEditor() != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user