From: Alma Dejus Date: Tue, 28 Nov 2023 12:42:11 +0000 (+0100) Subject: small changes - Alma och Malin X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=db36968bace9255ede1c177e0f6aca165c54755e;p=TDDC76_proj.git small changes - Alma och Malin --- diff --git a/src/Menus.cc b/src/Menus.cc index 589dc58..1e9ad4c 100644 --- a/src/Menus.cc +++ b/src/Menus.cc @@ -338,7 +338,7 @@ void Pause_menu::handle_input(sf::Event& event) // Scoreboard menu -------------------------------------------- -Scoreboard_menu::Scoreboard_menu() : /*texture{},*/ texture2{}, /*sprite{},*/ menu{false}, exit_game{false}, +Scoreboard_menu::Scoreboard_menu() : texture{}, texture2{}, sprite{}, menu{false}, exit_game{false}, startmenutext{}, quittext{}, mouse_r{}, mouse_l{}, font{}, menu_index{1} { texture.loadFromFile("assets/scoreboard.png"); diff --git a/src/States.h b/src/States.h index c8ab49f..978ed84 100644 --- a/src/States.h +++ b/src/States.h @@ -125,9 +125,9 @@ public: void render(sf::RenderWindow& window) const override; void handle_input(sf::Event& event) override; private: - /*sf::Texture texture;*/ + sf::Texture texture; sf::Texture texture2; - /*sf::Sprite sprite;*/ + sf::Sprite sprite; sf::Sprite mouse_l; sf::Sprite mouse_r; sf::Text startmenutext;