aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-04-05 06:30:33 +0000
committerdam <dam@gudinoff>2022-04-05 06:30:33 +0000
commit0f1adc3bb1f41b5dd3490f176a5eee2c17007923 (patch)
treef92573a7d6be2eb7c591a5abc6e83d18e05947a4
parent14526504570f0a8a4d2e1964388c680819414996 (diff)
downloadsurgery-log-0f1adc3bb1f41b5dd3490f176a5eee2c17007923.tar.zst
surgery-log-0f1adc3bb1f41b5dd3490f176a5eee2c17007923.zip
Set 62 as vertical minimum size on stage items.
-rw-r--r--dialog/dialog.gd2
-rw-r--r--main.tscn65
2 files changed, 38 insertions, 29 deletions
diff --git a/dialog/dialog.gd b/dialog/dialog.gd
index 71981c7..a22a3a6 100644
--- a/dialog/dialog.gd
+++ b/dialog/dialog.gd
@@ -23,6 +23,7 @@ func _init():
reject.anchor_left = 0.0
reject.anchor_right = 0.5
reject.margin_right = -5.0
+ reject.rect_min_size.y = 62.0
reject.grow_vertical = Control.GROW_DIRECTION_BEGIN
reject.name = "reject"
reject.connect("pressed", self, "_signal_rejected")
@@ -33,6 +34,7 @@ func _init():
accept.anchor_left = 0.5
accept.anchor_right = 1.0
accept.margin_left = 5.0
+ accept.rect_min_size.y = 62.0
accept.grow_vertical = Control.GROW_DIRECTION_BEGIN
accept.name = "accept"
accept.connect("pressed", self, "_signal_accepted")
diff --git a/main.tscn b/main.tscn
index bbb3a13..6f08eef 100644
--- a/main.tscn
+++ b/main.tscn
@@ -107,22 +107,25 @@ script = ExtResource( 9 )
[node name="title" type="Label" parent="stage/controls" index="0"]
margin_right = 1080.0
-margin_bottom = 52.0
+margin_bottom = 62.0
+rect_min_size = Vector2( 0, 62 )
align = 1
[node name="process_id" type="LineEdit" parent="stage/controls" index="1"]
-margin_top = 62.0
+margin_top = 72.0
margin_right = 1080.0
-margin_bottom = 124.0
+margin_bottom = 134.0
+rect_min_size = Vector2( 0, 62 )
max_length = 32
placeholder_text = "Process #"
caret_blink = true
caret_blink_speed = 0.5
[node name="surgery_id" type="LineEdit" parent="stage/controls" index="2"]
-margin_top = 134.0
+margin_top = 144.0
margin_right = 1080.0
-margin_bottom = 196.0
+margin_bottom = 206.0
+rect_min_size = Vector2( 0, 62 )
max_length = 32
placeholder_text = "Surgery #"
caret_blink = true
@@ -132,107 +135,110 @@ caret_blink_speed = 0.5
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 340.0
-margin_top = 206.0
+margin_top = 216.0
margin_right = 740.0
-margin_bottom = 406.0
+margin_bottom = 416.0
rect_min_size = Vector2( 400, 200 )
size_flags_horizontal = 4
[node name="place" parent="stage/controls" index="4" instance=ExtResource( 7 )]
anchor_right = 0.0
anchor_bottom = 0.0
-margin_top = 416.0
+margin_top = 426.0
margin_right = 1080.0
-margin_bottom = 478.0
+margin_bottom = 488.0
rect_min_size = Vector2( 0, 62 )
placeholder = "Place"
[node name="anesthesia" parent="stage/controls" index="5" instance=ExtResource( 7 )]
anchor_right = 0.0
anchor_bottom = 0.0
-margin_top = 488.0
+margin_top = 498.0
margin_right = 1080.0
-margin_bottom = 550.0
+margin_bottom = 560.0
rect_min_size = Vector2( 0, 62 )
placeholder = "Anesthesia"
[node name="first_assistant" parent="stage/controls" index="6" instance=ExtResource( 7 )]
anchor_right = 0.0
anchor_bottom = 0.0
-margin_top = 560.0
+margin_top = 570.0
margin_right = 1080.0
-margin_bottom = 622.0
+margin_bottom = 632.0
rect_min_size = Vector2( 0, 62 )
placeholder = "First assistant"
[node name="type" parent="stage/controls" index="7" instance=ExtResource( 7 )]
anchor_right = 0.0
anchor_bottom = 0.0
-margin_top = 632.0
+margin_top = 642.0
margin_right = 1080.0
-margin_bottom = 694.0
+margin_bottom = 704.0
rect_min_size = Vector2( 0, 62 )
placeholder = "Type"
[node name="sub_type" parent="stage/controls" index="8" instance=ExtResource( 7 )]
anchor_right = 0.0
anchor_bottom = 0.0
-margin_top = 704.0
+margin_top = 714.0
margin_right = 1080.0
-margin_bottom = 766.0
+margin_bottom = 776.0
rect_min_size = Vector2( 0, 62 )
placeholder = "Sub-type"
[node name="sub_sub_type" parent="stage/controls" index="9" instance=ExtResource( 7 )]
anchor_right = 0.0
anchor_bottom = 0.0
-margin_top = 776.0
+margin_top = 786.0
margin_right = 1080.0
-margin_bottom = 838.0
+margin_bottom = 848.0
rect_min_size = Vector2( 0, 62 )
placeholder = "Sub-sub-type"
[node name="pathology" parent="stage/controls" index="10" instance=ExtResource( 7 )]
anchor_right = 0.0
anchor_bottom = 0.0
-margin_top = 848.0
+margin_top = 858.0
margin_right = 1080.0
-margin_bottom = 910.0
+margin_bottom = 920.0
rect_min_size = Vector2( 0, 62 )
placeholder = "Pathology"
[node name="intervention" parent="stage/controls" index="11" instance=ExtResource( 7 )]
anchor_right = 0.0
anchor_bottom = 0.0
-margin_top = 920.0
+margin_top = 930.0
margin_right = 1080.0
-margin_bottom = 982.0
+margin_bottom = 992.0
rect_min_size = Vector2( 0, 62 )
placeholder = "Intervention"
[node name="is_urgency" type="CheckButton" parent="stage/controls" index="12"]
-margin_top = 992.0
+margin_top = 1002.0
margin_right = 1080.0
-margin_bottom = 1044.0
+margin_bottom = 1064.0
+rect_min_size = Vector2( 0, 62 )
text = "Is urgency"
[node name="notes" type="LineEdit" parent="stage/controls" index="13"]
-margin_top = 1054.0
+margin_top = 1074.0
margin_right = 1080.0
-margin_bottom = 1116.0
+margin_bottom = 1136.0
+rect_min_size = Vector2( 0, 62 )
max_length = 4096
placeholder_text = "Notes"
caret_blink = true
caret_blink_speed = 0.5
[node name="buttons" type="Control" parent="stage/controls" index="14"]
-margin_top = 1126.0
+margin_top = 1146.0
margin_right = 1080.0
-margin_bottom = 1126.0
+margin_bottom = 1146.0
[node name="discard" type="Button" parent="stage/controls/buttons"]
anchor_right = 0.5
margin_right = -5.0
+rect_min_size = Vector2( 0, 62 )
text = "Discard"
[node name="save" type="Button" parent="stage/controls/buttons"]
@@ -240,6 +246,7 @@ anchor_left = 0.5
anchor_right = 1.0
margin_left = 5.0
grow_horizontal = 0
+rect_min_size = Vector2( 0, 62 )
text = "Save"
[node name="file_picker" type="FileDialog" parent="."]