Skip to content

Commit

Permalink
don't implement Default for MainMenuChoice
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamby777 committed Dec 17, 2023
1 parent 671cebe commit 0c470d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions pets-gd/scenes/battle_engine.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ value = 80.0
show_percentage = false

[node name="Label" type="RichTextLabel" parent="Menu/DualMenu/RightPanel/Margins/InfoBars/ManaBar"]
layout_mode = 0
offset_left = 40.0
offset_right = 496.0
offset_bottom = 66.0
Expand All @@ -249,6 +250,7 @@ fit_content = true
autowrap_mode = 0

[node name="Slash" type="RichTextLabel" parent="Menu/DualMenu/RightPanel/Margins/InfoBars/ManaBar"]
layout_mode = 0
offset_left = 672.0
offset_right = 752.0
offset_bottom = 66.0
Expand All @@ -259,6 +261,7 @@ text = " /"
autowrap_mode = 0

[node name="Max" type="RichTextLabel" parent="Menu/DualMenu/RightPanel/Margins/InfoBars/ManaBar"]
layout_mode = 0
offset_left = 704.0
offset_right = 936.0
offset_bottom = 66.0
Expand All @@ -271,6 +274,7 @@ fit_content = true
autowrap_mode = 0

[node name="Value" type="RichTextLabel" parent="Menu/DualMenu/RightPanel/Margins/InfoBars/ManaBar"]
layout_mode = 0
offset_left = 392.0
offset_right = 616.0
offset_bottom = 66.0
Expand Down
4 changes: 1 addition & 3 deletions pets-lib/src/main_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ use crate::prelude::*;

use num_derive::FromPrimitive;
use num_traits::FromPrimitive;
#[derive(Debug, Default, FromPrimitive)]
#[derive(Debug, FromPrimitive)]
enum MainMenuChoice {
#[default]
Play,

Options,
Credits,
Quit,
Expand Down

0 comments on commit 0c470d3

Please sign in to comment.