Initial character select implementation
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dq1gtd55p04do"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dq1gtd55p04do"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dieoh0r7a5try" path="res://Textures/Portraits/Pisces.jpg" id="1_id5nf"]
|
||||
[ext_resource type="Script" path="res://Scripts/StageGUI.cs" id="1_wr2m0"]
|
||||
[ext_resource type="Texture2D" uid="uid://2vog2nty4qrj" path="res://Textures/wheel.png" id="4_3jyfi"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ptfpl"]
|
||||
resource_name = "Rollover"
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_05shj"]
|
||||
_data = {
|
||||
"Rollover": SubResource("Animation_ptfpl")
|
||||
}
|
||||
|
||||
[node name="StageGUI" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -13,6 +23,7 @@ offset_right = -59.0
|
||||
offset_bottom = -36.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_wr2m0")
|
||||
|
||||
[node name="Placeholder1" type="ColorRect" parent="."]
|
||||
custom_minimum_size = Vector2(410, 1080)
|
||||
@@ -41,15 +52,48 @@ grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
color = Color(1, 0.447059, 1, 1)
|
||||
|
||||
[node name="P1_Portrait" type="TextureRect" parent="."]
|
||||
[node name="CharacterSelect" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="CharacterSelect"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_05shj")
|
||||
}
|
||||
|
||||
[node name="Wheel" type="TextureRect" parent="CharacterSelect"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 48.0
|
||||
offset_top = 71.0
|
||||
offset_right = 349.0
|
||||
offset_bottom = 386.0
|
||||
texture = ExtResource("4_3jyfi")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Wheel2" type="TextureRect" parent="CharacterSelect"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 1570.0
|
||||
offset_top = 84.0
|
||||
offset_right = 1871.0
|
||||
offset_bottom = 399.0
|
||||
texture = ExtResource("4_3jyfi")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="P1_Portrait" type="TextureRect" parent="CharacterSelect"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 30.0
|
||||
offset_top = 378.0
|
||||
offset_top = 400.0
|
||||
offset_right = -722.0
|
||||
offset_bottom = 378.0
|
||||
offset_bottom = 400.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
scale = Vector2(0.3, 0.3)
|
||||
@@ -57,17 +101,27 @@ texture = ExtResource("1_id5nf")
|
||||
expand_mode = 1
|
||||
flip_h = true
|
||||
|
||||
[node name="P2_Portrait" type="TextureRect" parent="."]
|
||||
[node name="P2_Portrait" type="TextureRect" parent="CharacterSelect"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 1545.0
|
||||
offset_top = 404.0
|
||||
offset_top = 400.0
|
||||
offset_right = 793.0
|
||||
offset_bottom = 404.0
|
||||
offset_bottom = 400.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
scale = Vector2(0.3, 0.3)
|
||||
texture = ExtResource("1_id5nf")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Button" type="Button" parent="CharacterSelect"]
|
||||
layout_mode = 0
|
||||
offset_left = 64.0
|
||||
offset_top = 774.0
|
||||
offset_right = 336.0
|
||||
offset_bottom = 889.0
|
||||
text = "Character select"
|
||||
|
||||
[connection signal="pressed" from="CharacterSelect/Button" to="." method="OnCharacterSelect"]
|
||||
|
||||
Reference in New Issue
Block a user