[gd_scene load_steps=15 format=2] [ext_resource path="res://scripts/SaveGameButton.gd" type="Script" id=1] [ext_resource path="res://images/mota.png" type="Texture" id=2] [ext_resource path="res://fonts/Droid Sans Fallback.ttf" type="DynamicFontData" id=3] [ext_resource path="res://scripts/LoadGameButton.gd" type="Script" id=4] [sub_resource type="DynamicFont" id=1] size = 12 font_data = ExtResource( 3 ) [sub_resource type="DynamicFont" id=2] size = 14 font_data = ExtResource( 3 ) [sub_resource type="DynamicFont" id=3] font_data = ExtResource( 3 ) [sub_resource type="DynamicFont" id=4] size = 12 font_data = ExtResource( 3 ) [sub_resource type="Curve" id=5] _data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0.1 ), 0.0, 0.0, 0, 0 ] [sub_resource type="CurveTexture" id=6] curve = SubResource( 5 ) [sub_resource type="DynamicFont" id=7] size = 10 font_data = ExtResource( 3 ) [sub_resource type="DynamicFont" id=8] size = 10 font_data = ExtResource( 3 ) [sub_resource type="DynamicFont" id=9] size = 10 font_data = ExtResource( 3 ) [sub_resource type="DynamicFont" id=10] size = 10 font_data = ExtResource( 3 ) [node name="UI" type="Node2D"] [node name="ItemBackground" type="ColorRect" parent="."] anchor_right = 0.058 margin_left = 8.0 margin_top = 224.0 margin_right = 120.0 margin_bottom = 384.0 rect_pivot_offset = Vector2( 0, 32 ) color = Color( 0.403922, 0.403922, 0.403922, 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="SaveGameButton" type="Button" parent="ItemBackground"] margin_left = 8.0 margin_top = 120.0 margin_right = 48.0 margin_bottom = 152.0 custom_fonts/font = SubResource( 1 ) text = "存档" script = ExtResource( 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="LoadGameButton" type="Button" parent="ItemBackground"] margin_left = 64.0 margin_top = 120.0 margin_right = 104.0 margin_bottom = 152.0 custom_fonts/font = SubResource( 1 ) text = "读档" script = ExtResource( 4 ) __meta__ = { "_edit_use_anchors_": false } [node name="LevelBackground" type="ColorRect" parent="."] margin_left = 16.0 margin_top = 32.0 margin_right = 120.0 margin_bottom = 56.0 color = Color( 0.403922, 0.403922, 0.403922, 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="LevelLabel" type="Label" parent="LevelBackground"] margin_right = 104.0 margin_bottom = 24.0 custom_fonts/font = SubResource( 2 ) text = "魔塔 第1层" align = 1 valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="WeaponBackground" type="ColorRect" parent="."] margin_left = 552.0 margin_top = 32.0 margin_right = 656.0 margin_bottom = 72.0 color = Color( 0.403922, 0.403922, 0.403922, 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="WeaponLabel" type="Label" parent="WeaponBackground"] margin_left = 8.0 margin_right = 56.0 margin_bottom = 40.0 custom_fonts/font = SubResource( 3 ) custom_colors/font_color = Color( 0.952941, 0.776471, 0.658824, 1 ) text = "神圣剑" align = 1 valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="WeaponSprite" type="Sprite" parent="WeaponBackground"] position = Vector2( 80, 20 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 224, 448, 32, 32 ) [node name="ShieldBackground" type="ColorRect" parent="."] margin_left = 552.0 margin_top = 88.0 margin_right = 656.0 margin_bottom = 128.0 color = Color( 0.403922, 0.403922, 0.403922, 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="ShieldLabel" type="Label" parent="ShieldBackground"] margin_left = 8.0 margin_right = 56.0 margin_bottom = 40.0 custom_fonts/font = SubResource( 3 ) custom_colors/font_color = Color( 0.815686, 0.803922, 0.992157, 1 ) text = "神圣盾" align = 1 valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="ShieldSprite" type="Sprite" parent="ShieldBackground"] position = Vector2( 80, 20 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 256, 448, 32, 32 ) [node name="KeyBackground" type="ColorRect" parent="."] margin_left = 552.0 margin_top = 144.0 margin_right = 656.0 margin_bottom = 224.0 color = Color( 0.403922, 0.403922, 0.403922, 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="Sprite" type="Sprite" parent="KeyBackground"] position = Vector2( 15, 26 ) scale = Vector2( 0.75, 0.75 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 96, 448, 32, 32 ) [node name="YellowKeyCountLabel" type="Label" parent="KeyBackground"] margin_left = 28.0 margin_top = 14.0 margin_right = 52.0 margin_bottom = 38.0 custom_fonts/font = SubResource( 4 ) text = "0" valign = 1 autowrap = true clip_text = true __meta__ = { "_edit_use_anchors_": false } [node name="Sprite2" type="Sprite" parent="KeyBackground"] position = Vector2( 64, 26 ) scale = Vector2( 0.75, 0.75 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 128, 448, 32, 32 ) [node name="BlueKeyCountLabel" type="Label" parent="KeyBackground"] margin_left = 76.0 margin_top = 14.0 margin_right = 100.0 margin_bottom = 38.0 custom_fonts/font = SubResource( 4 ) text = "0" valign = 1 autowrap = true clip_text = true __meta__ = { "_edit_use_anchors_": false } [node name="Sprite3" type="Sprite" parent="KeyBackground"] position = Vector2( 15, 60 ) scale = Vector2( 0.75, 0.75 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 160, 448, 32, 32 ) [node name="RedKeyCountLabel" type="Label" parent="KeyBackground"] margin_left = 27.0 margin_top = 48.0 margin_right = 51.0 margin_bottom = 72.0 custom_fonts/font = SubResource( 4 ) text = "0" valign = 1 autowrap = true clip_text = true __meta__ = { "_edit_use_anchors_": false } [node name="Sprite4" type="Sprite" parent="KeyBackground"] position = Vector2( 66, 60 ) scale = Vector2( 0.75, 0.75 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 192, 448, 32, 32 ) [node name="GreenKeyCountLabel" type="Label" parent="KeyBackground"] margin_left = 78.0 margin_top = 48.0 margin_right = 102.0 margin_bottom = 72.0 custom_fonts/font = SubResource( 4 ) text = "0" valign = 1 autowrap = true clip_text = true __meta__ = { "_edit_use_anchors_": false } [node name="MonsterInfoBackground" type="ColorRect" parent="."] margin_left = 552.0 margin_top = 240.0 margin_right = 656.0 margin_bottom = 384.0 color = Color( 0.403922, 0.403922, 0.403922, 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="MoneySprite" type="Sprite" parent="."] position = Vector2( 24, 184 ) texture = ExtResource( 2 ) normal_map = SubResource( 6 ) region_enabled = true region_rect = Rect2( 96, 480, 32, 32 ) [node name="MoneyBackground" type="ColorRect" parent="MoneySprite"] margin_left = 24.0 margin_top = -8.0 margin_right = 96.0 margin_bottom = 8.0 color = Color( 0.403922, 0.403922, 0.403922, 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="MoneyLabel" type="Label" parent="MoneySprite/MoneyBackground"] margin_right = 72.0 margin_bottom = 16.0 custom_fonts/font = SubResource( 7 ) text = "0" align = 2 valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="DefSprite" type="Sprite" parent="."] position = Vector2( 24, 152 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 192, 416, 32, 32 ) [node name="DefBackground" type="ColorRect" parent="DefSprite"] margin_left = 24.0 margin_top = -8.0 margin_right = 96.0 margin_bottom = 8.0 color = Color( 0.403922, 0.403922, 0.403922, 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="DefLabel" type="Label" parent="DefSprite/DefBackground"] margin_right = 72.0 margin_bottom = 16.0 custom_fonts/font = SubResource( 8 ) text = "10" align = 2 valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="AtkSprite" type="Sprite" parent="."] position = Vector2( 24, 120 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 192, 384, 32, 32 ) [node name="AtkBackground" type="ColorRect" parent="AtkSprite"] margin_left = 24.0 margin_top = -8.0 margin_right = 96.0 margin_bottom = 8.0 color = Color( 0.403922, 0.403922, 0.403922, 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="AtkLabel" type="Label" parent="AtkSprite/AtkBackground"] margin_right = 72.0 margin_bottom = 16.0 custom_fonts/font = SubResource( 9 ) text = "10" align = 2 valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="HpSprite" type="Sprite" parent="."] position = Vector2( 24, 88 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 96, 416, 32, 32 ) [node name="HpBackground" type="ColorRect" parent="HpSprite"] margin_left = 24.0 margin_top = -8.0 margin_right = 96.0 margin_bottom = 8.0 color = Color( 0.403922, 0.403922, 0.403922, 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="HpLabel" type="Label" parent="HpSprite/HpBackground"] margin_right = 72.0 margin_bottom = 16.0 custom_fonts/font = SubResource( 10 ) text = "1000" align = 2 valign = 1 __meta__ = { "_edit_use_anchors_": false } [connection signal="pressed" from="ItemBackground/SaveGameButton" to="ItemBackground/SaveGameButton" method="_on_SaveGameButton_pressed"] [connection signal="pressed" from="ItemBackground/LoadGameButton" to="ItemBackground/LoadGameButton" method="_on_LoadGameButton_pressed"]