mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
only host
This commit is contained in:
@@ -438,7 +438,9 @@ PvPBox::PvPBox(const Rect & rect)
|
|||||||
}, EShortcut::LOBBY_RANDOM_TOWN_VS);
|
}, EShortcut::LOBBY_RANDOM_TOWN_VS);
|
||||||
buttonRandomTownVs->setTextOverlay(CGI->generaltexth->translate("vcmi.lobby.pvp.randomTownVs.hover"), EFonts::FONT_SMALL, Colors::WHITE);
|
buttonRandomTownVs->setTextOverlay(CGI->generaltexth->translate("vcmi.lobby.pvp.randomTownVs.hover"), EFonts::FONT_SMALL, Colors::WHITE);
|
||||||
|
|
||||||
buttonHandicap = std::make_shared<CButton>(Point(190, 81), AnimationPath::builtin("GSPBUT2.DEF"), CButton::tooltip("", CGI->generaltexth->translate("vcmi.lobby.handicap")), [this](){
|
buttonHandicap = std::make_shared<CButton>(Point(190, 81), AnimationPath::builtin("GSPBUT2.DEF"), CButton::tooltip("", CGI->generaltexth->translate("vcmi.lobby.handicap")), [](){
|
||||||
|
if(!CSH->isHost())
|
||||||
|
return;
|
||||||
GH.windows().createAndPushWindow<OptionsTab::HandicapWindow>();
|
GH.windows().createAndPushWindow<OptionsTab::HandicapWindow>();
|
||||||
}, EShortcut::LOBBY_HANDICAP);
|
}, EShortcut::LOBBY_HANDICAP);
|
||||||
buttonHandicap->setTextOverlay(CGI->generaltexth->translate("vcmi.lobby.handicap"), EFonts::FONT_SMALL, Colors::WHITE);
|
buttonHandicap->setTextOverlay(CGI->generaltexth->translate("vcmi.lobby.handicap"), EFonts::FONT_SMALL, Colors::WHITE);
|
||||||
|
|||||||
Reference in New Issue
Block a user