Fix #3242
This commit is contained in:
parent
90f3a2389e
commit
fc89a1c244
@ -160,6 +160,9 @@ void IconButtonWidget::add()
|
||||
m_element = btn;
|
||||
m_id = m_element->getID();
|
||||
|
||||
if (!m_is_visible)
|
||||
m_element->setVisible(false);
|
||||
|
||||
// ---- label if any
|
||||
const stringw& message = getText();
|
||||
if (message.size() > 0)
|
||||
@ -222,6 +225,11 @@ void IconButtonWidget::add()
|
||||
m_label->setVisible(false);
|
||||
}
|
||||
|
||||
if (!m_is_visible)
|
||||
{
|
||||
m_label->setVisible(false);
|
||||
}
|
||||
|
||||
setLabelFont();
|
||||
|
||||
m_label->setRightToLeft(translations->isRTLText(message));
|
||||
|
@ -107,6 +107,11 @@ void RegisterScreen::init()
|
||||
makeEntryFieldsVisible();
|
||||
|
||||
local_username->setFocusForPlayer(PLAYER_ID_GAME_MASTER);
|
||||
|
||||
if (PlayerManager::get()->getNumPlayers() == 0)
|
||||
{
|
||||
getWidget<IconButtonWidget>("back")->setVisible(false);
|
||||
}
|
||||
} // init
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user