From 53a444bd78500b2d5198c204f5b3c7edd6f5e6a3 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 13 Nov 2016 01:10:08 +0100 Subject: [PATCH] display the sb changed at current object --- src/yugecin/opsudance/ui/SBOverlay.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/yugecin/opsudance/ui/SBOverlay.java b/src/yugecin/opsudance/ui/SBOverlay.java index 16a663a1..63a434ed 100644 --- a/src/yugecin/opsudance/ui/SBOverlay.java +++ b/src/yugecin/opsudance/ui/SBOverlay.java @@ -75,6 +75,13 @@ public class SBOverlay { Fonts.SMALL.drawString(10, height - 50 - lh, "Menu: N", Color.cyan); Fonts.SMALL.drawString(10, height - 50 - lh * 2, "HIDE: H", Color.cyan); Fonts.SMALL.drawString(10, height - 50 - lh * 3, "obj: J " + index + " K", Color.cyan); + if (index < optionsMap.length && optionsMap[index] != null) { + int i = 0; + for (Object o : optionsMap[index].entrySet()) { + Map.Entry option = (Map.Entry) o; + Fonts.SMALL.drawString(10, 50 + i * lh, option.getKey().getDisplayName(), Color.cyan); + } + } if (menu) { options.render(container, game, g); }