mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
The SurfaceCollection won't load the files selection.png, bottombar.png or topbar.png from the Default skin if they are missing in the current skin.
This commit is contained in:
@@ -38,8 +38,8 @@ public:
|
||||
~SurfaceCollection();
|
||||
|
||||
void setSkin(const std::string &skin);
|
||||
std::string getSkinFilePath(const std::string &file);
|
||||
static std::string getSkinFilePath(const std::string &skin, const std::string &file);
|
||||
std::string getSkinFilePath(const std::string &file, bool useDefault = true);
|
||||
static std::string getSkinFilePath(const std::string &skin, const std::string &file, bool useDefault = true);
|
||||
static std::string getSkinPath(const std::string &skin);
|
||||
|
||||
bool defaultAlpha;
|
||||
@@ -47,14 +47,14 @@ public:
|
||||
|
||||
Surface *add(Surface *s, const std::string &path);
|
||||
Surface *add(const std::string &path);
|
||||
Surface *addSkinRes(const std::string &path);
|
||||
Surface *addSkinRes(const std::string &path, bool useDefault = true);
|
||||
void del(const std::string &path);
|
||||
void clear();
|
||||
void move(const std::string &from, const std::string &to);
|
||||
bool exists(const std::string &path);
|
||||
|
||||
Surface *operator[](const std::string &);
|
||||
Surface *skinRes(const std::string &);
|
||||
Surface *skinRes(const std::string &key, bool useDefault = true);
|
||||
|
||||
private:
|
||||
SurfaceHash surfaces;
|
||||
|
||||
Reference in New Issue
Block a user