mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
added category indicator token to default menus
This commit is contained in:
@@ -188,7 +188,7 @@ cImage *cImageCache::GetIcon(eImageType type, string name, int width, int height
|
||||
return NULL;
|
||||
}
|
||||
|
||||
string cImageCache::GetIconName(string label, eMenuCategory cat) {
|
||||
string cImageCache::GetIconName(string label, eMenuCategory cat, string plugName) {
|
||||
//if cat is set, use standard menu entries
|
||||
switch (cat) {
|
||||
case mcSchedule:
|
||||
@@ -267,6 +267,9 @@ string cImageCache::GetIconName(string label, eMenuCategory cat) {
|
||||
}
|
||||
} catch (...) {}
|
||||
//check for Plugins
|
||||
if (plugName.size() > 0) {
|
||||
return *cString::sprintf("pluginicons/%s", plugName.c_str());
|
||||
}
|
||||
for (int i = 0; ; i++) {
|
||||
cPlugin *p = cPluginManager::GetPlugin(i);
|
||||
if (p) {
|
||||
|
@@ -25,7 +25,7 @@ public:
|
||||
//icons
|
||||
void CacheIcon(eImageType type, string path, int width, int height);
|
||||
cImage *GetIcon(eImageType type, string name, int width, int height);
|
||||
string GetIconName(string label, eMenuCategory cat = mcUndefined);
|
||||
string GetIconName(string label, eMenuCategory cat = mcUndefined, string plugName = "");
|
||||
bool MenuIconExists(string name);
|
||||
//skinparts
|
||||
void CacheSkinpart(string path, int width, int height);
|
||||
|
Reference in New Issue
Block a user