The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'! https://forums.lestoria.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
AdventuresInLestoria/Crawler/Theme.h

34 lines
821 B

#pragma once
#include "olcPixelGameEngine.h"
class Theme{
friend class Menu;
std::string displayName;
std::string imgPath;
bool tiled=true;
Pixel buttonCol,highlightCol;
Decal*background;
public:
inline Theme(){}
inline Theme(std::string displayName,std::string imgPath,bool tiled,Pixel buttonCol,Pixel highlightCol,Decal*background=nullptr)
:displayName(displayName),imgPath(imgPath),tiled(tiled),buttonCol(buttonCol),highlightCol(highlightCol),background(background){}
inline Pixel GetButtonCol(){
return buttonCol;
}
inline Pixel GetHighlightCol(){
return highlightCol;
}
inline std::string GetThemeName(){
return displayName;
}
inline bool IsScaled(){
return !tiled;
}
inline bool HasBackground(){
return background!=nullptr;
}
inline Decal*GetBackground(){
return background;
}
};