2007-01-15 12:09:25 -08:00
|
|
|
/*
|
|
|
|
This file is part of Warzone 2100.
|
|
|
|
Copyright (C) 1999-2004 Eidos Interactive
|
2009-02-10 10:01:48 -08:00
|
|
|
Copyright (C) 2005-2009 Warzone Resurrection Project
|
2007-01-15 12:09:25 -08:00
|
|
|
|
|
|
|
Warzone 2100 is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Warzone 2100 is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with Warzone 2100; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
2007-06-28 10:47:08 -07:00
|
|
|
#ifndef _piePalette_
|
|
|
|
#define _piePalette_
|
|
|
|
|
2007-11-23 13:51:48 -08:00
|
|
|
#include "lib/ivis_common/piedef.h"
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2008-03-23 13:04:37 -07:00
|
|
|
#define WZCOL_BLACK psPalette[0]
|
|
|
|
#define WZCOL_WHITE psPalette[1]
|
2007-11-26 13:48:36 -08:00
|
|
|
#define WZCOL_RELOAD_BACKGROUND psPalette[2]
|
2008-03-23 13:04:37 -07:00
|
|
|
#define WZCOL_RELOAD_BAR psPalette[3]
|
|
|
|
#define WZCOL_HEALTH_HIGH psPalette[4]
|
|
|
|
#define WZCOL_HEALTH_MEDIUM psPalette[5]
|
|
|
|
#define WZCOL_HEALTH_LOW psPalette[6]
|
|
|
|
#define WZCOL_GREEN psPalette[7]
|
|
|
|
#define WZCOL_RED psPalette[8]
|
|
|
|
#define WZCOL_YELLOW psPalette[9]
|
2007-11-26 14:10:31 -08:00
|
|
|
#define WZCOL_MENU_BACKGROUND psPalette[10]
|
2008-03-23 13:04:37 -07:00
|
|
|
#define WZCOL_MENU_BORDER psPalette[11]
|
2007-11-26 14:10:31 -08:00
|
|
|
#define WZCOL_MENU_LOAD_BORDER psPalette[12]
|
2008-03-23 13:04:37 -07:00
|
|
|
#define WZCOL_CURSOR psPalette[13]
|
2007-11-26 14:59:21 -08:00
|
|
|
#define WZCOL_MENU_SCORES_INTERIOR psPalette[14]
|
2007-12-02 08:38:21 -08:00
|
|
|
#define WZCOL_MENU_SEPARATOR psPalette[15]
|
2008-03-23 13:04:37 -07:00
|
|
|
#define WZCOL_TEXT_BRIGHT psPalette[16]
|
|
|
|
#define WZCOL_TEXT_MEDIUM psPalette[17]
|
|
|
|
#define WZCOL_TEXT_DARK psPalette[18]
|
2007-12-09 05:11:09 -08:00
|
|
|
#define WZCOL_SCORE_BOX_BORDER psPalette[19]
|
2008-03-23 13:04:37 -07:00
|
|
|
#define WZCOL_SCORE_BOX psPalette[20]
|
|
|
|
#define WZCOL_TOOLTIP_TEXT psPalette[21]
|
2007-12-09 08:09:23 -08:00
|
|
|
#define WZCOL_UNIT_SELECT_BORDER psPalette[22]
|
|
|
|
#define WZCOL_UNIT_SELECT_BOX psPalette[23]
|
2007-12-09 09:23:34 -08:00
|
|
|
#define WZCOL_RADAR_BACKGROUND psPalette[24]
|
2007-12-09 13:50:47 -08:00
|
|
|
#define WZCOL_MAP_OUTLINE_OK psPalette[25]
|
|
|
|
#define WZCOL_MAP_OUTLINE_BAD psPalette[26]
|
2008-03-23 13:04:37 -07:00
|
|
|
#define WZCOL_KEYMAP_ACTIVE psPalette[27]
|
|
|
|
#define WZCOL_KEYMAP_FIXED psPalette[28]
|
2008-01-20 15:01:13 -08:00
|
|
|
#define WZCOL_MENU_SCORE_LOSS psPalette[29]
|
|
|
|
#define WZCOL_MENU_SCORE_DESTROYED psPalette[30]
|
|
|
|
#define WZCOL_MENU_SCORE_BUILT psPalette[31]
|
|
|
|
#define WZCOL_MENU_SCORE_RANK psPalette[32]
|
2008-01-21 08:57:00 -08:00
|
|
|
#define WZCOL_FRAME_BORDER_NORMAL psPalette[33]
|
2008-03-23 13:04:37 -07:00
|
|
|
#define WZCOL_CONS_TEXT_SYSTEM psPalette[34]
|
|
|
|
#define WZCOL_CONS_TEXT_USER psPalette[35]
|
|
|
|
#define WZCOL_CONS_TEXT_USER_ALLY psPalette[36]
|
|
|
|
#define WZCOL_CONS_TEXT_USER_ENEMY psPalette[37]
|
|
|
|
#define WZCOL_CONS_TEXT_DEBUG psPalette[38]
|
2008-04-07 12:07:43 -07:00
|
|
|
#define WZCOL_GREY psPalette[39]
|
|
|
|
#define WZCOL_MAP_PREVIEW_AIPLAYER psPalette[40]
|
2008-05-28 15:08:49 -07:00
|
|
|
#define WZCOL_MENU_SHADOW psPalette[41]
|
2008-08-01 21:28:58 -07:00
|
|
|
#define WZCOL_DBLUE psPalette[42]
|
|
|
|
#define WZCOL_LBLUE psPalette[43]
|
2009-03-11 15:55:41 -07:00
|
|
|
#define WZCOL_BLUEPRINT_VALID psPalette[44]
|
|
|
|
#define WZCOL_BLUEPRINT_INVALID psPalette[45]
|
|
|
|
#define WZCOL_BLUEPRINT_PLANNED psPalette[46]
|
2008-08-03 14:06:39 -07:00
|
|
|
|
2009-03-11 15:55:41 -07:00
|
|
|
#define WZCOL_MAX 47
|
2007-11-26 13:48:36 -08:00
|
|
|
|
2007-06-28 10:47:08 -07:00
|
|
|
//*************************************************************************
|
|
|
|
|
2007-11-26 13:48:36 -08:00
|
|
|
extern PIELIGHT psPalette[];
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
//*************************************************************************
|
2008-01-21 09:06:31 -08:00
|
|
|
|
2007-06-28 10:47:08 -07:00
|
|
|
extern void pal_Init(void);
|
|
|
|
extern void pal_ShutDown(void);
|
|
|
|
|
2007-12-09 05:11:09 -08:00
|
|
|
static inline PIELIGHT pal_Colour(UBYTE r, UBYTE g, UBYTE b)
|
|
|
|
{
|
|
|
|
PIELIGHT c;
|
|
|
|
|
|
|
|
c.byte.r = r;
|
|
|
|
c.byte.g = g;
|
|
|
|
c.byte.b = b;
|
|
|
|
c.byte.a = UBYTE_MAX;
|
|
|
|
|
|
|
|
return c;
|
|
|
|
}
|
|
|
|
|
2008-01-21 09:06:31 -08:00
|
|
|
static inline PIELIGHT pal_SetBrightness(UBYTE brightness)
|
|
|
|
{
|
|
|
|
PIELIGHT c;
|
|
|
|
|
|
|
|
c.byte.r = brightness;
|
|
|
|
c.byte.g = brightness;
|
|
|
|
c.byte.b = brightness;
|
|
|
|
c.byte.a = UBYTE_MAX;
|
|
|
|
|
|
|
|
return c;
|
|
|
|
}
|
|
|
|
|
2007-06-28 10:47:08 -07:00
|
|
|
#endif
|