waited far too long for an initial commit but here we are

This commit is contained in:
2023-11-08 14:28:55 +11:00
commit 0427a58635
299 changed files with 10191 additions and 0 deletions

93
Scenes/UI/card_hand.tscn Normal file
View File

@ -0,0 +1,93 @@
[gd_scene load_steps=4 format=3 uid="uid://dixtx38u4jhd7"]
[ext_resource type="Script" path="res://Scripts/card_hand.gd" id="1_2cfmh"]
[ext_resource type="Texture2D" uid="uid://dlqnhs8or4ik2" path="res://Assets/Textures/cardhand.png" id="1_d5oo3"]
[ext_resource type="Texture2D" uid="uid://buf8t5gc7iw3a" path="res://Assets/TextureAtlases/rarityborders.tres" id="3_pclfx"]
[node name="Node2D" type="Node2D" node_paths=PackedStringArray("rarity_sprite", "title_text", "damage_text_text", "damage_text", "fire_rate_text_text", "fire_rate_text", "range_text_text", "range_text")]
script = ExtResource("1_2cfmh")
rarity_sprite = NodePath("Sprite2D2")
title_text = NodePath("Title")
damage_text_text = NodePath("DamageText")
damage_text = NodePath("Damage")
fire_rate_text_text = NodePath("FireRateText")
fire_rate_text = NodePath("FireRate")
range_text_text = NodePath("RangeText")
range_text = NodePath("Range")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
position = Vector2(96, 96)
scale = Vector2(3, 3)
texture = ExtResource("1_d5oo3")
[node name="Sprite2D2" type="Sprite2D" parent="."]
texture_filter = 1
position = Vector2(96, 96)
scale = Vector2(3, 3)
texture = ExtResource("3_pclfx")
region_enabled = true
region_rect = Rect2(0, 0, 64, 64)
[node name="Title" type="Label" parent="."]
offset_left = 48.0
offset_top = 20.0
offset_right = 150.0
offset_bottom = 46.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "spider queen"
horizontal_alignment = 1
[node name="DamageText" type="Label" parent="."]
offset_left = 30.0
offset_top = 65.0
offset_right = 132.0
offset_bottom = 91.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Damage: "
horizontal_alignment = 1
[node name="Damage" type="Label" parent="."]
offset_left = 78.0
offset_top = 65.0
offset_right = 180.0
offset_bottom = 91.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "45"
horizontal_alignment = 1
[node name="FireRateText" type="Label" parent="."]
offset_left = 31.0
offset_top = 89.0
offset_right = 133.0
offset_bottom = 115.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Fire Rate: "
horizontal_alignment = 1
[node name="FireRate" type="Label" parent="."]
offset_left = 77.0
offset_top = 90.0
offset_right = 179.0
offset_bottom = 116.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "3"
horizontal_alignment = 1
[node name="RangeText" type="Label" parent="."]
offset_left = 44.0
offset_top = 111.0
offset_right = 146.0
offset_bottom = 137.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Range: "
horizontal_alignment = 1
[node name="Range" type="Label" parent="."]
offset_left = 87.0
offset_top = 111.0
offset_right = 189.0
offset_bottom = 137.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "55"
horizontal_alignment = 1

39
Scenes/UI/chatbox.tscn Normal file
View File

