aboutsummaryrefslogtreecommitdiff
path: root/main.tscn
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-01-09 01:25:55 +0000
committerdam <dam@gudinoff>2022-01-09 01:25:55 +0000
commit5ba40857cdc770841d216a27e2a9e8bb3ebf3186 (patch)
tree2212f9685067270285265c81208fd5122a760d5d /main.tscn
parent431f042390ad36297a5ec986772c77da23b7fb67 (diff)
downloadsurgery-log-5ba40857cdc770841d216a27e2a9e8bb3ebf3186.tar.zst
surgery-log-5ba40857cdc770841d216a27e2a9e8bb3ebf3186.zip
Split touch logic from database. Prototype of popup with list of options.
Diffstat (limited to 'main.tscn')
-rw-r--r--main.tscn39
1 files changed, 20 insertions, 19 deletions
diff --git a/main.tscn b/main.tscn
index d4ff096..52d9ccf 100644
--- a/main.tscn
+++ b/main.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=11 format=2]
+[gd_scene load_steps=12 format=2]
[ext_resource path="res://main.gd" type="Script" id=1]
[ext_resource path="res://date_picker/date_picker.tscn" type="PackedScene" id=2]
@@ -9,7 +9,8 @@
[ext_resource path="res://icons/add.png" type="Texture" id=7]
[ext_resource path="res://icons/delete.png" type="Texture" id=8]
[ext_resource path="res://logic/stage.gd" type="Script" id=9]
-[ext_resource path="res://pointer_input_sensor.gd" type="Script" id=10]
+[ext_resource path="res://logic/popup_list.gd" type="Script" id=10]
+[ext_resource path="res://touch_item_list/touch_item_list.tscn" type="PackedScene" id=11]
[node name="main" type="Control"]
anchor_right = 1.0
@@ -20,24 +21,8 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="database" type="ItemList" parent="."]
-anchor_right = 1.0
-anchor_bottom = 1.0
-margin_top = 60.0
-mouse_filter = 2
+[node name="database" parent="." instance=ExtResource( 11 )]
script = ExtResource( 5 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="drag_sensor" type="Control" parent="database"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-margin_right = -8.0
-script = ExtResource( 10 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
[node name="actions" type="VBoxContainer" parent="database"]
anchor_left = 1.0
@@ -133,6 +118,12 @@ placeholder_text = "Local"
caret_blink = true
caret_blink_speed = 0.5
+[node name="auto" type="Button" parent="stage/controls/place"]
+anchor_left = 0.85
+anchor_right = 1.0
+anchor_bottom = 1.0
+text = "X"
+
[node name="anesthesia" type="LineEdit" parent="stage/controls"]
margin_top = 363.0
margin_right = 1080.0
@@ -243,6 +234,7 @@ anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
window_title = "PICK FILE"
+mode_overrides_title = false
access = 2
filters = PoolStringArray( "*.csv" )
show_hidden_files = true
@@ -261,6 +253,15 @@ window_title = "CONFIRM ACTION"
dialog_text = "Are you sure you want to delete all filters?"
dialog_autowrap = true
+[node name="popup_list" type="Popup" parent="."]
+anchor_right = 1.0
+anchor_bottom = 1.0
+popup_exclusive = true
+script = ExtResource( 10 )
+
+[node name="list" parent="popup_list" instance=ExtResource( 11 )]
+margin_top = 0.0
+
[node name="debug" type="Label" parent="."]
visible = false
anchor_right = 1.0