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

@@ -32,7 +32,7 @@ void InvalidLicenseScreen::buttonClicked(Button* pButton)
}
}
void InvalidLicenseScreen::init()
void InvalidLicenseScreen::onInit()
{
field_E4 = m_height / 3;
if (m_bHasQuitButton)
@@ -57,14 +57,10 @@ void InvalidLicenseScreen::init()
m_buttonTabList.push_back(&m_btnBuy);
}
void InvalidLicenseScreen::tick()
{
}
void InvalidLicenseScreen::render(int mouseX, int mouseY, float f)
void InvalidLicenseScreen::onRender(int mouseX, int mouseY, float f)
{
renderDirtBackground(0);
drawCenteredString(m_pMinecraft->m_pFont, m_textLine1, m_width / 2, field_E4, 0xFFFFFF);
drawCenteredString(m_pMinecraft->m_pFont, m_textLine2, m_width / 2, field_E4 + 24, 0xFFFFFF);
Screen::render(mouseX, mouseY, f);
Screen::onRender(mouseX, mouseY, f);
}