aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/BannerSubScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-03 21:02:48 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-03 21:02:48 +0100
commit5ae4e3f0e3ff1d111eaea54b7b0a0788203d9d72 (patch)
treeabd7e7965eaff19c76daecb8a3f4514106562a09 /game/mainmenu/BannerSubScene.cpp
parent209957a36c19968292032ead5974a695b22ffceb (diff)
bug fix
Diffstat (limited to 'game/mainmenu/BannerSubScene.cpp')
-rw-r--r--game/mainmenu/BannerSubScene.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/game/mainmenu/BannerSubScene.cpp b/game/mainmenu/BannerSubScene.cpp
index ed093aa..ba4c126 100644
--- a/game/mainmenu/BannerSubScene.cpp
+++ b/game/mainmenu/BannerSubScene.cpp
@@ -33,6 +33,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{.text_color = Color::WHITE,}, data.banner_title_offset + MainMenuConfig::FONTOFFSET, data.banner_title);
+ menu_banner.add_component<Text>( size, MainMenuConfig::FONT, Text::Data{
+ .world_space = true,
+ .text_color = Color::WHITE,
+ }, data.banner_title_offset + MainMenuConfig::FONTOFFSET, data.banner_title);
}