mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-05 18:10:09 +03:00
Disable Multiplayer Buttons On WASM
This commit is contained in:
committed by
iProgramInCpp
parent
cc3310b556
commit
af74761c97
@@ -124,6 +124,10 @@ void OptionsScreen::init()
|
||||
m_buttonTabList.push_back(&m_BackButton);
|
||||
|
||||
UpdateTexts();
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
m_srvVisButton.m_bEnabled = false;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -66,6 +66,10 @@ void PauseScreen::init()
|
||||
|
||||
for (auto thing : m_buttons)
|
||||
m_buttonTabList.push_back(thing);
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
m_btnVisible.m_bEnabled = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void PauseScreen::updateServerVisibilityText()
|
||||
|
||||
@@ -40,7 +40,11 @@ void StartMenuScreen::_updateLicense()
|
||||
{
|
||||
m_optionsButton.m_bEnabled = true;
|
||||
m_startButton.m_bEnabled = true;
|
||||
#ifdef __EMSCRIPTEN__
|
||||
m_joinButton.m_bEnabled = false;
|
||||
#else
|
||||
m_joinButton.m_bEnabled = true;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user