This commit is contained in:
auria.mg 2018-06-10 18:43:46 -04:00
parent 90f3a2389e
commit fc89a1c244
2 changed files with 13 additions and 0 deletions

View File

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

View File

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