src/game/Utils/MercTextBox.cc
static void GetMercPopupBoxFontColor(UINT8 ubBackgroundIndex, UINT8* pubFontColor, UINT8* pubFontShadowColor)
{
	switch( ubBackgroundIndex )
	{
		case BASIC_MERC_POPUP_BACKGROUND:
			*pubFontColor = TEXT_POPUP_COLOR;
			*pubFontShadowColor = DEFAULT_SHADOW;
			break;

		case WHITE_MERC_POPUP_BACKGROUND:
			*pubFontColor = 2;
			*pubFontShadowColor = FONT_MCOLOR_WHITE;
			break;

		case GREY_MERC_POPUP_BACKGROUND:
			*pubFontColor = 2;
			*pubFontShadowColor = NO_SHADOW;
			break;

		case LAPTOP_POPUP_BACKGROUND:
			*pubFontColor = TEXT_POPUP_COLOR;
			*pubFontShadowColor = DEFAULT_SHADOW;
			break;

		default:
			*pubFontColor = TEXT_POPUP_COLOR;
			*pubFontShadowColor = DEFAULT_SHADOW;
			break;
	}
}
//Pass in the background index, and pointers to the font and shadow color
Pass in the background index, and pointers to the font and shadow color
Pass in the background index and pointers to the font and shadow color
static void GetMercPopupBoxFontColor(UINT8 ubBackgroundIndex, UINT8* pubFontColor, UINT8* pubFontShadowColor)
{
	switch( ubBackgroundIndex )
	{
		case BASIC_MERC_POPUP_BACKGROUND:
			*pubFontColor = TEXT_POPUP_COLOR;
			*pubFontShadowColor = DEFAULT_SHADOW;
			break;
		case WHITE_MERC_POPUP_BACKGROUND:
			*pubFontColor = 2;
			*pubFontShadowColor = FONT_MCOLOR_WHITE;
			break;
		case GREY_MERC_POPUP_BACKGROUND:
			*pubFontColor = 2;
			*pubFontShadowColor = NO_SHADOW;
			break;
		case LAPTOP_POPUP_BACKGROUND:
			*pubFontColor = TEXT_POPUP_COLOR;
			*pubFontShadowColor = DEFAULT_SHADOW;
			break;
		default:
			*pubFontColor = TEXT_POPUP_COLOR;
			*pubFontShadowColor = DEFAULT_SHADOW;
			break;
	}
}
static void GetMercPopupBoxFontColor ( UINT8 ubBackgroundIndex , UINT8 * pubFontColor , UINT8 * pubFontShadowColor ) { switch ( ubBackgroundIndex ) { case BASIC_MERC_POPUP_BACKGROUND : * pubFontColor = TEXT_POPUP_COLOR ; * pubFontShadowColor = DEFAULT_SHADOW ; break ; case WHITE_MERC_POPUP_BACKGROUND : * pubFontColor = 2 ; * pubFontShadowColor = FONT_MCOLOR_WHITE ; break ; case GREY_MERC_POPUP_BACKGROUND : * pubFontColor = 2 ; * pubFontShadowColor = NO_SHADOW ; break ; case LAPTOP_POPUP_BACKGROUND : * pubFontColor = TEXT_POPUP_COLOR ; * pubFontShadowColor = DEFAULT_SHADOW ; break ; default : * pubFontColor = TEXT_POPUP_COLOR ; * pubFontShadowColor = DEFAULT_SHADOW ; break ; } }
Pass in the background index, and pointers to the font and shadow color
Pass in the background index and pointers to the font and shadow color