Skip to content

Commit

Permalink
Add a flat property to CollapsibleContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
OverloadedOrama committed Mar 20, 2024
1 parent f1ef01b commit 6f37966
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/UI/Nodes/CollapsibleContainer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit 6f37966

Please sign in to comment.