From 0cd7759315750fcd70e395da7d1f2cc9ec61b0c8 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Mon, 24 Nov 2025 19:18:52 +1000 Subject: [PATCH] bottom bar progress bar v1 --- .../Features/BottomBar/BottomBar.cs | 2 +- .../Features/BottomBar/BottomBar.tscn | 30 +++++++++++++++++-- src/SharpIDE.Godot/IdeRoot.tscn | 2 +- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/src/SharpIDE.Godot/Features/BottomBar/BottomBar.cs b/src/SharpIDE.Godot/Features/BottomBar/BottomBar.cs index f792398..995f859 100644 --- a/src/SharpIDE.Godot/Features/BottomBar/BottomBar.cs +++ b/src/SharpIDE.Godot/Features/BottomBar/BottomBar.cs @@ -2,7 +2,7 @@ using Godot; namespace SharpIDE.Godot.Features.BottomBar; -public partial class BottomBar : HBoxContainer +public partial class BottomBar : PanelContainer { } \ No newline at end of file diff --git a/src/SharpIDE.Godot/Features/BottomBar/BottomBar.tscn b/src/SharpIDE.Godot/Features/BottomBar/BottomBar.tscn index fbf9941..cf36760 100644 --- a/src/SharpIDE.Godot/Features/BottomBar/BottomBar.tscn +++ b/src/SharpIDE.Godot/Features/BottomBar/BottomBar.tscn @@ -2,10 +2,34 @@ [ext_resource type="Script" uid="uid://dkeruijr43xlk" path="res://Features/BottomBar/BottomBar.cs" id="1_6bm5o"] -[node name="BottomBar" type="HBoxContainer"] -anchors_preset = 15 +[node name="BottomBar" type="PanelContainer"] +custom_minimum_size = Vector2(0, 27) +anchors_preset = 14 +anchor_top = 0.5 anchor_right = 1.0 -anchor_bottom = 1.0 +anchor_bottom = 0.5 +offset_top = -13.5 +offset_bottom = 13.5 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_6bm5o") + +[node name="MarginContainer" type="MarginContainer" parent="."] +layout_mode = 2 +theme_override_constants/margin_left = 8 +theme_override_constants/margin_right = 8 + +[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"] +layout_mode = 2 + +[node name="Control" type="Control" parent="MarginContainer/HBoxContainer"] +layout_mode = 2 +size_flags_horizontal = 3 + +[node name="ProgressBar" type="ProgressBar" parent="MarginContainer/HBoxContainer"] +custom_minimum_size = Vector2(150, 0) +layout_mode = 2 +size_flags_vertical = 4 +theme_override_font_sizes/font_size = 6 +indeterminate = true +editor_preview_indeterminate = false diff --git a/src/SharpIDE.Godot/IdeRoot.tscn b/src/SharpIDE.Godot/IdeRoot.tscn index aefe11a..f1f9fcd 100644 --- a/src/SharpIDE.Godot/IdeRoot.tscn +++ b/src/SharpIDE.Godot/IdeRoot.tscn @@ -143,7 +143,7 @@ size_flags_horizontal = 3 theme_override_constants/separation = 4 theme_override_constants/minimum_grab_thickness = 10 theme_override_icons/grabber = SubResource("PlaceholderTexture2D_woo5i") -split_offset = 398 +split_offset = 371 script = ExtResource("3_0ybuf") metadata/_custom_type_script = "uid://kvnhndc3l6ih"