add listbox.item_count to gui2 lua api
TODO: maybe we should consider allowing the '#' (size) operator aswell
This commit is contained in:
parent
301c9aea96
commit
9b4378d002
1 changed files with 5 additions and 0 deletions
|
@ -305,6 +305,11 @@ WIDGET_GETTER("item_count", int, gui2::multi_page)
|
|||
return w.get_page_count();
|
||||
}
|
||||
|
||||
WIDGET_GETTER("item_count", int, gui2::listbox)
|
||||
{
|
||||
return w.get_item_count();
|
||||
}
|
||||
|
||||
WIDGET_SETTER("use_markup", bool, gui2::styled_widget)
|
||||
{
|
||||
w.set_use_markup(value);
|
||||
|
|
Loading…
Add table
Reference in a new issue