mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Fixed GuiBox/GuiFastSelect render order.
This commit is contained in:
parent
b6afbd8c09
commit
b6264f4858
|
@ -1,6 +1,7 @@
|
||||||
October 10
|
October 10
|
||||||
-Added a theming tag for the Fast Select box's text.
|
-Added a theming tag for the Fast Select box's text.
|
||||||
-Fixed GuiBox background being positioned wrong.
|
-Fixed GuiBox background being positioned wrong.
|
||||||
|
-Fixed GuiBox/GuiFastSelect render order.
|
||||||
|
|
||||||
October 7
|
October 7
|
||||||
-Fixed borders for GuiBox. The right and bottom borders are flipped, too.
|
-Fixed borders for GuiBox. The right and bottom borders are flipped, too.
|
||||||
|
|
|
@ -25,7 +25,7 @@ GuiFastSelect::GuiFastSelect(GuiComponent* parent, GuiList<FileData*>* list, cha
|
||||||
unsigned int sw = Renderer::getScreenWidth(), sh = Renderer::getScreenHeight();
|
unsigned int sw = Renderer::getScreenWidth(), sh = Renderer::getScreenHeight();
|
||||||
mBox = new GuiBox(sw * 0.2, sh * 0.2, sw * 0.6, sh * 0.6);
|
mBox = new GuiBox(sw * 0.2, sh * 0.2, sw * 0.6, sh * 0.6);
|
||||||
mBox->setData(data);
|
mBox->setData(data);
|
||||||
addChild(mBox);
|
//addChild(mBox);
|
||||||
|
|
||||||
mTextColor = textcolor;
|
mTextColor = textcolor;
|
||||||
|
|
||||||
|
@ -37,7 +37,6 @@ GuiFastSelect::~GuiFastSelect()
|
||||||
Renderer::unregisterComponent(this);
|
Renderer::unregisterComponent(this);
|
||||||
InputManager::unregisterComponent(this);
|
InputManager::unregisterComponent(this);
|
||||||
|
|
||||||
removeChild(mBox);
|
|
||||||
delete mBox;
|
delete mBox;
|
||||||
|
|
||||||
mParent->resume();
|
mParent->resume();
|
||||||
|
@ -50,6 +49,8 @@ void GuiFastSelect::onRender()
|
||||||
if(!mBox->hasBackground())
|
if(!mBox->hasBackground())
|
||||||
Renderer::drawRect(sw * 0.2, sh * 0.2, sw * 0.6, sh * 0.6, 0x000FF0);
|
Renderer::drawRect(sw * 0.2, sh * 0.2, sw * 0.6, sh * 0.6, 0x000FF0);
|
||||||
|
|
||||||
|
mBox->render();
|
||||||
|
|
||||||
Renderer::drawCenteredText(LETTERS.substr(mLetterID, 1), 0, sh * 0.5 - (Renderer::getFontHeight(Renderer::LARGE) * 0.5), mTextColor, Renderer::LARGE);
|
Renderer::drawCenteredText(LETTERS.substr(mLetterID, 1), 0, sh * 0.5 - (Renderer::getFontHeight(Renderer::LARGE) * 0.5), mTextColor, Renderer::LARGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue