godot-mota/src/shop/Shop.tscn

175 lines
4.9 KiB
Plaintext
Raw Normal View History

2020-09-04 21:54:46 +08:00
[gd_scene load_steps=16 format=2]
[ext_resource path="res://assets/fonts/Droid Sans Fallback.tres" type="DynamicFont" id=1]
[ext_resource path="res://assets/images/terrains.png" type="Texture" id=2]
[ext_resource path="res://src/shop/Shop.gd" type="Script" id=3]
[ext_resource path="res://assets/images/npcs.png" type="Texture" id=4]
[ext_resource path="res://assets/fonts/Droid Sans Fallback.ttf" type="DynamicFontData" id=5]
[sub_resource type="RectangleShape2D" id=6]
extents = Vector2( 48, 16 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 4 )
region = Rect2( 0, 320, 32, 32 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 4 )
region = Rect2( 32, 320, 32, 32 )
[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ SubResource( 2 ), SubResource( 3 ) ],
"loop": true,
"name": "default",
"speed": 2.0
} ]
[sub_resource type="DynamicFont" id=5]
size = 12
font_data = ExtResource( 5 )
[sub_resource type="StyleBoxEmpty" id=7]
[sub_resource type="StyleBoxEmpty" id=8]
[sub_resource type="StyleBoxEmpty" id=9]
[sub_resource type="StyleBoxEmpty" id=10]
[sub_resource type="StyleBoxEmpty" id=11]
[node name="Shop" type="StaticBody2D"]
position = Vector2( 176, 144 )
script = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 32, 0 )
shape = SubResource( 6 )
[node name="Left" type="Sprite" parent="."]
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 704, 32, 32 )
[node name="Center" type="AnimatedSprite" parent="."]
position = Vector2( 32, 0 )
frames = SubResource( 4 )
frame = 1
playing = true
[node name="Right" type="Sprite" parent="."]
position = Vector2( 61.9, 0 )
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 736, 32, 32 )
[node name="ShopDialog" type="PopupDialog" parent="."]
visible = true
margin_left = -80.0
margin_top = 16.0
margin_right = 146.0
margin_bottom = 309.0
popup_exclusive = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" type="Label" parent="ShopDialog"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -20.0
margin_top = 23.0
margin_right = 20.0
margin_bottom = 48.0
custom_fonts/font = ExtResource( 1 )
custom_colors/font_color = Color( 1, 0.854902, 0, 1 )
text = "祭坛"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Message" type="Label" parent="ShopDialog"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -81.0
margin_top = 64.0
margin_right = 79.0
margin_bottom = 104.0
custom_fonts/font = SubResource( 5 )
custom_colors/font_color = Color( 1, 1, 1, 1 )
text = "如果供奉20金币便可以增强你的力量你想要什么呢......"
align = 1
autowrap = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="ShopDialog"]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -81.0
margin_top = -165.0
margin_right = 79.0
margin_bottom = -37.0
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="AddHp" type="Button" parent="ShopDialog/VBoxContainer"]
margin_top = 8.0
margin_right = 160.0
margin_bottom = 30.0
custom_styles/hover = SubResource( 7 )
custom_styles/pressed = SubResource( 8 )
custom_styles/focus = SubResource( 9 )
custom_styles/disabled = SubResource( 10 )
custom_styles/normal = SubResource( 11 )
custom_fonts/font = ExtResource( 1 )
text = "生命+100"
[node name="AddAtk" type="Button" parent="ShopDialog/VBoxContainer"]
margin_top = 38.0
margin_right = 160.0
margin_bottom = 60.0
custom_styles/hover = SubResource( 7 )
custom_styles/pressed = SubResource( 8 )
custom_styles/focus = SubResource( 9 )
custom_styles/disabled = SubResource( 10 )
custom_styles/normal = SubResource( 11 )
custom_fonts/font = ExtResource( 1 )
text = "攻击力+2"
[node name="AddDef" type="Button" parent="ShopDialog/VBoxContainer"]
margin_top = 68.0
margin_right = 160.0
margin_bottom = 90.0
custom_styles/hover = SubResource( 7 )
custom_styles/pressed = SubResource( 8 )
custom_styles/focus = SubResource( 9 )
custom_styles/disabled = SubResource( 10 )
custom_styles/normal = SubResource( 11 )
custom_fonts/font = ExtResource( 1 )
text = "防御力+4"
[node name="CloseDialog" type="Button" parent="ShopDialog/VBoxContainer"]
margin_top = 98.0
margin_right = 160.0
margin_bottom = 120.0
custom_styles/hover = SubResource( 7 )
custom_styles/pressed = SubResource( 8 )
custom_styles/focus = SubResource( 9 )
custom_styles/disabled = SubResource( 10 )
custom_styles/normal = SubResource( 11 )
custom_fonts/font = ExtResource( 1 )
text = "离开"
[connection signal="pressed" from="ShopDialog/VBoxContainer/AddHp" to="." method="_on_AddHp_pressed"]
[connection signal="pressed" from="ShopDialog/VBoxContainer/AddAtk" to="." method="_on_AddAtk_pressed"]
[connection signal="pressed" from="ShopDialog/VBoxContainer/AddDef" to="." method="_on_AddDef_pressed"]
[connection signal="pressed" from="ShopDialog/VBoxContainer/CloseDialog" to="." method="_on_CloseDialog_pressed"]