Рефактор.

This commit is contained in:
sasha80
2024-05-14 11:54:49 +03:00
parent 58201b303a
commit fbbd4db3e2
2 changed files with 1 additions and 1 deletions

18
scenes/frame/frame.gd Normal file
View File

@@ -0,0 +1,18 @@
@tool
extends NinePatchRect
@export var horizontal_alignment: HorizontalAlignment = HorizontalAlignment.HORIZONTAL_ALIGNMENT_CENTER:
get: return $header.horizontal_alignment if is_inside_tree() else HorizontalAlignment.HORIZONTAL_ALIGNMENT_CENTER
set(val): if is_inside_tree(): $header.horizontal_alignment = val
@export var vertical_alignment: VerticalAlignment = VerticalAlignment.VERTICAL_ALIGNMENT_CENTER:
get: return $header.vertical_alignment if is_inside_tree() else VerticalAlignment.VERTICAL_ALIGNMENT_CENTER
set(val): if is_inside_tree(): $header.vertical_alignment = val
@export var text: String = 'caption text':
get: return $header.text if is_inside_tree() else ''
set(val): if is_inside_tree(): $header.text = val