Disable Multiplayer Buttons On WASM

This commit is contained in:
TheBrokenRail
2023-08-05 04:01:10 -04:00
committed by iProgramInCpp
parent cc3310b556
commit af74761c97
3 changed files with 12 additions and 0 deletions

View File

@@ -124,6 +124,10 @@ void OptionsScreen::init()
m_buttonTabList.push_back(&m_BackButton);
UpdateTexts();
#ifdef __EMSCRIPTEN__
m_srvVisButton.m_bEnabled = false;
#endif
#endif
}

View File

@@ -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()

View File

@@ -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
{