15 std::vector<sf::Sprite> imgs;
21 const static int MAX_VERT = 100;
24 std::vector<sf::Texture>* textures;
25 std::vector<sf::Sprite>* sprites;
26 std::vector<std::string>* filepaths;
31 void setupButton(sf::Text& button,
const std::string& label,
float x,
float y);
32 void setupInventory(sf::Sprite& img,
const sf::Texture& texture,
float x,
float y,
float size);
33 void setPlayerInventory(
Player* ply, std::vector<sf::Texture>* textures, std::vector<sf::Sprite>* sprites, std::vector<std::string>* filepaths);
35 void draw(sf::RenderWindow& window);
PauseMenuState * menu
New function to set menu reference.
Definition InventoryState.h:40
void setPlayerInventory(Player *ply, std::vector< sf::Texture > *textures, std::vector< sf::Sprite > *sprites, std::vector< std::string > *filepaths)
Definition InventoryState.cpp:24
void draw(sf::RenderWindow &window)
Definition InventoryState.cpp:127
void setMenuReference(PauseMenuState *menuPtr)
Definition InventoryState.cpp:166
bool isSoundOn() const
Definition InventoryState.cpp:160
void handleClick(sf::RenderWindow &window)
handles the clicks
Definition InventoryState.cpp:77
void toggleSound()
Definition InventoryState.cpp:140
void setupInventory(sf::Sprite &img, const sf::Texture &texture, float x, float y, float size)
sets the texture and position of a sprite, and scales it
Definition InventoryState.cpp:58
InventoryState()
Please note this is a Very old version of the options Needs to work with the new audio manager class.
Definition InventoryState.cpp:11
void setMusicReference(sf::Music &music)
Definition InventoryState.cpp:163
void setupButton(sf::Text &button, const std::string &label, float x, float y)
sets up the buttons
Definition InventoryState.cpp:69