mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Added verticalDividerImage to themes/detailedgamelistview.
This commit is contained in:
parent
4b4fff39ef
commit
cad914ab01
|
@ -23,7 +23,8 @@ std::map<std::string, unsigned int> ThemeData::sDefaultColors = boost::assign::m
|
|||
std::map<std::string, ImageDef> ThemeData::sDefaultImages = boost::assign::map_list_of
|
||||
("backgroundImage", ImageDef("", true))
|
||||
("headerImage", ImageDef("", false))
|
||||
("infoBackgroundImage", ImageDef("", false));
|
||||
("infoBackgroundImage", ImageDef("", false))
|
||||
("verticalDividerImage", ImageDef("", false));
|
||||
|
||||
std::map<std::string, SoundDef> ThemeData::sDefaultSounds = boost::assign::map_list_of
|
||||
("scrollSound", SoundDef(""))
|
||||
|
|
|
@ -3,15 +3,19 @@
|
|||
DetailedGameListView::DetailedGameListView(Window* window, FileData* root) :
|
||||
BasicGameListView(window, root),
|
||||
mDescContainer(window), mDescription(window),
|
||||
mImage(window), mInfoBackground(window)
|
||||
mImage(window), mInfoBackground(window), mDivider(window)
|
||||
{
|
||||
mHeaderImage.setPosition(mSize.x() * 0.25f, 0);
|
||||
|
||||
mInfoBackground.setPosition(0, mSize.y() * 0.5f, 0);
|
||||
mInfoBackground.setPosition(0, mSize.y() * 0.5f);
|
||||
mInfoBackground.setOrigin(0, 0.5f);
|
||||
mInfoBackground.setResize(mSize.x() * 0.5f, mSize.y(), true);
|
||||
addChild(&mInfoBackground);
|
||||
|
||||
mDivider.setPosition(mSize.x() * 0.5f, mSize.y() * 0.5f);
|
||||
mDivider.setOrigin(0.5f, 0.5f);
|
||||
addChild(&mDivider);
|
||||
|
||||
const float padding = 0.01f;
|
||||
|
||||
mList.setPosition(mSize.x() * (0.50f + padding), mList.getPosition().y());
|
||||
|
@ -47,6 +51,9 @@ void DetailedGameListView::setTheme(const std::shared_ptr<ThemeData>& theme)
|
|||
mDescription.setColor(theme->getColor("descriptionColor"));
|
||||
mInfoBackground.setImage(theme->getImage("infoBackgroundImage").getTexture());
|
||||
mInfoBackground.setTiling(theme->getImage("infoBackgroundImage").tile);
|
||||
|
||||
mDivider.setImage(theme->getImage("verticalDividerImage").getTexture());
|
||||
mDivider.setResize((float)mDivider.getTextureSize().x(), mSize.y(), true);
|
||||
}
|
||||
|
||||
void DetailedGameListView::updateInfoPanel()
|
||||
|
|
|
@ -19,6 +19,7 @@ private:
|
|||
|
||||
ImageComponent mImage;
|
||||
ImageComponent mInfoBackground;
|
||||
ImageComponent mDivider;
|
||||
|
||||
ScrollableContainer mDescContainer;
|
||||
TextComponent mDescription;
|
||||
|
|
Loading…
Reference in a new issue