diff options
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MStringSelectionButton.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MStringSelectionButton.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MStringSelectionButton.java index 94f79f7d..088a1bd9 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MStringSelectionButton.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MStringSelectionButton.java @@ -51,6 +51,10 @@ public class MStringSelectionButton extends MPanel { }); } + public String selectionToDisplay(String selection) { + return selection; + } + public String getSelected() { if (possible.size() == 0) return null; return possible.get(selectedIndex); @@ -58,7 +62,7 @@ public class MStringSelectionButton extends MPanel { private void updateSelected() { if (possible.size() == 0) selected.setText("-Empty-"); - else selected.setText(possible.get(selectedIndex)); + else selected.setText(selectionToDisplay(possible.get(selectedIndex))); } @Override |