mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
Update properties for panel
This commit is contained in:
parent
2133492efe
commit
fe955b6e64
@ -50,6 +50,14 @@ function M:set_text_button(text)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
---@param enabled boolean
|
||||||
|
---@return druid.widget.property_button
|
||||||
|
function M:set_enabled(enabled)
|
||||||
|
self.button:set_enabled(enabled)
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
function M:set_color(color_value)
|
function M:set_color(color_value)
|
||||||
color.set_color(self:get_node("button"), color_value)
|
color.set_color(self:get_node("button"), color_value)
|
||||||
end
|
end
|
||||||
|
@ -73,4 +73,11 @@ function M:on_change(callback)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
---Set the enabled state of the checkbox
|
||||||
|
---@param enabled boolean
|
||||||
|
function M:set_enabled(enabled)
|
||||||
|
self.button:set_enabled(enabled)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
@ -329,6 +329,12 @@ function M:remove(widget)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
---Force to refresh properties next update
|
||||||
|
function M:set_dirty()
|
||||||
|
self.is_dirty = true
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
function M:set_hidden(is_hidden)
|
function M:set_hidden(is_hidden)
|
||||||
self._is_hidden = is_hidden
|
self._is_hidden = is_hidden
|
||||||
local hidden_size = gui.get_size(self:get_node("header"))
|
local hidden_size = gui.get_size(self:get_node("header"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user