mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 02:17:52 +02:00
1.9 KiB
1.9 KiB
druid.widget.property_button API
at /druid/widget/properties_panel/properties/property_button.lua
Functions
Fields
init
property_button:init()
on_click
property_button:on_click()
set_text_property
property_button:set_text_property(text)
-
Parameters:
text
(string):
-
Returns:
- `` (druid.widget.property_button):
set_text_button
property_button:set_text_button(text)
-
Parameters:
text
(string):
-
Returns:
- `` (druid.widget.property_button):
set_color
property_button:set_color([color_value])
- Parameters:
[color_value]
(any):
Fields
- root (node)
- container (druid.container): The component used for managing the size and positions with other containers relations to create a adaptable layouts
- text_name (druid.text): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
- button (druid.button): Druid component to make clickable node with various interaction callbacks
- text_button (druid.text): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area
- druid (druid.instance): The Druid Factory used to create components
- selected (node)