|
@@ -177,12 +177,13 @@ class MapSel : public PreGameTab
|
|
|
public:
|
|
public:
|
|
|
ESortBy sortBy;
|
|
ESortBy sortBy;
|
|
|
SDL_Surface * bg;
|
|
SDL_Surface * bg;
|
|
|
- int selected;
|
|
|
|
|
|
|
+ int selected; //selected map
|
|
|
CDefHandler * Dtypes, * Dvic;
|
|
CDefHandler * Dtypes, * Dvic;
|
|
|
- CDefHandler *Dsizes, * Dloss;
|
|
|
|
|
|
|
+ CDefHandler *Dsizes, * Dloss,
|
|
|
|
|
+ * sFlags;
|
|
|
std::vector<Mapa*> scenList;
|
|
std::vector<Mapa*> scenList;
|
|
|
std::vector<SDL_Surface*> scenImgs;
|
|
std::vector<SDL_Surface*> scenImgs;
|
|
|
- int current;
|
|
|
|
|
|
|
+ //int current;
|
|
|
std::vector<CMapInfo> ourMaps;
|
|
std::vector<CMapInfo> ourMaps;
|
|
|
IntBut<> small, medium, large, xlarge, all;
|
|
IntBut<> small, medium, large, xlarge, all;
|
|
|
SetrButton<> nrplayer, mapsize, type, name, viccon, loscon;
|
|
SetrButton<> nrplayer, mapsize, type, name, viccon, loscon;
|
|
@@ -198,6 +199,7 @@ public:
|
|
|
void select(int which, bool updateMapsList=true);
|
|
void select(int which, bool updateMapsList=true);
|
|
|
void moveByOne(bool up);
|
|
void moveByOne(bool up);
|
|
|
void printSelectedInfo();
|
|
void printSelectedInfo();
|
|
|
|
|
+ void printFlags();
|
|
|
MapSel();
|
|
MapSel();
|
|
|
~MapSel();
|
|
~MapSel();
|
|
|
};
|
|
};
|
|
@@ -224,6 +226,7 @@ class CPreGame
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
std::string playerName;
|
|
std::string playerName;
|
|
|
|
|
+ int playerColor;
|
|
|
HighButton * highlighted;
|
|
HighButton * highlighted;
|
|
|
PreGameTab* currentTab;
|
|
PreGameTab* currentTab;
|
|
|
StartInfo ret;
|
|
StartInfo ret;
|