175 lines
4.8 KiB
Text
175 lines
4.8 KiB
Text
[gd_scene load_steps=11 format=3 uid="uid://ckij5rkss4ds2"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/ui.gd" id="1_ootcf"]
|
|
[ext_resource type="FontFile" uid="uid://c53kogtyjwsss" path="res://assets/fonts/PixelOperator8-Bold.ttf" id="1_qrd6w"]
|
|
[ext_resource type="Texture2D" uid="uid://bped01tsjeycn" path="res://assets/sprites/coin.png" id="2_ybo8g"]
|
|
[ext_resource type="FontFile" uid="uid://dbjl1e6kdxpl6" path="res://assets/fonts/PixelOperator8.ttf" id="3_7c0yq"]
|
|
[ext_resource type="Texture2D" uid="uid://b8cmjj8vq3r8d" path="res://assets/sprites/knight.png" id="3_rypq5"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_uwkun"]
|
|
bg_color = Color(0.124085, 0.661174, 0.816135, 1)
|
|
border_width_left = 4
|
|
border_width_top = 4
|
|
border_width_right = 4
|
|
border_width_bottom = 4
|
|
border_color = Color(0, 0, 0, 1)
|
|
corner_radius_top_left = 8
|
|
corner_radius_top_right = 8
|
|
corner_radius_bottom_right = 8
|
|
corner_radius_bottom_left = 8
|
|
shadow_size = 13
|
|
shadow_offset = Vector2(0, 4.2)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8y3hb"]
|
|
bg_color = Color(0.197273, 0.557602, 0.40846, 1)
|
|
border_width_left = 2
|
|
border_width_top = 2
|
|
border_width_right = 2
|
|
border_width_bottom = 2
|
|
border_color = Color(0.00184107, 0.00184107, 0.00184107, 1)
|
|
corner_radius_top_left = 18
|
|
corner_radius_top_right = 18
|
|
corner_radius_bottom_right = 18
|
|
corner_radius_bottom_left = 18
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_b1xc8"]
|
|
atlas = ExtResource("3_rypq5")
|
|
region = Rect2(8, 8, 15, 21)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3l4nn"]
|
|
corner_radius_top_left = 6
|
|
corner_radius_top_right = 6
|
|
corner_radius_bottom_right = 6
|
|
corner_radius_bottom_left = 6
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hl771"]
|
|
atlas = ExtResource("2_ybo8g")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[node name="UI" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -5.0
|
|
offset_top = -2.0
|
|
offset_right = -5.0
|
|
offset_bottom = -2.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_ootcf")
|
|
|
|
[node name="PlayerInfoBox" type="Panel" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.021
|
|
anchor_top = 0.026
|
|
anchor_right = 0.021
|
|
anchor_bottom = 0.026
|
|
offset_left = -0.192001
|
|
offset_top = 0.152
|
|
offset_right = 349.808
|
|
offset_bottom = 102.152
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_uwkun")
|
|
|
|
[node name="UsernameText" type="Label" parent="PlayerInfoBox"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.286
|
|
anchor_top = 0.167
|
|
anchor_right = 0.68
|
|
anchor_bottom = 0.49
|
|
offset_left = -0.100006
|
|
offset_top = -0.0340004
|
|
offset_bottom = 0.0200005
|
|
theme_override_fonts/font = ExtResource("1_qrd6w")
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "ItsDrike"
|
|
vertical_alignment = 1
|
|
|
|
[node name="AvatarFrame" type="Panel" parent="PlayerInfoBox"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.069
|
|
anchor_top = 0.113
|
|
anchor_right = 0.24
|
|
anchor_bottom = 0.799
|
|
offset_left = -0.150002
|
|
offset_top = -0.026001
|
|
offset_bottom = 0.0019989
|
|
grow_vertical = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_8y3hb")
|
|
|
|
[node name="Avatar" type="TextureRect" parent="PlayerInfoBox/AvatarFrame"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.133
|
|
anchor_top = 0.057
|
|
anchor_right = 0.867
|
|
anchor_bottom = 0.971
|
|
offset_left = 0.02
|
|
offset_top = 0.00999975
|
|
offset_right = -0.0200043
|
|
offset_bottom = 0.0299911
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
texture = SubResource("AtlasTexture_b1xc8")
|
|
expand_mode = 5
|
|
|
|
[node name="CoinFrame" type="Panel" parent="PlayerInfoBox"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.68
|
|
anchor_top = 0.137
|
|
anchor_right = 0.949
|
|
anchor_bottom = 0.431
|
|
offset_top = 0.0259991
|
|
offset_right = -0.150024
|
|
offset_bottom = 0.0379982
|
|
grow_horizontal = 0
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_3l4nn")
|
|
|
|
[node name="CoinIcon" type="TextureRect" parent="PlayerInfoBox/CoinFrame"]
|
|
layout_mode = 1
|
|
anchors_preset = 4
|
|
anchor_top = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = 4.0
|
|
offset_top = -15.0
|
|
offset_right = 32.0
|
|
offset_bottom = 14.0
|
|
grow_vertical = 2
|
|
texture = SubResource("AtlasTexture_hl771")
|
|
expand_mode = 1
|
|
|
|
[node name="CoinAmountText" type="Label" parent="PlayerInfoBox/CoinFrame"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.426
|
|
anchor_top = 0.15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.5
|
|
offset_left = -4.044
|
|
offset_top = -4.5
|
|
offset_bottom = 15.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 2
|
|
theme_override_fonts/font = ExtResource("3_7c0yq")
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "?"
|
|
vertical_alignment = 1
|
|
|
|
[node name="ExperienceProgress" type="ProgressBar" parent="PlayerInfoBox"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.286
|
|
anchor_top = 0.5
|
|
anchor_right = 0.949
|
|
anchor_bottom = 0.765
|
|
offset_left = -0.100006
|
|
offset_right = -0.150024
|
|
offset_bottom = -0.0300064
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_fonts/font = ExtResource("3_7c0yq")
|
|
value = 25.0
|