diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 14:40:37 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 14:40:37 +0100 |
commit | 3b6081d03300d353434fd4f6e91237fc8f1a4390 (patch) | |
tree | 4c7b75f641e36de0c8aea933ea2cbdb213c35f0b /game/menus/mainmenu/CreditsSubScene.cpp | |
parent | aa8bf26452157f81f72b6d6759e461ff2ca24568 (diff) |
added credit window
Diffstat (limited to 'game/menus/mainmenu/CreditsSubScene.cpp')
-rw-r--r-- | game/menus/mainmenu/CreditsSubScene.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/game/menus/mainmenu/CreditsSubScene.cpp b/game/menus/mainmenu/CreditsSubScene.cpp index 9a49257..df4616e 100644 --- a/game/menus/mainmenu/CreditsSubScene.cpp +++ b/game/menus/mainmenu/CreditsSubScene.cpp @@ -1,7 +1,6 @@ #include "CreditsSubScene.h" #include "CreditsSubScript.h" -#include "EndGameSubScript.h" #include "../../Config.h" #include "../ButtonSubScene.h" @@ -19,7 +18,7 @@ using namespace std; void CreditsSubScene::create(Scene & scn) { - const std::string TAG = "end_game_tag"; + const std::string TAG = "credits_tag"; GameObject script = scn.new_object("script"); script.add_component<BehaviorScript>().set_script<CreditsSubScript>(TAG); @@ -30,7 +29,7 @@ void CreditsSubScene::create(Scene & scn) { FloatingWindowSubScene::Data { .group_tag = TAG, .width = 500, - .offset = {0, -50}, + .offset = {150, -50}, .width_middle_offset = -2, } ); @@ -45,7 +44,7 @@ void CreditsSubScene::create(Scene & scn) { .world_space = false, .text_color = Color::WHITE, }, - vec2 {0, -207} + FONTOFFSET, TITEL_STRING + vec2 {150, -207} + FONTOFFSET, TITEL_STRING ); // Buttons @@ -56,9 +55,9 @@ void CreditsSubScene::create(Scene & scn) { ButtonSubScene::Data { .text = "Back", .text_width = 150, - .position = {-button_position.x, button_position.y}, - //.script_type = ButtonSubScene::ScriptSelect::REPLAY, - //.button_type = ButtonSubScene::ButtonSelect::BACK, + .position = {-button_position.x+150, button_position.y}, + .script_type = ButtonSubScene::ScriptSelect::CREDITS_BACK, + .button_type = ButtonSubScene::ButtonSelect::BACK, .scale = 0.6, .worldspace = false, .tag = TAG, |