mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-30 23:19:49 +00:00
Add a flat property to CollapsibleContainer
This commit is contained in:
parent
f1ef01bb87
commit
6f3796627f
|
@ -11,6 +11,10 @@ extends VBoxContainer
|
|||
set(value):
|
||||
visible_content = value
|
||||
_button.button_pressed = value
|
||||
@export var flat := false:
|
||||
set(value):
|
||||
flat = value
|
||||
_button.flat = value
|
||||
|
||||
var _button := Button.new()
|
||||
var _texture_rect := TextureRect.new()
|
||||
|
@ -22,6 +26,7 @@ func _init() -> void:
|
|||
|
||||
|
||||
func _ready() -> void:
|
||||
_button.flat = flat
|
||||
_button.toggle_mode = true
|
||||
_button.mouse_default_cursor_shape = Control.CURSOR_POINTING_HAND
|
||||
_button.toggled.connect(set_visible_children)
|
||||
|
|
Loading…
Reference in a new issue