From d1cebcca2018ed4ef47ad125e45aafd018a2ab2e Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Fri, 10 Jan 2025 14:43:42 +0100 Subject: make format --- game/menus/shop/ShopMenuScene.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'game/menus/shop/ShopMenuScene.cpp') 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 #include #include -#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( 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( 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( 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( 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; } -- cgit v1.2.3