Defold GUI system
FIX: Fixed issue when measuring text containing trailing spaces CHANGE: Improved performance when calculating visible characters in a text field
Thanks @Wistpotion for the contributions!
NEW: Added horizontal scrollbar support. Thank you @unindented !
NEW: Dynamic lists now detect if the stencil node has changed in size and will adjust number of visible nodes accordingly.
NEW: Added selected_now
and deselected_now
to the input component.
NEW: Added node_id
to the returned state table for all components. Thanks @klaytonkowalski !
BREAKING CHANGE: Lists now return the selected item structure instead of the item index. This simplifies things a lot when working with dynamic lists as there's not a 1:1 mapping between list item nodes and list items.
FIX: Lists did not have an over
state to indicate if mouse is over the list or not
FIX: Do not crash when no callback function is provided
FIX: Scrollbar refresh function didn't pass the scrollbar instance as an argument
FIX: Also limit input.text_width and input.total_width now that we do not allow input text to grow outside of text node bounds