Game Development Reference
In-Depth Information
}};
Element e = itemBuilder.build(nifty, screen,
screen.findElementByName("itemSlot"+index));
e.findElementByName("#itemLabel").getRenderer(TextRenderer.class).setText(item.getName());
12. Then, we put each of the inventory items in the itemMap with the ID of the con-
trol as the key. This ensures we can easily find out the link to the inventory item
where a nifty item has been dragged or dropped.
Search WWH ::




Custom Search