-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTextPrompt.tscn
50 lines (42 loc) · 1.5 KB
/
TextPrompt.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/ui/UITheme.tres" type="Theme" id=1]
[ext_resource path="res://TextPrompt.gd" type="Script" id=2]
[ext_resource path="res://ThickButton.tscn" type="PackedScene" id=3]
[node name="TextPrompt" type="PanelContainer"]
margin_left = 144.0
margin_top = 140.0
margin_right = 264.0
margin_bottom = 209.0
rect_min_size = Vector2( 0, 20 )
theme = ExtResource( 1 )
script = ExtResource( 2 )
[node name="VBoxContainer" type="VBoxContainer" parent="."]
margin_left = 6.0
margin_top = 5.0
margin_right = 114.0
margin_bottom = 64.0
[node name="Label" type="Label" parent="VBoxContainer"]
margin_right = 108.0
margin_bottom = 9.0
text = "What is your name?"
[node name="LineEdit" type="LineEdit" parent="VBoxContainer"]
margin_top = 13.0
margin_right = 108.0
margin_bottom = 30.0
max_length = 42
expand_to_text_length = true
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
margin_top = 34.0
margin_right = 108.0
margin_bottom = 59.0
[node name="OkButton" parent="VBoxContainer/HBoxContainer" instance=ExtResource( 3 )]
margin_right = 28.0
text = "OK"
icon = null
[node name="CancelButton" parent="VBoxContainer/HBoxContainer" instance=ExtResource( 3 )]
margin_left = 32.0
margin_right = 84.0
text = "Cancel"
icon = null
[connection signal="pressed" from="VBoxContainer/HBoxContainer/OkButton" to="." method="_on_OkButton_pressed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/CancelButton" to="." method="_on_CancelButton_pressed"]