QTfrontend/gameuiconfig.cpp
branchexperimental3D
changeset 4004 b1c2c2f6fc5e
parent 3696 6009d8378422
parent 3937 494221b5950e
child 4812 f924be23ffb4
equal deleted inserted replaced
3698:793386610068 4004:b1c2c2f6fc5e
    92 
    92 
    93 QStringList GameUIConfig::GetTeamsList()
    93 QStringList GameUIConfig::GetTeamsList()
    94 {
    94 {
    95     QDir teamdir;
    95     QDir teamdir;
    96     teamdir.cd(cfgdir->absolutePath() + "/Teams");
    96     teamdir.cd(cfgdir->absolutePath() + "/Teams");
    97     QStringList teamslist = teamdir.entryList(QStringList("*.ini"));
    97     QStringList teamslist = teamdir.entryList(QStringList("*.hwt"));
    98     QStringList cleanedList;
    98     QStringList cleanedList;
    99     for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
    99     for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
   100             QString tmpTeamStr=(*it).replace(QRegExp("^(.*)\\.ini$"), "\\1");
   100             QString tmpTeamStr=(*it).replace(QRegExp("^(.*)\\.hwt$"), "\\1");
   101             cleanedList.push_back(tmpTeamStr);
   101             cleanedList.push_back(tmpTeamStr);
   102     }
   102     }
   103     return cleanedList;
   103     return cleanedList;
   104 }
   104 }
   105 
   105 
   178 }
   178 }
   179 
   179 
   180 quint32 GameUIConfig::translateQuality()
   180 quint32 GameUIConfig::translateQuality()
   181 {
   181 {
   182     quint32 rqNone = 0x00000000;  // don't reduce quality
   182     quint32 rqNone = 0x00000000;  // don't reduce quality
   183     quint32 rqLowRes = 0x00000001;  // use half land array
   183     //quint32 rqLowRes = 0x00000001;  // use half land array
   184     quint32 rqBlurryLand = 0x00000002;  // downscaled terrain
   184     quint32 rqBlurryLand = 0x00000002;  // downscaled terrain
   185     quint32 rqNoBackground = 0x00000004;  // don't draw background
   185     quint32 rqNoBackground = 0x00000004;  // don't draw background
   186     quint32 rqSimpleRope = 0x00000008;  // avoid drawing rope
   186     quint32 rqSimpleRope = 0x00000008;  // avoid drawing rope
   187     quint32 rq2DWater = 0x00000010;  // disabe 3D water effect
   187     quint32 rq2DWater = 0x00000010;  // disabe 3D water effect
   188     quint32 rqFancyBoom = 0x00000020;  // no fancy explosion effects
   188     quint32 rqFancyBoom = 0x00000020;  // no fancy explosion effects