mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 23:21:19 +02:00
- moved player game version text over and made its font smaller to be able to see more when long
- bugfix of segfault when in mod menu
This commit is contained in:
@@ -319,10 +319,12 @@ MenuStateConnectedGame::MenuStateConnectedGame(Program *program, MainMenu *mainM
|
||||
listBoxTeams[i].setEditable(false);
|
||||
|
||||
labelNetStatus[i].registerGraphicComponent(containerName,"labelNetStatus" + intToStr(i));
|
||||
labelNetStatus[i].init(xoffset+670, setupPos-30-i*rowHeight, 60);
|
||||
labelNetStatus[i].init(xoffset+655, setupPos-30-i*rowHeight, 60);
|
||||
labelNetStatus[i].setFont(CoreData::getInstance().getDisplayFontSmall());
|
||||
labelNetStatus[i].setFont3D(CoreData::getInstance().getDisplayFontSmall3D());
|
||||
|
||||
grabSlotButton[i].registerGraphicComponent(containerName,"grabSlotButton" + intToStr(i));
|
||||
grabSlotButton[i].init(xoffset+670, setupPos-30-i*rowHeight, 30);
|
||||
grabSlotButton[i].init(xoffset+660, setupPos-30-i*rowHeight, 30);
|
||||
grabSlotButton[i].setText(">");
|
||||
}
|
||||
|
||||
|
@@ -463,7 +463,9 @@ MenuStateCustomGame::MenuStateCustomGame(Program *program, MainMenu *mainMenu,
|
||||
listBoxTeams[i].init(xoffset+590, setupPos-30-i*rowHeight, 60);
|
||||
|
||||
labelNetStatus[i].registerGraphicComponent(containerName,"labelNetStatus" + intToStr(i));
|
||||
labelNetStatus[i].init(xoffset+670, setupPos-30-i*rowHeight, 60);
|
||||
labelNetStatus[i].init(xoffset+655, setupPos-30-i*rowHeight, 60);
|
||||
labelNetStatus[i].setFont(CoreData::getInstance().getDisplayFontSmall());
|
||||
labelNetStatus[i].setFont3D(CoreData::getInstance().getDisplayFontSmall3D());
|
||||
}
|
||||
|
||||
labelControl.registerGraphicComponent(containerName,"labelControl");
|
||||
|
@@ -487,6 +487,12 @@ void MenuStateMods::simpleTask(BaseThread *callingThread) {
|
||||
keyTilesetButtons.push_back(button);
|
||||
}
|
||||
}
|
||||
|
||||
if(callingThread->getQuitStatus() == true || safeMutexThreadOwner.isValidMutex() == false) {
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
return;
|
||||
}
|
||||
|
||||
for(unsigned int i=0; i < tilesetFilesUserData.size(); i++) {
|
||||
string tilesetName = tilesetFilesUserData[i];
|
||||
bool alreadyHasTileset = (tilesetCacheList.find(tilesetName) != tilesetCacheList.end());
|
||||
@@ -512,6 +518,11 @@ void MenuStateMods::simpleTask(BaseThread *callingThread) {
|
||||
techListRemote.clear();
|
||||
Tokenize(techsMetaData,techListRemote,"\n");
|
||||
|
||||
if(callingThread->getQuitStatus() == true || safeMutexThreadOwner.isValidMutex() == false) {
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
return;
|
||||
}
|
||||
|
||||
getTechsLocalList();
|
||||
for(unsigned int i=0; i < techListRemote.size(); i++) {
|
||||
string result=refreshTechModInfo(techListRemote[i]);
|
||||
@@ -532,6 +543,12 @@ void MenuStateMods::simpleTask(BaseThread *callingThread) {
|
||||
labelsTech.push_back(label);
|
||||
}
|
||||
}
|
||||
|
||||
if(callingThread->getQuitStatus() == true || safeMutexThreadOwner.isValidMutex() == false) {
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
return;
|
||||
}
|
||||
|
||||
for(unsigned int i=0; i < techTreeFilesUserData.size(); i++) {
|
||||
string techName = techTreeFilesUserData[i];
|
||||
bool alreadyHasTech = (techCacheList.find(techName) != techCacheList.end());
|
||||
@@ -589,6 +606,12 @@ void MenuStateMods::simpleTask(BaseThread *callingThread) {
|
||||
labelsMap.push_back(label);
|
||||
}
|
||||
}
|
||||
|
||||
if(callingThread->getQuitStatus() == true || safeMutexThreadOwner.isValidMutex() == false) {
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
return;
|
||||
}
|
||||
|
||||
for(unsigned int i=0; i < mapFilesUserData.size(); i++) {
|
||||
string mapName = mapFilesUserData[i];
|
||||
bool alreadyHasMap = (mapCacheList.find(mapName) != mapCacheList.end());
|
||||
@@ -640,6 +663,12 @@ void MenuStateMods::simpleTask(BaseThread *callingThread) {
|
||||
keyScenarioButtons.push_back(button);
|
||||
}
|
||||
}
|
||||
|
||||
if(callingThread->getQuitStatus() == true || safeMutexThreadOwner.isValidMutex() == false) {
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
return;
|
||||
}
|
||||
|
||||
for(unsigned int i=0; i < scenarioFilesUserData.size(); i++) {
|
||||
string scenarioName = scenarioFilesUserData[i];
|
||||
bool alreadyHasScenario = (scenarioCacheList.find(scenarioName) != scenarioCacheList.end());
|
||||
|
Reference in New Issue
Block a user