From 6f3796627f7e93e8ed53660928546cee0b1cd7ad Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Wed, 20 Mar 2024 15:49:53 +0200 Subject: [PATCH] Add a flat property to CollapsibleContainer --- src/UI/Nodes/CollapsibleContainer.gd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/UI/Nodes/CollapsibleContainer.gd b/src/UI/Nodes/CollapsibleContainer.gd index 02a3edff3..b1d8dabdd 100644 --- a/src/UI/Nodes/CollapsibleContainer.gd +++ b/src/UI/Nodes/CollapsibleContainer.gd @@ -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)