2019-05-26 22:00:15 +00:00
|
|
|
[gd_scene load_steps=8 format=2]
|
2019-05-06 23:25:08 +00:00
|
|
|
|
2019-06-07 00:02:07 +00:00
|
|
|
[ext_resource path="res://Scenes/Board/Stack.gd" type="Script" id=1]
|
|
|
|
|
2019-05-06 23:25:08 +00:00
|
|
|
|
2019-05-11 19:36:44 +00:00
|
|
|
[sub_resource type="BoxShape" id=1]
|
2019-05-16 21:41:09 +00:00
|
|
|
extents = Vector3( 0.424389, 0.0827175, 0.546632 )
|
2019-05-07 18:56:26 +00:00
|
|
|
|
2019-05-16 21:41:09 +00:00
|
|
|
[sub_resource type="SpatialMaterial" id=2]
|
2019-05-12 21:37:44 +00:00
|
|
|
flags_transparent = true
|
|
|
|
flags_unshaded = true
|
|
|
|
flags_vertex_lighting = true
|
|
|
|
flags_do_not_receive_shadows = true
|
|
|
|
flags_disable_ambient_light = true
|
|
|
|
albedo_color = Color( 1, 1, 1, 0.392157 )
|
|
|
|
|
2019-05-16 21:41:09 +00:00
|
|
|
[sub_resource type="DynamicFontData" id=3]
|
2019-05-06 23:25:08 +00:00
|
|
|
font_path = "res://UIAssets/Fonts/Catamaran-Bold.ttf"
|
|
|
|
|
2019-05-16 21:41:09 +00:00
|
|
|
[sub_resource type="DynamicFont" id=4]
|
2019-05-26 22:00:15 +00:00
|
|
|
size = 30
|
2019-05-06 23:25:08 +00:00
|
|
|
outline_size = 2
|
|
|
|
outline_color = Color( 0, 0, 0, 0.54902 )
|
2019-05-16 21:41:09 +00:00
|
|
|
font_data = SubResource( 3 )
|
2019-05-06 23:25:08 +00:00
|
|
|
|
2019-05-26 22:00:15 +00:00
|
|
|
[sub_resource type="ViewportTexture" id=6]
|
|
|
|
viewport_path = NodePath("StackNameViewport")
|
|
|
|
|
2019-05-16 21:41:09 +00:00
|
|
|
[sub_resource type="ViewportTexture" id=5]
|
2019-05-26 22:00:15 +00:00
|
|
|
viewport_path = NodePath("StackCountViewport")
|
2019-05-06 22:18:10 +00:00
|
|
|
|
2019-05-07 18:56:26 +00:00
|
|
|
[node name="Stack" type="Area"]
|
2019-05-16 21:41:09 +00:00
|
|
|
input_ray_pickable = false
|
2019-05-06 23:25:08 +00:00
|
|
|
script = ExtResource( 1 )
|
2019-05-26 22:00:15 +00:00
|
|
|
showCounter = true
|
2019-05-06 23:25:08 +00:00
|
|
|
|
2019-05-07 18:56:26 +00:00
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="."]
|
2019-05-16 21:41:09 +00:00
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0526529, 0 )
|
2019-05-11 19:36:44 +00:00
|
|
|
shape = SubResource( 1 )
|
2019-05-07 18:56:26 +00:00
|
|
|
|
2019-05-06 23:25:08 +00:00
|
|
|
[node name="CSGBox" type="CSGBox" parent="."]
|
2019-05-12 21:37:44 +00:00
|
|
|
transform = Transform( 0.802373, 0, 0, 0, 1, 0, 0, 0, 0.81647, 0, 0, 0 )
|
|
|
|
width = 0.85
|
2019-05-06 23:25:08 +00:00
|
|
|
height = 0.002
|
2019-05-12 21:37:44 +00:00
|
|
|
depth = 1.15
|
2019-05-16 21:41:09 +00:00
|
|
|
material = SubResource( 2 )
|
2019-05-06 23:25:08 +00:00
|
|
|
|
|
|
|
[node name="CSGBox2" type="CSGBox" parent="CSGBox"]
|
2019-05-12 21:37:44 +00:00
|
|
|
transform = Transform( 1.00679, 0, 0, 0, 1.00679, 0, 0, 0, 1.00679, 0, 0, 0 )
|
2019-05-06 23:25:08 +00:00
|
|
|
operation = 2
|
2019-05-12 21:37:44 +00:00
|
|
|
width = 0.8
|
2019-05-06 23:25:08 +00:00
|
|
|
height = 0.102173
|
2019-05-12 21:37:44 +00:00
|
|
|
depth = 1.1
|
2019-05-06 23:25:08 +00:00
|
|
|
|
|
|
|
[node name="CSGBox3" type="CSGBox" parent="CSGBox"]
|
|
|
|
operation = 2
|
|
|
|
width = 0.191127
|
|
|
|
height = 0.102173
|
|
|
|
depth = 1.57935
|
|
|
|
|
|
|
|
[node name="CSGBox4" type="CSGBox" parent="CSGBox"]
|
|
|
|
transform = Transform( -4.37114e-008, 0, -1, 0, 1, 0, 1, 0, -4.37114e-008, 0, 0, 0 )
|
|
|
|
operation = 2
|
|
|
|
width = 0.650255
|
|
|
|
height = 0.102173
|
|
|
|
depth = 1.57935
|
|
|
|
|
2019-05-26 22:00:15 +00:00
|
|
|
[node name="StackNameViewport" type="Viewport" parent="."]
|
|
|
|
size = Vector2( 300, 300 )
|
|
|
|
transparent_bg = true
|
|
|
|
handle_input_locally = false
|
|
|
|
usage = 0
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="StackNameViewport"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_right = 100.0
|
|
|
|
margin_bottom = 100.0
|
|
|
|
custom_fonts/font = SubResource( 4 )
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
|
|
|
|
[node name="StackCountViewport" type="Viewport" parent="."]
|
2019-05-06 23:25:08 +00:00
|
|
|
size = Vector2( 100, 100 )
|
|
|
|
transparent_bg = true
|
|
|
|
handle_input_locally = false
|
|
|
|
usage = 0
|
|
|
|
|
2019-05-26 22:00:15 +00:00
|
|
|
[node name="Label" type="Label" parent="StackCountViewport"]
|
2019-05-06 23:25:08 +00:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2019-05-16 21:41:09 +00:00
|
|
|
custom_fonts/font = SubResource( 4 )
|
2019-05-26 22:00:15 +00:00
|
|
|
text = "0"
|
2019-05-06 23:25:08 +00:00
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
|
2019-05-26 22:00:15 +00:00
|
|
|
[node name="StackName" type="Sprite3D" parent="."]
|
|
|
|
transform = Transform( 0.29265, 0.405408, -1.7721e-008, 0, -2.18557e-008, -0.5, -0.405408, 0.29265, -1.27921e-008, -0.34215, 0, 0.0641977 )
|
|
|
|
modulate = Color( 1, 1, 1, 0.392157 )
|
|
|
|
texture = SubResource( 6 )
|
|
|
|
region_rect = Rect2( 0, 0, 30, 30 )
|
|
|
|
|
|
|
|
[node name="StackCount" type="Sprite3D" parent="."]
|
|
|
|
transform = Transform( 0.5853, 0.810817, -3.54419e-008, 0, -4.37114e-008, -1, -0.810817, 0.5853, -2.55843e-008, 0, -1, 0 )
|
|
|
|
modulate = Color( 1, 1, 1, 0.784314 )
|
2019-05-16 21:41:09 +00:00
|
|
|
texture = SubResource( 5 )
|
2019-05-06 23:25:08 +00:00
|
|
|
region_rect = Rect2( 0, 0, 30, 30 )
|
2019-05-07 18:56:26 +00:00
|
|
|
[connection signal="mouse_entered" from="." to="." method="_mouse_entered"]
|
|
|
|
[connection signal="mouse_exited" from="." to="." method="_mouse_exited"]
|