Skip to content

Commit

Permalink
Revert changes that borked the title screen.
Browse files Browse the repository at this point in the history
This reverts commit 9782259.
  • Loading branch information
Lamby777 committed Aug 11, 2024
1 parent 9782259 commit 15f59a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
14 changes: 5 additions & 9 deletions pets-gd/scenes/title_screen.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=14 format=3 uid="uid://ben252ibtpchc"]
[gd_scene load_steps=13 format=3 uid="uid://ben252ibtpchc"]

[ext_resource type="AudioStream" uid="uid://bu1akc5wvo0wo" path="res://assets/music/menu/titlebreeze.ogg" id="1_06t4m"]
[ext_resource type="Theme" uid="uid://b4to5dpqntd2r" path="res://themes/theme_deft.tres" id="3_gc66u"]
Expand Down Expand Up @@ -42,12 +42,6 @@ _data = {
"open": SubResource("Animation_4x3vx")
}

[sub_resource type="GDScript" id="GDScript_0mk7k"]
script/source = "extends ChoiceAgent

func _ready():
enable()"

[sub_resource type="ShaderMaterial" id="ShaderMaterial_tovj7"]
shader = ExtResource("4_gkpis")
shader_parameter/opacity = 0.0
Expand Down Expand Up @@ -576,8 +570,6 @@ offset_right = 104.0
offset_bottom = 360.0

[node name="ChoiceAgent" type="ChoiceAgent" parent="MoveRight/MenuChoices"]
disabled = true
script = SubResource("GDScript_0mk7k")

[node name="Play" type="RichTextLabel" parent="MoveRight/MenuChoices"]
clip_contents = false
Expand All @@ -588,6 +580,7 @@ focus_neighbor_top = NodePath("../Quit")
focus_neighbor_bottom = NodePath("../Options")
focus_next = NodePath("../Options")
focus_previous = NodePath("../Quit")
focus_mode = 2
theme_override_colors/default_color = Color(0.803922, 0.839216, 0.956863, 1)
theme_override_font_sizes/normal_font_size = 80
bbcode_enabled = true
Expand All @@ -603,6 +596,7 @@ focus_neighbor_top = NodePath("../Play")
focus_neighbor_bottom = NodePath("../Credits")
focus_next = NodePath("../Credits")
focus_previous = NodePath("../Play")
focus_mode = 2
theme_override_colors/default_color = Color(0.803922, 0.839216, 0.956863, 1)
theme_override_font_sizes/normal_font_size = 80
bbcode_enabled = true
Expand All @@ -618,6 +612,7 @@ focus_neighbor_top = NodePath("../Options")
focus_neighbor_bottom = NodePath("../Quit")
focus_next = NodePath("../Quit")
focus_previous = NodePath("../Options")
focus_mode = 2
theme_override_colors/default_color = Color(0.803922, 0.839216, 0.956863, 1)
theme_override_font_sizes/normal_font_size = 80
bbcode_enabled = true
Expand All @@ -633,6 +628,7 @@ focus_neighbor_top = NodePath("../Credits")
focus_neighbor_bottom = NodePath("../Play")
focus_next = NodePath("../Play")
focus_previous = NodePath("../Credits")
focus_mode = 2
theme_override_colors/default_color = Color(0.803922, 0.839216, 0.956863, 1)
theme_override_font_sizes/normal_font_size = 80
bbcode_enabled = true
Expand Down
2 changes: 0 additions & 2 deletions pets-lib/src/title_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ impl INode2D for TitleScreen {
let callable = self.base().callable("on_save_file_picked");
self.save_choices
.connect("selection_confirmed".into(), callable);

self.choices.bind_mut().enable();
}

fn input(&mut self, event: Gd<InputEvent>) {
Expand Down
3 changes: 2 additions & 1 deletion pets-lib/src/util/choices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ pub struct ChoiceAgent {
impl ChoiceAgent {
fn _tween_choice(&self, is_picked: bool, node: Gd<Control>) {
if !node.is_inside_tree() {
panic!("node to tween is not inside tree");
godot_print!("node to tween is not inside tree, returning");
return;
}

let target =
Expand Down

0 comments on commit 15f59a4

Please sign in to comment.