2025-05-02 12:53:32 +03:00

1.8 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): Druid component to manage the size and positions with other containers relations to create a adaptable layouts.

  • text_name (druid.text): Basic Druid text component. Text components by default have the text size adjusting.

  • button (druid.button): Basic Druid input component. Handle input on node and provide different callbacks on touch events.

  • text_button (druid.text): Basic Druid text component. Text components by default have the text size adjusting.

  • druid (druid.instance): The Druid Factory used to create components

  • selected (node)