mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
Add Direct Connect Button and Screen (#30)
* Add Direct Connect Button and Screen * Remove accidental extra build directories for wasm * Add DirectConnectScreen.cpp to the CMake * Use Hungarian coding style notation
This commit is contained in:
@@ -54,7 +54,7 @@ void StartMenuScreen::_updateLicense()
|
||||
|
||||
void StartMenuScreen::buttonClicked(Button* pButton)
|
||||
{
|
||||
if (pButton->field_30 == m_startButton.field_30)
|
||||
if (pButton->buttonId == m_startButton.buttonId)
|
||||
{
|
||||
#if defined(DEMO)
|
||||
m_pMinecraft->selectLevel("_DemoLevel", "_DemoLevel", int(getEpochTimeS()));
|
||||
@@ -64,12 +64,12 @@ void StartMenuScreen::buttonClicked(Button* pButton)
|
||||
m_pMinecraft->setScreen(new SelectWorldScreen);
|
||||
#endif
|
||||
}
|
||||
else if (pButton->field_30 == m_joinButton.field_30)
|
||||
else if (pButton->buttonId == m_joinButton.buttonId)
|
||||
{
|
||||
m_pMinecraft->locateMultiplayer();
|
||||
m_pMinecraft->setScreen(new JoinGameScreen);
|
||||
}
|
||||
else if (pButton->field_30 == m_buyButton.field_30)
|
||||
else if (pButton->buttonId == m_buyButton.buttonId)
|
||||
{
|
||||
#if !defined(DEMO) && defined(CAN_QUIT)
|
||||
m_pMinecraft->quit();
|
||||
@@ -77,7 +77,7 @@ void StartMenuScreen::buttonClicked(Button* pButton)
|
||||
m_pMinecraft->platform()->buyGame();
|
||||
#endif
|
||||
}
|
||||
else if (pButton->field_30 == m_optionsButton.field_30)
|
||||
else if (pButton->buttonId == m_optionsButton.buttonId)
|
||||
{
|
||||
m_pMinecraft->setScreen(new OptionsScreen);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user