GUI: Rename some methods, start to implement new one

This commit is contained in:
Er2
2023-12-09 19:44:25 +03:00
parent 5e311cbbb3
commit b6bf9d616a
76 changed files with 883 additions and 263 deletions

View File

@@ -43,7 +43,7 @@ bool ConfirmScreen::handleBackEvent(bool b)
return true;
}
void ConfirmScreen::init()
void ConfirmScreen::onInit()
{
m_btnOK.m_xPos = m_width / 2 - 4 - 120;
m_btnCancel.m_xPos = m_width / 2 + 4;
@@ -59,12 +59,12 @@ void ConfirmScreen::init()
m_buttonTabList.push_back(&m_btnCancel);
}
void ConfirmScreen::render(int mouseX, int mouseY, float f)
void ConfirmScreen::onRender(int mouseX, int mouseY, float f)
{
renderBackground();
drawCenteredString(m_pFont, m_textLine1, m_width / 2, 50, 0xFFFFFF);
drawCenteredString(m_pFont, m_textLine2, m_width / 2, 70, 0xFFFFFF);
Screen::render(mouseX, mouseY, f);
Screen::onRender(mouseX, mouseY, f);
}
void ConfirmScreen::postResult(bool b)