// ----------------------------------------------------------------------------- EnterGPNameDialog::EnterGPNameDialog(INewGPListener* listener, const float w, const float h) : ModalDialog(w, h), m_listener(listener), m_self_destroy(false) { assert(listener != NULL); loadFromFile("enter_gp_name_dialog.stkgui"); TextBoxWidget* textCtrl = getWidget<TextBoxWidget>("textfield"); assert(textCtrl != NULL); textCtrl->setFocusForPlayer(PLAYER_ID_GAME_MASTER); }