diff --git a/src/ThemeData.cpp b/src/ThemeData.cpp index 21bb49d90..8827c9abd 100644 --- a/src/ThemeData.cpp +++ b/src/ThemeData.cpp @@ -23,7 +23,8 @@ std::map ThemeData::sDefaultColors = boost::assign::m std::map ThemeData::sDefaultImages = boost::assign::map_list_of ("backgroundImage", ImageDef("", true)) ("headerImage", ImageDef("", false)) - ("infoBackgroundImage", ImageDef("", false)); + ("infoBackgroundImage", ImageDef("", false)) + ("verticalDividerImage", ImageDef("", false)); std::map ThemeData::sDefaultSounds = boost::assign::map_list_of ("scrollSound", SoundDef("")) diff --git a/src/views/DetailedGameListView.cpp b/src/views/DetailedGameListView.cpp index ba1d1cbdb..88cf7158b 100644 --- a/src/views/DetailedGameListView.cpp +++ b/src/views/DetailedGameListView.cpp @@ -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& 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() diff --git a/src/views/DetailedGameListView.h b/src/views/DetailedGameListView.h index f98eb586a..57a6ca06f 100644 --- a/src/views/DetailedGameListView.h +++ b/src/views/DetailedGameListView.h @@ -19,6 +19,7 @@ private: ImageComponent mImage; ImageComponent mInfoBackground; + ImageComponent mDivider; ScrollableContainer mDescContainer; TextComponent mDescription;