diff --git a/client/Graphics.h b/client/Graphics.h index d01addf80..5dd17272f 100644 --- a/client/Graphics.h +++ b/client/Graphics.h @@ -6,10 +6,14 @@ class CGHeroInstance; class CGTownInstance; class CDefHandler; class CHeroClass; +struct SDL_Color; class Graphics { public: //various graphics + SDL_Color * playerColors; //array [8] + SDL_Color * neutralColor; + SDL_Color * playerColorPalette; //palette to make interface colors good - array of size [256] SDL_Surface * hInfo, *tInfo; //hero and town infobox bgs std::vector > slotsPos; //creature slot positions in infoboxes CDefEssential *luck22, *luck30, *luck42, *luck82, @@ -31,6 +35,7 @@ public: //functions Graphics(); + void loadPaletteAndColors(); void loadHeroFlags(); void loadHeroFlags(std::pair Graphics::*, std::vector > &pr, bool mode); void loadHeroAnim(std::vector & anims); @@ -39,6 +44,7 @@ public: SDL_Surface * drawPrimarySkill(const CGHeroInstance *curh, SDL_Surface *ret, int from=0, int to=PRIMARY_SKILLS); SDL_Surface * drawTownInfoWin(const CGTownInstance * curh); SDL_Surface * getPic(int ID, bool fort=true, bool builded=false); //returns small picture of town: ID=-1 - blank; -2 - border; -3 - random + void blueToPlayersAdv(SDL_Surface * sur, int player); //replaces blue interface colour with a color of player }; extern Graphics * graphics; \ No newline at end of file