feat: Add shop button to HUD (#34)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
use crate::features::inventory;
|
|
||||||
use crate::features::phase::components::TimerSettings;
|
use crate::features::phase::components::TimerSettings;
|
||||||
use crate::features::savegame::messages::SavegameDumpMessage;
|
use crate::features::savegame::messages::SavegameDumpMessage;
|
||||||
|
use crate::features::{inventory, shop};
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use components::*;
|
use components::*;
|
||||||
use ui::*;
|
use ui::*;
|
||||||
@@ -41,6 +41,16 @@ fn setup(mut commands: Commands) {
|
|||||||
children![
|
children![
|
||||||
text_with_component(TextType::Phase, "...", 16.0, Color::WHITE),
|
text_with_component(TextType::Phase, "...", 16.0, Color::WHITE),
|
||||||
text_with_component(TextType::Timer, "...", 16.0, Color::WHITE),
|
text_with_component(TextType::Timer, "...", 16.0, Color::WHITE),
|
||||||
|
button(
|
||||||
|
shop::components::ButtonType::ShopOpen,
|
||||||
|
ButtonVariant::Secondary,
|
||||||
|
Node {
|
||||||
|
padding: UiRect::all(px(10)),
|
||||||
|
..default()
|
||||||
|
},
|
||||||
|
"Shop",
|
||||||
|
16.0
|
||||||
|
),
|
||||||
button(
|
button(
|
||||||
inventory::components::ButtonType::InventoryOpen,
|
inventory::components::ButtonType::InventoryOpen,
|
||||||
ButtonVariant::Secondary,
|
ButtonVariant::Secondary,
|
||||||
|
|||||||
Reference in New Issue
Block a user