diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-10 14:44:57 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-10 14:44:57 +0100 |
commit | 433c840c14782d84b4b95265b3e6f7a1f67ade3b (patch) | |
tree | 3c6cfd65f07163eedd9fdb28420b13cff1874d35 /game/menus/shop/ShopMenuScene.cpp | |
parent | 5203994b55aa51d5034c30001e0dac66efe2f14b (diff) |
Make format
Diffstat (limited to 'game/menus/shop/ShopMenuScene.cpp')
-rw-r--r-- | game/menus/shop/ShopMenuScene.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/game/menus/shop/ShopMenuScene.cpp b/game/menus/shop/ShopMenuScene.cpp index fc7323b..641352c 100644 --- a/game/menus/shop/ShopMenuScene.cpp +++ b/game/menus/shop/ShopMenuScene.cpp @@ -9,10 +9,10 @@ #include "menus/shop/ShopLoadScript.h" #include "types.h" +#include "Shopconfig.h" #include <crepe/api/Camera.h> #include <crepe/api/Sprite.h> #include <crepe/api/Text.h> -#include "Shopconfig.h" using namespace crepe; using namespace std; @@ -58,8 +58,6 @@ void ShopMenuScene::load_scene() { } ); - - const float CHAR_SIZE = 16; const float CHAR_SIZE_COIN = 16; crepe::vec2 size; @@ -75,7 +73,9 @@ void ShopMenuScene::load_scene() { ); const string BULLETS_STRING = "BULLETS"; - size = {CHAR_SIZE*BULLETS_STRING.size(), (CHAR_SIZE*BULLETS_STRING.size() / BULLETS_STRING.size()) * 2}; + size + = {CHAR_SIZE * BULLETS_STRING.size(), + (CHAR_SIZE * BULLETS_STRING.size() / BULLETS_STRING.size()) * 2}; shop_item_bullet.add_component<Text>( size, FONT, @@ -95,7 +95,9 @@ void ShopMenuScene::load_scene() { ); const string BULLETS_GOLD_STRING = "0"; - size = {CHAR_SIZE_COIN*BULLETS_GOLD_STRING.size(), (CHAR_SIZE_COIN*BULLETS_GOLD_STRING.size() / BULLETS_GOLD_STRING.size()) * 2}; + size + = {CHAR_SIZE_COIN * BULLETS_GOLD_STRING.size(), + (CHAR_SIZE_COIN * BULLETS_GOLD_STRING.size() / BULLETS_GOLD_STRING.size()) * 2}; shop_item_bullet.add_component<Text>( size, FONT, Text::Data { @@ -116,7 +118,9 @@ void ShopMenuScene::load_scene() { ); const string BUBBLE_STRING = "BUBBLE"; - size = {CHAR_SIZE*BUBBLE_STRING.size(), (CHAR_SIZE*BUBBLE_STRING.size() / BUBBLE_STRING.size()) * 2}; + size + = {CHAR_SIZE * BUBBLE_STRING.size(), + (CHAR_SIZE * BUBBLE_STRING.size() / BUBBLE_STRING.size()) * 2}; shop_item_bubble.add_component<Text>( size, FONT, Text::Data { @@ -135,7 +139,9 @@ void ShopMenuScene::load_scene() { ); const string BUBBLE_GOLD_STRING = "1000"; - size = {CHAR_SIZE_COIN*BUBBLE_GOLD_STRING.size(), (CHAR_SIZE_COIN*BUBBLE_GOLD_STRING.size() / BUBBLE_GOLD_STRING.size()) * 2}; + size + = {CHAR_SIZE_COIN * BUBBLE_GOLD_STRING.size(), + (CHAR_SIZE_COIN * BUBBLE_GOLD_STRING.size() / BUBBLE_GOLD_STRING.size()) * 2}; shop_item_bubble.add_component<Text>( size, FONT, Text::Data { @@ -205,7 +211,6 @@ void ShopMenuScene::load_scene() { .btn_side_color = ButtonSubScene::ButtonSideColor::PURPLE } ); - } string ShopMenuScene::get_name() const { return SHOP_SCENE; } |