2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 18:27:41 +00:00

Add MessageWindow class

This commit is contained in:
Jack Andersen
2016-01-02 13:07:40 -10:00
parent 26dffbd99e
commit 8dfafc81c2
11 changed files with 277 additions and 3 deletions

View File

@@ -275,7 +275,7 @@ void Button::resized(const boo::SWindowRect& root, const boo::SWindowRect& sub)
float pf = rootView().viewRes().pixelFactor();
if (m_style == Style::Block)
textRect.location[1] += 7 * pf;
textRect.location[0] += sub.size[0] / 2;
textRect.location[0] += m_nomWidth / 2;
textRect.size[0] = m_nomWidth;
textRect.size[1] = m_nomHeight;
m_text->resized(root, textRect);