Good spot

This commit is contained in:
gamer147
2025-11-24 21:41:28 -05:00
parent 964fcba8bc
commit 7263b88baa

View File

@@ -126,15 +126,15 @@ public class ShopQuestion extends Question {
form.endHorizontalFlow(); form.endHorizontalFlow();
} }
// Items list (one row per item) // Items table
form.beginTable(items.size(), new String[] { "Item", "Description", "Price", "Buy" });
for (ShopItem item : items) { for (ShopItem item : items) {
form.beginHorizontalFlow();
form.addLabel(escape(item.getName())); form.addLabel(escape(item.getName()));
form.addLabel(escape(item.getDescription())); form.addLabel(escape(item.getDescription()));
form.addLabel(escape(item.getPriceDisplay())); form.addLabel(escape(item.getPriceDisplay()));
form.addButton("+1", "buy_" + item.getId()); form.addButton("+1", "buy_" + item.getId());
form.endHorizontalFlow();
} }
form.endTable();
form.beginHorizontalFlow(); form.beginHorizontalFlow();
form.addButton("Close", "close"); form.addButton("Close", "close");