mlpcardgame/Scenes/Components/Stack.tscn

109 lines
3.1 KiB
Plaintext

[gd_scene load_steps=8 format=2]
[ext_resource path="res://Scenes/Components/Stack.gd" type="Script" id=1]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.424389, 0.0827175, 0.546632 )
[sub_resource type="SpatialMaterial" id=2]
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 )
[sub_resource type="DynamicFontData" id=3]
font_path = "res://UIAssets/Fonts/Catamaran-Bold.ttf"
[sub_resource type="DynamicFont" id=4]
size = 30
outline_size = 2
outline_color = Color( 0, 0, 0, 0.54902 )
font_data = SubResource( 3 )
[sub_resource type="ViewportTexture" id=6]
viewport_path = NodePath("StackNameViewport")
[sub_resource type="ViewportTexture" id=5]
viewport_path = NodePath("StackCountViewport")
[node name="Stack" type="Area"]
input_ray_pickable = false
script = ExtResource( 1 )
showCounter = true
[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0526529, 0 )
shape = SubResource( 1 )
[node name="CSGBox" type="CSGBox" parent="."]
transform = Transform( 0.802373, 0, 0, 0, 1, 0, 0, 0, 0.81647, 0, 0, 0 )
width = 0.85
height = 0.002
depth = 1.15
material = SubResource( 2 )
[node name="CSGBox2" type="CSGBox" parent="CSGBox"]
transform = Transform( 1.00679, 0, 0, 0, 1.00679, 0, 0, 0, 1.00679, 0, 0, 0 )
operation = 2
width = 0.8
height = 0.102173
depth = 1.1
[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
[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="."]
size = Vector2( 100, 100 )
transparent_bg = true
handle_input_locally = false
usage = 0
[node name="Label" type="Label" parent="StackCountViewport"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_fonts/font = SubResource( 4 )
text = "0"
align = 1
valign = 1
[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 )
texture = SubResource( 5 )
region_rect = Rect2( 0, 0, 30, 30 )
[connection signal="mouse_entered" from="." to="." method="_mouse_entered"]
[connection signal="mouse_exited" from="." to="." method="_mouse_exited"]