-
Notifications
You must be signed in to change notification settings - Fork 2
/
Demo2D.tscn
109 lines (94 loc) · 2.41 KB
/
Demo2D.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[gd_scene load_steps=5 format=2]
[ext_resource path="res://HexCell2D.tscn" type="PackedScene" id=1]
[ext_resource path="res://Demo2D.cs" type="Script" id=2]
[ext_resource path="res://Camera2DPan.tscn" type="PackedScene" id=3]
[ext_resource path="res://2DFlatHexGrid.tres" type="Resource" id=4]
[node name="Demo2D" type="Node2D"]
[node name="Camera2DPan" parent="." instance=ExtResource( 3 )]
[node name="Centre" type="Node2D" parent="."]
position = Vector2( 512, 300 )
script = ExtResource( 2 )
HexGrid = ExtResource( 4 )
[node name="HighlightedCell" parent="Centre" instance=ExtResource( 1 )]
[node name="HUD" type="CanvasLayer" parent="."]
[node name="Coordinates" type="ColorRect" parent="HUD"]
margin_left = -3.0
margin_top = 549.0
margin_right = 186.0
margin_bottom = 604.0
color = Color( 0, 0, 0, 0.698039 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MouseTitle" type="Label" parent="HUD/Coordinates"]
margin_left = 8.0
margin_top = 10.0
margin_right = 59.0
margin_bottom = 24.0
text = "MOUSE:"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MouseValue" type="Label" parent="HUD/Coordinates"]
margin_left = 73.0
margin_top = 10.0
margin_right = 124.0
margin_bottom = 24.0
text = "0,0"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CellTitle" type="Label" parent="HUD/Coordinates"]
margin_left = 8.0
margin_top = 30.0
margin_right = 59.0
margin_bottom = 44.0
text = "HEX:"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CellValue" type="Label" parent="HUD/Coordinates"]
margin_left = 73.0
margin_top = 30.0
margin_right = 124.0
margin_bottom = 44.0
text = "0,0"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Controls" type="ColorRect" parent="HUD"]
margin_left = 838.0
margin_top = 549.0
margin_right = 1027.0
margin_bottom = 604.0
color = Color( 0, 0, 0, 0.698039 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ModeTitle" type="Label" parent="HUD/Controls"]
margin_left = 8.0
margin_top = 10.0
margin_right = 59.0
margin_bottom = 24.0
text = "MODE:"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ModeValue" type="Button" parent="HUD/Controls"]
margin_left = 69.0
margin_top = 7.0
margin_right = 136.0
margin_bottom = 27.0
focus_mode = 0
toggle_mode = true
enabled_focus_mode = 0
text = "FLAT"
flat = true
align = 0
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="toggled" from="HUD/Controls/ModeValue" to="Centre" method="OnModeToggled"]