git repos / blockattack-game

commit 7bb13b4e

Poul Sander · 2024-02-25 11:05
7bb13b4e05294abbb87869089b507882e03967c4 patch · browse files
parent 5b5139a91c32b0b4b6e39ec80861aa89ee167219

Add player name to the themes menu

Changed files

M source/code/menudef_themes.cpp before
diff --git a/source/code/menudef_themes.cpp b/source/code/menudef_themes.cpp index 50d6f78..bd82a25 100644 --- a/source/code/menudef_themes.cpp +++ b/source/code/menudef_themes.cpp
@@ -52,6 +52,7 @@ public:
ThemesMenu(SDL_Renderer* screen, const std::string& title, bool submenu) : Menu(screen, title, submenu) {
game = std::make_shared<BlockGameSdl>(globalData.xsize-450,100,&globalData.spriteHolder->GetDataHolder());
+ game->name = "Player 1";
game->putSampleBlocks();
sagoTextSetBlueFont(themeTitle);
}