- attempt to turn off playername editing for this release

This commit is contained in:
Mark Vejvoda 2010-10-08 16:32:50 +00:00
parent 1c32515d7a
commit 54ce27d19c
2 changed files with 9 additions and 2 deletions

View File

@ -1261,6 +1261,8 @@ void MenuStateConnectedGame::keyUp(char key) {
}
void MenuStateConnectedGame::setActiveInputLabel(GraphicLabel *newLable) {
/*
if(newLable != NULL) {
string text= newLable->getText();
size_t found = text.find_last_of("_");
@ -1278,11 +1280,13 @@ void MenuStateConnectedGame::setActiveInputLabel(GraphicLabel *newLable) {
activeInputLabel->setText(text);
}
activeInputLabel = newLable;
*/
}
string MenuStateConnectedGame::getHumanPlayerName() {
string result = defaultPlayerName;
/*
NetworkManager &networkManager= NetworkManager::getInstance();
ClientInterface* clientInterface= networkManager.getClientInterface();
for(int j=0; j<GameConstants::maxPlayers; ++j) {
@ -1301,7 +1305,7 @@ string MenuStateConnectedGame::getHumanPlayerName() {
break;
}
}
*/
return result;
}

View File

@ -2406,6 +2406,7 @@ string MenuStateCustomGame::getCurrentMapFile(){
}
void MenuStateCustomGame::setActiveInputLabel(GraphicLabel *newLable) {
/*
if(newLable != NULL) {
string text= newLable->getText();
size_t found = text.find_last_of("_");
@ -2423,6 +2424,7 @@ void MenuStateCustomGame::setActiveInputLabel(GraphicLabel *newLable) {
activeInputLabel->setText(text);
}
activeInputLabel = newLable;
*/
}
string MenuStateCustomGame::getHumanPlayerName(int index) {
@ -2431,6 +2433,7 @@ string MenuStateCustomGame::getHumanPlayerName(int index) {
//printf("\nIn [%s::%s Line: %d] index = %d\n",__FILE__,__FUNCTION__,__LINE__,index);
//fflush(stdout);
/*
if(index < 0) {
for(int j = 0; j < GameConstants::maxPlayers; ++j) {
if(listBoxControls[j].getSelectedItemIndex() >= 0) {
@ -2458,7 +2461,7 @@ string MenuStateCustomGame::getHumanPlayerName(int index) {
}
}
}
*/
return result;
}