@ -0,0 +1,39 @@
[gd_scene load_steps=2 format=3 uid="uid://ddmg342ff2qaq"]
[ext_resource type="Script" path="res://Scripts/chatbox.gd" id="1_k3g22"]
[node name="Chatbox" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("1_k3g22")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = -1
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 15.0
offset_top = -210.0
offset_right = 350.0
offset_bottom = -10.0
grow_vertical = 0
mouse_filter = 2
alignment = 2
[node name="RichTextLabel" type="RichTextLabel" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
mouse_filter = 2
scroll_following = true
[node name="LineEdit" type="LineEdit" parent="VBoxContainer"]
visible = false
layout_mode = 2
mouse_filter = 2
context_menu_enabled = false
selecting_enabled = false

View File

@ -0,0 +1,558 @@
[gd_scene load_steps=11 format=3 uid="uid://dko38egcaxubd"]
[ext_resource type="Script" path="res://Scripts/lifebar_segment.gd" id="1_dvlcq"]
[ext_resource type="Texture2D" uid="uid://0ey8r48lgjw1" path="res://Assets/Textures/lifebar_pip.png" id="1_pianw"]
[sub_resource type="Animation" id="Animation_i18y2"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect6:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 4)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("TextureRect6:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("TextureRect6:rotation")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("TextureRect4:position")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("TextureRect4:rotation")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("TextureRect4:modulate")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/6/type = "value"
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/path = NodePath("TextureRect5:position")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-4, 4)]
}
tracks/7/type = "value"
tracks/7/imported = false
tracks/7/enabled = true
tracks/7/path = NodePath("TextureRect5:rotation")
tracks/7/interp = 1
tracks/7/loop_wrap = true
tracks/7/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/8/type = "value"
tracks/8/imported = false
tracks/8/enabled = true
tracks/8/path = NodePath("TextureRect5:modulate")
tracks/8/interp = 1
tracks/8/loop_wrap = true
tracks/8/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/9/type = "value"
tracks/9/imported = false
tracks/9/enabled = true
tracks/9/path = NodePath("TextureRect2:position")
tracks/9/interp = 1
tracks/9/loop_wrap = true
tracks/9/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, -4)]
}
tracks/10/type = "value"
tracks/10/imported = false
tracks/10/enabled = true
tracks/10/path = NodePath("TextureRect2:rotation")
tracks/10/interp = 1
tracks/10/loop_wrap = true
tracks/10/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/11/type = "value"
tracks/11/imported = false
tracks/11/enabled = true
tracks/11/path = NodePath("TextureRect2:modulate")
tracks/11/interp = 1
tracks/11/loop_wrap = true
tracks/11/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/12/type = "value"
tracks/12/imported = false
tracks/12/enabled = true
tracks/12/path = NodePath("TextureRect3:position")
tracks/12/interp = 1
tracks/12/loop_wrap = true
tracks/12/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-4, 0)]
}
tracks/13/type = "value"
tracks/13/imported = false
tracks/13/enabled = true
tracks/13/path = NodePath("TextureRect3:rotation")
tracks/13/interp = 1
tracks/13/loop_wrap = true
tracks/13/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/14/type = "value"
tracks/14/imported = false
tracks/14/enabled = true
tracks/14/path = NodePath("TextureRect3:modulate")
tracks/14/interp = 1
tracks/14/loop_wrap = true
tracks/14/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/15/type = "value"
tracks/15/imported = false
tracks/15/enabled = true
tracks/15/path = NodePath("TextureRect:position")
tracks/15/interp = 1
tracks/15/loop_wrap = true
tracks/15/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-4, -4)]
}
tracks/16/type = "value"
tracks/16/imported = false
tracks/16/enabled = true
tracks/16/path = NodePath("TextureRect:rotation")
tracks/16/interp = 1
tracks/16/loop_wrap = true
tracks/16/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/17/type = "value"
tracks/17/imported = false
tracks/17/enabled = true
tracks/17/path = NodePath("TextureRect:modulate")
tracks/17/interp = 1
tracks/17/loop_wrap = true
tracks/17/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_a6tv4"]
resource_name = "lose1"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect6:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, 4), Vector2(4.76837e-07, 9)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("TextureRect6:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 0.567662]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("TextureRect6:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="Animation" id="Animation_t2ym0"]
resource_name = "lose2"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect4:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(2, 6)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("TextureRect4:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, -0.933911]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("TextureRect4:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="Animation" id="Animation_ueyfw"]
resource_name = "lose3"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect5:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(-4, 4), Vector2(-3, 9)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("TextureRect5:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, -1.1286]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("TextureRect5:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="Animation" id="Animation_r4h4h"]
resource_name = "lose4"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect2:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, -4), Vector2(4, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("TextureRect2:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 0.582677]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("TextureRect2:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="Animation" id="Animation_defuy"]
resource_name = "lose5"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect3:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(-4, 0), Vector2(-1, 4)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("TextureRect3:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, -0.909425]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("TextureRect3:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="Animation" id="Animation_rctjq"]
resource_name = "lose6"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(-4, -4), Vector2(1, 2)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("TextureRect:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, -1.01031]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("TextureRect:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_1s8yp"]
_data = {
"RESET": SubResource("Animation_i18y2"),
"lose1": SubResource("Animation_a6tv4"),
"lose2": SubResource("Animation_t2ym0"),
"lose3": SubResource("Animation_ueyfw"),
"lose4": SubResource("Animation_r4h4h"),
"lose5": SubResource("Animation_defuy"),
"lose6": SubResource("Animation_rctjq")
}
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 0
script = ExtResource("1_dvlcq")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_1s8yp")
}
[node name="AnimationPlayer2" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_1s8yp")
}
[node name="AnimationPlayer3" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_1s8yp")
}
[node name="AnimationPlayer4" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_1s8yp")
}
[node name="AnimationPlayer5" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_1s8yp")
}
[node name="AnimationPlayer6" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_1s8yp")
}
[node name="TextureRect" type="TextureRect" parent="."]
texture_filter = 1
layout_mode = 0
offset_left = -4.0
offset_top = -4.0
offset_right = -1.0
offset_bottom = -1.0
texture = ExtResource("1_pianw")
[node name="TextureRect2" type="TextureRect" parent="."]
texture_filter = 1
layout_mode = 0
offset_top = -4.0
offset_right = 3.0
offset_bottom = -1.0
texture = ExtResource("1_pianw")
[node name="TextureRect3" type="TextureRect" parent="."]
texture_filter = 1
layout_mode = 0
offset_left = -4.0
offset_right = -1.0
offset_bottom = 3.0
texture = ExtResource("1_pianw")
[node name="TextureRect4" type="TextureRect" parent="."]
texture_filter = 1
layout_mode = 0
offset_right = 3.0
offset_bottom = 3.0
texture = ExtResource("1_pianw")
[node name="TextureRect5" type="TextureRect" parent="."]
texture_filter = 1
layout_mode = 0
offset_left = -4.0
offset_top = 4.0
offset_right = -1.0
offset_bottom = 7.0
texture = ExtResource("1_pianw")
[node name="TextureRect6" type="TextureRect" parent="."]
texture_filter = 1
layout_mode = 0
offset_top = 4.0
offset_right = 3.0
offset_bottom = 7.00004
texture = ExtResource("1_pianw")

137
Scenes/UI/lives_bar.tscn Normal file
View File

@ -0,0 +1,137 @@
[gd_scene load_steps=4 format=3 uid="uid://24x18qxqhy0i"]
[ext_resource type="Texture2D" uid="uid://dvy2lvtotaxb3" path="res://Assets/Textures/lifebar_bg.png" id="1_x27cx"]
[ext_resource type="Script" path="res://Scripts/lives_bar.gd" id="2_lqe7s"]
[ext_resource type="PackedScene" uid="uid://dko38egcaxubd" path="res://Scenes/UI/lifebar_segment.tscn" id="3_6hp86"]
[node name="LivesBar" type="TextureRect" node_paths=PackedStringArray("segments")]
texture_filter = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_x27cx")
stretch_mode = 2
script = ExtResource("2_lqe7s")
segments = [NodePath("Control"), NodePath("Control2"), NodePath("Control3"), NodePath("Control4"), NodePath("Control5"), NodePath("Control6"), NodePath("Control7"), NodePath("Control8"), NodePath("Control9"), NodePath("Control10"), NodePath("Control11"), NodePath("Control12"), NodePath("Control13"), NodePath("Control14"), NodePath("Control15"), NodePath("Control16"), NodePath("Control17"), NodePath("Control18"), NodePath("Control19"), NodePath("Control20")]
[node name="Control" parent="." instance=ExtResource("3_6hp86")]
offset_left = 28.0
offset_top = 10.0
offset_right = 28.0
offset_bottom = 10.0
[node name="Control2" parent="." instance=ExtResource("3_6hp86")]
offset_left = 37.0
offset_top = 10.0
offset_right = 37.0
offset_bottom = 10.0
[node name="Control3" parent="." instance=ExtResource("3_6hp86")]
offset_left = 46.0
offset_top = 10.0
offset_right = 46.0
offset_bottom = 10.0
[node name="Control4" parent="." instance=ExtResource("3_6hp86")]
offset_left = 55.0
offset_top = 10.0
offset_right = 55.0
offset_bottom = 10.0
[node name="Control5" parent="." instance=ExtResource("3_6hp86")]
offset_left = 64.0
offset_top = 10.0
offset_right = 64.0
offset_bottom = 10.0
[node name="Control6" parent="." instance=ExtResource("3_6hp86")]
offset_left = 73.0
offset_top = 10.0
offset_right = 73.0
offset_bottom = 10.0
[node name="Control7" parent="." instance=ExtResource("3_6hp86")]
offset_left = 82.0
offset_top = 10.0
offset_right = 82.0
offset_bottom = 10.0
[node name="Control8" parent="." instance=ExtResource("3_6hp86")]
offset_left = 91.0
offset_top = 10.0
offset_right = 91.0
offset_bottom = 10.0
[node name="Control9" parent="." instance=ExtResource("3_6hp86")]
offset_left = 100.0
offset_top = 10.0
offset_right = 100.0
offset_bottom = 10.0
[node name="Control10" parent="." instance=ExtResource("3_6hp86")]
offset_left = 109.0
offset_top = 10.0
offset_right = 109.0
offset_bottom = 10.0
[node name="Control11" parent="." instance=ExtResource("3_6hp86")]
offset_left = 118.0
offset_top = 10.0
offset_right = 118.0
offset_bottom = 10.0
[node name="Control12" parent="." instance=ExtResource("3_6hp86")]
offset_left = 127.0
offset_top = 10.0
offset_right = 127.0
offset_bottom = 10.0
[node name="Control13" parent="." instance=ExtResource("3_6hp86")]
offset_left = 136.0
offset_top = 10.0
offset_right = 136.0
offset_bottom = 10.0
[node name="Control14" parent="." instance=ExtResource("3_6hp86")]
offset_left = 145.0
offset_top = 10.0
offset_right = 145.0
offset_bottom = 10.0
[node name="Control15" parent="." instance=ExtResource("3_6hp86")]
offset_left = 154.0
offset_top = 10.0
offset_right = 154.0
offset_bottom = 10.0
[node name="Control16" parent="." instance=ExtResource("3_6hp86")]
offset_left = 163.0
offset_top = 10.0
offset_right = 163.0
offset_bottom = 10.0
[node name="Control17" parent="." instance=ExtResource("3_6hp86")]
offset_left = 172.0
offset_top = 10.0
offset_right = 172.0
offset_bottom = 10.0
[node name="Control18" parent="." instance=ExtResource("3_6hp86")]
offset_left = 181.0
offset_top = 10.0
offset_right = 181.0
offset_bottom = 10.0
[node name="Control19" parent="." instance=ExtResource("3_6hp86")]
offset_left = 190.0
offset_top = 10.0
offset_right = 190.0
offset_bottom = 10.0
[node name="Control20" parent="." instance=ExtResource("3_6hp86")]
offset_left = 199.0
offset_top = 10.0
offset_right = 199.0
offset_bottom = 10.0

31
Scenes/UI/scoreboard.tscn Normal file
View File

@ -0,0 +1,31 @@
[gd_scene load_steps=3 format=3 uid="uid://dpt3kpixawyby"]
[ext_resource type="Script" path="res://Scripts/scoreboard.gd" id="1_b5vdp"]
[ext_resource type="PackedScene" uid="uid://bhri8mqjbme2t" path="res://Scenes/UI/scoreboard_entry.tscn" id="2_uer0b"]
[node name="Scoreboard" type="PanelContainer"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -157.5
offset_top = -125.0
offset_right = 157.5
offset_bottom = 125.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_b5vdp")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2
alignment = 1
[node name="DummyEntry1" parent="VBoxContainer" instance=ExtResource("2_uer0b")]
layout_mode = 2
[node name="DummyEntry2" parent="VBoxContainer" instance=ExtResource("2_uer0b")]
layout_mode = 2
[node name="DummyEntry3" parent="VBoxContainer" instance=ExtResource("2_uer0b")]
layout_mode = 2

View File

@ -0,0 +1,35 @@
[gd_scene load_steps=4 format=3 uid="uid://bhri8mqjbme2t"]
[ext_resource type="Script" path="res://Scripts/scoreboard_entry.gd" id="1_5xryr"]
[ext_resource type="Texture2D" uid="uid://m4ehy5bahsup" path="res://Assets/Textures/ready.png" id="2_yxtr2"]
[sub_resource type="AtlasTexture" id="AtlasTexture_qhkn8"]
resource_local_to_scene = true
atlas = ExtResource("2_yxtr2")
region = Rect2(0, 0, 32, 32)
[node name="PlayerListEntry" type="HBoxContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_5xryr")
[node name="DisplayName" type="Label" parent="."]
layout_mode = 2
size_flags_horizontal = 3
text = "Dummy Player"
horizontal_alignment = 1
[node name="CharacterName" type="Label" parent="."]
layout_mode = 2
size_flags_horizontal = 3
text = "Character"
horizontal_alignment = 1
[node name="TextureRect" type="TextureRect" parent="."]
layout_mode = 2
size_flags_horizontal = 8
texture = SubResource("AtlasTexture_qhkn8")
stretch_mode = 3