Checkboxes in a Grid in Developer Help
|
|
I was wondering if it would be possible to display checkboxes in a grid. Say for example, I want to display all my inventory in a grid, with a checkbox assigned to each of them. Then have a button that will delete all of the checked items from my inventory.
|
A better option is to just have a "selection" object, like so:
So, the 'selection.dmi' would just have either a border or a background that would toggle between, say, black ("unselected") and green ("selected"). You would call start_selection() on some list (like start_selection(contents)) and then end_selection() when the player is finished, which will give you a list of the objs they selected.