diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust/ui')
-rw-r--r-- | core/src/ch/asynk/rustanddust/ui/Menu.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/ui/Menu.java b/core/src/ch/asynk/rustanddust/ui/Menu.java index 2fe93a7..78f5964 100644 --- a/core/src/ch/asynk/rustanddust/ui/Menu.java +++ b/core/src/ch/asynk/rustanddust/ui/Menu.java @@ -15,6 +15,8 @@ public class Menu extends Patch { public int last(); public int i(); + public String s(); + public MenuItem get(int i); }; protected MenuItem menuItem; @@ -24,8 +26,10 @@ public class Menu extends Patch super(ninePatch); this.menuItem = menuItem; this.labels = new Label[menuItem.last()]; - for (int i = 0; i< menuItem.last(); i ++) + for (int i = 0; i< menuItem.last(); i ++) { labels[i] = new Label(font, 10); + labels[i].write(menuItem.get(i).s()); + } } protected Label label(MenuItem m) |