42 |
43 |
43 Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool()); |
44 Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool()); |
44 Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt()); |
45 Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt()); |
45 |
46 |
46 Form->ui.pageOptions->CBAltDamage->setChecked(value("misc/altdamage", false).toBool()); |
47 Form->ui.pageOptions->CBAltDamage->setChecked(value("misc/altdamage", false).toBool()); |
|
48 |
|
49 QDesktopWidget desktop; |
|
50 depth = desktop.depth(); |
|
51 if (depth < 16) depth = 16; |
|
52 else if (depth > 16) depth = 32; |
47 } |
53 } |
48 |
54 |
49 QStringList GameUIConfig::GetTeamsList() |
55 QStringList GameUIConfig::GetTeamsList() |
50 { |
56 { |
51 QStringList teamslist = cfgdir->entryList(QStringList("*.cfg")); |
57 QStringList teamslist = cfgdir->entryList(QStringList("*.cfg")); |
52 QStringList cleanedList; |
58 QStringList cleanedList; |
53 for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) { |
59 for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) { |
54 QString tmpTeamStr=(*it).replace(QRegExp("^(.*).cfg$"), "\\1"); |
60 QString tmpTeamStr=(*it).replace(QRegExp("^(.*)\\.cfg$"), "\\1"); |
55 cleanedList.push_back(tmpTeamStr); |
61 cleanedList.push_back(tmpTeamStr); |
56 } |
62 } |
57 return cleanedList; |
63 return cleanedList; |
58 } |
64 } |
59 |
65 |