Skip to content

Commit

Permalink
Put skills tab first
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Dec 5, 2024
1 parent 35b16d4 commit 87acc51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/hud/family_hud/info_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ pub(super) fn setup(parent: &mut ChildBuilder, tab_commands: &mut Commands, them

for (index, tab) in InfoTab::iter().enumerate() {
let content_entity = match tab {
InfoTab::Skills => parent.spawn(NodeBundle::default()).id(),
InfoTab::Needs => parent
.spawn(NodeBundle {
style: Style {
Expand All @@ -127,7 +128,6 @@ pub(super) fn setup(parent: &mut ChildBuilder, tab_commands: &mut Commands, them
..Default::default()
})
.id(),
InfoTab::Skills => parent.spawn(NodeBundle::default()).id(),
};

tab_commands
Expand All @@ -148,15 +148,15 @@ struct BarNeed(Entity);

#[derive(Component, EnumIter, Clone, Copy, PartialEq)]
enum InfoTab {
Needs,
Skills,
Needs,
}

impl InfoTab {
fn glyph(self) -> &'static str {
match self {
InfoTab::Needs => "📈",
InfoTab::Skills => "💡",
InfoTab::Needs => "📈",
}
}
}

0 comments on commit 87acc51

Please sign in to comment.