-
Notifications
You must be signed in to change notification settings - Fork 0
/
end_turn_ui.tscn
72 lines (62 loc) · 2.18 KB
/
end_turn_ui.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[gd_scene load_steps=4 format=3 uid="uid://blobidbs6ysqp"]
[ext_resource type="Script" path="res://end_turn_ui.gd" id="1_51th7"]
[ext_resource type="LabelSettings" uid="uid://c5r2il4oxf0xe" path="res://UI settings/UI Label Settings.tres" id="1_wot8r"]
[ext_resource type="Theme" uid="uid://7miaudw2s7n0" path="res://UI settings/button_theme.tres" id="2_ma7aj"]
[node name="EndTurnUI" type="CanvasLayer"]
script = ExtResource("1_51th7")
[node name="EndTurnButton" type="Button" parent="."]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -124.5
offset_right = 124.5
offset_bottom = 101.0
grow_horizontal = 2
theme = ExtResource("2_ma7aj")
[node name="EndTurnLabel" type="Label" parent="."]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -85.0
offset_right = 85.0
offset_bottom = 96.0
grow_horizontal = 2
size_flags_horizontal = 0
size_flags_vertical = 0
text = "Avslutt tur"
label_settings = ExtResource("1_wot8r")
horizontal_alignment = 1
vertical_alignment = 1
[node name="ConfirmationDialog" type="CanvasLayer" parent="."]
visible = false
[node name="ColorRect" type="ColorRect" parent="ConfirmationDialog"]
offset_left = 669.0
offset_top = 348.0
offset_right = 1248.0
offset_bottom = 590.0
color = Color(0.0196078, 0.0196078, 0.0196078, 0.784314)
[node name="Message" type="Label" parent="ConfirmationDialog"]
offset_left = 693.0
offset_top = 370.0
offset_right = 1225.0
offset_bottom = 484.0
text = "Du kan fortsatt flytte deg.
Virkelig avslutt tur?"
label_settings = ExtResource("1_wot8r")
[node name="YesButton" type="Button" parent="ConfirmationDialog"]
offset_left = 777.0
offset_top = 486.0
offset_right = 889.0
offset_bottom = 571.0
theme = ExtResource("2_ma7aj")
text = "Ja"
[node name="NoButton" type="Button" parent="ConfirmationDialog"]
offset_left = 993.0
offset_top = 484.0
offset_right = 1119.0
offset_bottom = 574.0
theme = ExtResource("2_ma7aj")
text = "Nei"
[connection signal="pressed" from="EndTurnButton" to="." method="_on_end_turn_button_pressed"]
[connection signal="pressed" from="ConfirmationDialog/YesButton" to="." method="_on_yes_button_pressed"]
[connection signal="pressed" from="ConfirmationDialog/NoButton" to="." method="_on_no_button_pressed"]