Open
Description
Originally suggested here. Pulled out into it's own issue for clarity because it is hard to handle large issues nested inside a multi issue chain.
Let's say I was in the (not uncommon) situation of wanting to display multiple pieces of information to the user at one time. To keep it simple, let's say I wanted to display name, hp, xp, level, and mana. To do this the traditional way, this would require 5
UITextBox
es, 10 if I wanted to display what the value stood for next to it. Enter the (tentatively named)UITable
. With only oneui_element
it should be possible to keep track of all those pieces of information.
# Note that this is only an example implementation to show desired features
character_sheet = UITable(relative_rect=Rect(x, y, w, h), manager=manager)
character_sheet.title = 'Character Sheet'
character_sheet.add_column(header=None, rows=['name', 'hp', 'xp', 'level', 'mana'])
character_sheet.add_colum(header=None, rows=['Bob', 10, 0, 1, 10])