mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Added "displayName" to MetaDataDecls and updated GuiMetaDataEd accordingly.
This was "desc" gets displayed as "description", spaces can be used, etc.
This commit is contained in:
parent
8ffa56e652
commit
f601531ec6
|
@ -3,18 +3,18 @@
|
|||
#include "Log.h"
|
||||
|
||||
MetaDataDecl gameDecls[] = {
|
||||
{"name", MD_STRING, "", false},
|
||||
{"desc", MD_MULTILINE_STRING, "", false},
|
||||
{"image", MD_IMAGE_PATH, "", false},
|
||||
{"thumbnail", MD_IMAGE_PATH, "", false},
|
||||
{"rating", MD_RATING, "0", false},
|
||||
{"releasedate", MD_DATE, "0", false},
|
||||
{"developer", MD_STRING, "unknown", false},
|
||||
{"publisher", MD_STRING, "unknown", false},
|
||||
{"genre", MD_STRING, "unknown", false},
|
||||
{"players", MD_INT, "1", false},
|
||||
{"playcount", MD_INT, "0", true},
|
||||
{"lastplayed", MD_TIME, "0", true}
|
||||
{"name", MD_STRING, "", false, "name"},
|
||||
{"desc", MD_MULTILINE_STRING, "", false, "description"},
|
||||
{"image", MD_IMAGE_PATH, "", false, "image"},
|
||||
{"thumbnail", MD_IMAGE_PATH, "", false, "thumbnail"},
|
||||
{"rating", MD_RATING, "0", false, "rating"},
|
||||
{"releasedate", MD_DATE, "0", false, "release date"},
|
||||
{"developer", MD_STRING, "unknown", false, "developer"},
|
||||
{"publisher", MD_STRING, "unknown", false, "publisher"},
|
||||
{"genre", MD_STRING, "unknown", false, "genre"},
|
||||
{"players", MD_INT, "1", false, "players"},
|
||||
{"playcount", MD_INT, "0", true, "play count"},
|
||||
{"lastplayed", MD_TIME, "0", true, "last played"}
|
||||
};
|
||||
const std::vector<MetaDataDecl> gameMDD(gameDecls, gameDecls + sizeof(gameDecls) / sizeof(gameDecls[0]));
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ struct MetaDataDecl
|
|||
MetaDataType type;
|
||||
std::string defaultValue;
|
||||
bool isStatistic; //if true, ignore scraper values for this metadata
|
||||
std::string displayName; // displayed as this in editors
|
||||
};
|
||||
|
||||
boost::posix_time::ptime string_to_ptime(const std::string& str, const std::string& fmt = "%Y%m%dT%H%M%S%F%q");
|
||||
|
|
|
@ -53,7 +53,7 @@ GuiMetaDataEd::GuiMetaDataEd(Window* window, MetaDataList* md, const std::vector
|
|||
// create ed and add it (and any related components) to mMenu
|
||||
// ed's value will be set below
|
||||
ComponentListRow row;
|
||||
auto lbl = std::make_shared<TextComponent>(mWindow, strToUpper(iter->key), Font::get(FONT_SIZE_SMALL), 0x777777FF);
|
||||
auto lbl = std::make_shared<TextComponent>(mWindow, strToUpper(iter->displayName), Font::get(FONT_SIZE_SMALL), 0x777777FF);
|
||||
row.addElement(lbl, true); // label
|
||||
|
||||
switch(iter->type)
|
||||
|
|
Loading…
Reference in a new issue