1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Add a flat property to CollapsibleContainer

This commit is contained in:
Emmanouil Papadeas 2024-03-20 15:49:53 +02:00
parent f1ef01bb87
commit 6f3796627f

View file

@ -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)