1 /* 2 * IceBreaker 3 * Copyright (c) 2002 Matthew Miller <mattdm@mattdm.org> 4 * 5 * <http://www.mattdm.org/icebreaker/> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the Free 9 * Software Foundation; either version 2 of the License, or (at your option) 10 * any later version. 11 * 12 * This program is distributed in the hope that it will be useful, but 13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15 * for more details. 16 * 17 * You should have received a copy of the GNU General Public License along 18 * with this program; if not, write to the Free Software Foundation, Inc., 59 19 * Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * 21 */ 22 23 #ifndef THEMES_H 24 #define THEMES_H 25 26 typedef struct 27 { 28 Uint32 background; 29 Uint32 normaltext; 30 Uint8 boardfillminr; 31 Uint8 boardfillming; 32 Uint8 boardfillminb; 33 Uint8 boardfillmaxr; 34 Uint8 boardfillmaxg; 35 Uint8 boardfillmaxb; 36 Uint32 gridline; 37 Uint32 gridhighlight; 38 Uint32 line1; 39 Uint32 line2; 40 Uint32 menuhighlight; 41 Uint32 gameovertext; 42 Uint32 scorescrolltext; 43 Uint32 bonusscrolltext; 44 Uint32 textentrybox; 45 Uint32 textentrytext; 46 Uint32 copyrighttext; 47 Uint32 spritetransparent; // fix -- this doesn't really belong here 48 49 } ThemeColorsType; 50 51 extern ThemeColorsType color; 52 53 extern SDL_Surface * spriteimage; 54 extern SDL_Surface * spritemirrorimage; 55 56 57 58 // you might expect sounds to go here, but in the interest of keeping 59 // SDL_mixer stuff confined to the sound module, it's done separately 60 61 int getthemenames(char*** themenamelist); 62 void freethemenames(char*** themenamelist,int numthemes); 63 int getthemenumber(char** themenamelist,int numthemes,char* themename); 64 int settheme(char* themename); 65 66 #endif /* THEMES_H */ 67