collinsmith / riiablo

Diablo II remade using Java and LibGDX
http://riiablo.com
Apache License 2.0
895 stars 101 forks source link

Implement support for ItemLabeler #90

Open collinsmith opened 4 years ago

collinsmith commented 4 years ago

Item detail descriptions were originally attached to each item as a Table field lazily created when the details are first requested. This functionality was abstracted out to ItemLabeler which clears a passed Table and reconfigures it as the details for the specified item. I would like GameScreen#setDetails to make use of this functionality and call ItemLabeler#updateDetails with GameScreen#details when an item is hovered.