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

@@ -23,7 +23,7 @@ PauseScreen::PauseScreen() :
{
}
void PauseScreen::init()
void PauseScreen::onInit()
{
bool bAddVisibleButton = m_pMinecraft->m_pRakNetInstance && m_pMinecraft->m_pRakNetInstance->m_bIsHost;
@@ -108,17 +108,17 @@ void PauseScreen::updateServerVisibilityText()
m_btnVisible.m_text = "Server is invisible";
}
void PauseScreen::tick()
void PauseScreen::onTick()
{
field_40++;
}
void PauseScreen::render(int a, int b, float c)
void PauseScreen::onRender(int a, int b, float c)
{
renderBackground();
drawCenteredString(m_pFont, "Game menu", m_width / 2, 24, 0xFFFFFF);
Screen::render(a, b, c);
Screen::onRender(a, b, c);
}
void PauseScreen::buttonClicked(Button* pButton)