From f0c6e97742b8eeae13139f0c4982949493c49539 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sun, 5 Apr 2026 10:54:11 +0200 Subject: [PATCH] fix(ui): correct Godot 4.6 size flag constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SIZE_FLAGS_FILL → SIZE_FILL, SIZE_FLAGS_SHRINK_END → SIZE_SHRINK_END. The _FLAGS_ prefix was removed in Godot 4.6. Co-Authored-By: Claude Opus 4.6 (1M context) --- client/ui/implant/implant_data_row.gd | 2 +- client/ui/implant/implant_header.gd | 2 +- client/ui/implant/implant_panel.gd | 2 +- client/ui/implant/implant_text_block.gd | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/ui/implant/implant_data_row.gd b/client/ui/implant/implant_data_row.gd index 120a02ab3..ebe6add28 100644 --- a/client/ui/implant/implant_data_row.gd +++ b/client/ui/implant/implant_data_row.gd @@ -11,7 +11,7 @@ func _init(text: String = "", color: Color = Color.TRANSPARENT) -> void: _color_override = color mouse_filter = Control.MOUSE_FILTER_IGNORE autowrap_mode = TextServer.AUTOWRAP_WORD_SMART - size_flags_horizontal = Control.SIZE_FLAGS_FILL + size_flags_horizontal = Control.SIZE_FILL func set_content(text_value: String, color: Color = Color.TRANSPARENT) -> void: diff --git a/client/ui/implant/implant_header.gd b/client/ui/implant/implant_header.gd index 60119f1a1..03edc207d 100644 --- a/client/ui/implant/implant_header.gd +++ b/client/ui/implant/implant_header.gd @@ -19,7 +19,7 @@ func _init(title: String = "", subtitle: String = "") -> void: func _ready() -> void: add_theme_constant_override("separation", 0) - size_flags_horizontal = Control.SIZE_FLAGS_FILL + size_flags_horizontal = Control.SIZE_FILL _title_label.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART _subtitle_label.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART add_child(_title_label) diff --git a/client/ui/implant/implant_panel.gd b/client/ui/implant/implant_panel.gd index 72b8a6e27..d748f901f 100644 --- a/client/ui/implant/implant_panel.gd +++ b/client/ui/implant/implant_panel.gd @@ -15,7 +15,7 @@ var _vbox: VBoxContainer func _ready() -> void: # Constrain panel to its custom_minimum_size width - size_flags_horizontal = Control.SIZE_FLAGS_SHRINK_END + size_flags_horizontal = Control.SIZE_SHRINK_END clip_contents = true _vbox = VBoxContainer.new() diff --git a/client/ui/implant/implant_text_block.gd b/client/ui/implant/implant_text_block.gd index 21b5df62e..8b3b6524b 100644 --- a/client/ui/implant/implant_text_block.gd +++ b/client/ui/implant/implant_text_block.gd @@ -15,7 +15,7 @@ func _init(content: String = "", max_lines: int = -1) -> void: scroll_active = false mouse_filter = Control.MOUSE_FILTER_IGNORE autowrap_mode = TextServer.AUTOWRAP_WORD_SMART - size_flags_horizontal = Control.SIZE_FLAGS_FILL + size_flags_horizontal = Control.SIZE_FILL func set_content(content: String, max_lines: int = -1) -> void: