diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-05 14:26:19 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-05 14:26:19 +0100 |
commit | ba170d00586ab261e015cc2febbb43f9aa7ae43e (patch) | |
tree | 4b902f20aa0b10a3ac04ec2c03f46ec3449558d1 /game/mainmenu/BannerSubScene.cpp | |
parent | 5ae4e3f0e3ff1d111eaea54b7b0a0788203d9d72 (diff) |
added hud
Diffstat (limited to 'game/mainmenu/BannerSubScene.cpp')
-rw-r--r-- | game/mainmenu/BannerSubScene.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/game/mainmenu/BannerSubScene.cpp b/game/mainmenu/BannerSubScene.cpp index ba4c126..0659d96 100644 --- a/game/mainmenu/BannerSubScene.cpp +++ b/game/mainmenu/BannerSubScene.cpp @@ -1,5 +1,6 @@ #include "BannerSubScene.h" #include "MainMenuConfig.h" +#include "../Config.h" #include <crepe/api/Sprite.h> @@ -33,9 +34,9 @@ void BannerSubScene::create(Scene & scn,const Data & data){ }); crepe::vec2 size = {data.banner_title_width,(data.banner_title_width/data.banner_title.size())*2}; - menu_banner.add_component<Text>( size, MainMenuConfig::FONT, Text::Data{ + menu_banner.add_component<Text>( size, FONT, Text::Data{ .world_space = true, .text_color = Color::WHITE, - }, data.banner_title_offset + MainMenuConfig::FONTOFFSET, data.banner_title); + }, data.banner_title_offset + FONTOFFSET, data.banner_title); } |