20 Commits

Author SHA1 Message Date
Beha
67e7e195d9 Add inventory:setList(list) and inventory:getList() to set the inventory list name. (#56)
* Add inventory:setList(list) and inventory:getList() to inventory element.
This allows multiple inventory elements with the same list name but different inventory locations.
Example: the "main" list in a chest and the player's "main" list.
2019-08-05 15:10:08 +02:00
Beha
d5e71d9821 Add show_inv parameter to smartfs.add_to_inventory (#51) 2018-11-29 19:31:14 +01:00
bell07
a115299266 Update API.md
Format header lines
2018-01-26 16:11:35 +00:00
Alexander Weber
c1f484abc5 generalize tooltip support. Not for buttons only 2017-11-01 15:09:59 +00:00
bell07
e829336b84 Add enter press support to text boxes 2017-11-01 12:58:27 +00:00
bell07
080ad817c6 Add locations interface, and support for the default engine inventory
* Move smartfs.inventory_mod() above, fix globals check by minetest.global_exists()
* Introduce proper state location interface
* Update documentation related to locations
2017-10-30 15:58:38 +00:00
Alexander Weber
067b1b44f9 Add missed listbox documentation 2017-10-30 15:53:04 +00:00
Alexander Weber
62c48c02dc Add state:dropdown() 2017-10-30 15:53:00 +00:00
Alexander Weber
d765bf2d58 Add state:item_image() 2017-10-30 15:52:56 +00:00
Alexander Weber
919a7e5719 Add state:vertlabel() 2017-10-30 15:52:49 +00:00
bell07
8eacb811a7 Optimize the textlist box
- self.data.items is initialized once in onCreate
- There is no label implemented
- addItem returns index for later direct access to the item by getItem()
2017-08-13 12:48:29 +01:00
bell07
3de2eacda5 Add views and containers
* Views and Containers support

* completed the checkbox-fix

* Add getContainerState() to the documentation

* changed implementation for fields processing
Removed again _sfs_process_value_ and _sfs_process_action_
use element:submit() and element:setValue() instead utilizating new state:_get_element_recursive_()
Additional bugfix: container location was missed

* runtime optimization. Do _get_element_recursive_ once for setValue and submit
2017-08-12 00:01:35 +01:00
bell07
9acbd42aeb Add ability to hide elements using get/setVisible 2017-03-04 20:27:15 +00:00
bell07
4210c3e61b Extend button element to support image buttons and tool tips 2017-03-04 20:24:02 +00:00
bell07
f353a01405 Add getBackground/setBackground support for each element 2017-02-14 21:12:32 +00:00
bell07
6e450e9cb8 API.md: Remove duplicated element documentation 2017-02-03 22:04:08 +00:00
Alexander Weber
c4e1cd702d Remove placer from form:attach_to_node()
It's not used anywhere
2017-02-03 17:41:16 +00:00
bell07
b3dc08ad21 Define set/get for size and position in generic element table
Reduces code redundancy
2017-01-02 22:55:56 +00:00
bell07
861aa9f174 Rearrange code to match documentation, and add comments 2017-01-02 21:14:24 +00:00
rubenwardy
95837b542a Move API.md and example.* to docs/ subfolder 2016-11-13 16:33:10 +00:00