//-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------

//$Gui::fontCacheDirectory = "../fonts";//getUserDataDirectory() @ "/Worthless Bums/Steam Marines/fonts/";

if ($platform $= "windows")
{
	$platformFontType = $GameFont;
	$platformFontSize = 16;
}
else if ($platform $= "Android")
{
	$platformFontType = "Droid";
	$platformFontSize = 16;
}
else
{
	$platformFontType = $GameFont;
	$platformFontSize = 16;
}
if ($platform $= "ios")
	$platformFontSize = 16;
else if ($platform $= "Android")
	$platformFontSize = 14;
else
	$platformFontSize = 16;

//-----------------------------------------------------------------------------

/*new GuiCursor(DefaultCursor)
{
    hotSpot = "4 4";
    renderOffset = "0 0";
    bitmapName = "^AppCore/gui/images/defaultCursor";
};*/

//---------------------------------------------------------------------------------------------
// GuiDefaultProfile is a special profile that all other profiles inherit defaults from. It
// must exist.
//---------------------------------------------------------------------------------------------
if (!isObject(GuiDefaultProfile)) new GuiControlProfile (GuiDefaultProfile)
{
	tab = false;
	canKeyFocus = false;
	hasBitmapArray = false;
	mouseOverSelected = false;
	
	// fill color
	opaque = false;
	fillColor = "211 211 211";
	fillColorHL = "244 244 244";
	fillColorNA = "244 244 244";
	
	// border color
	border = 0;
	borderColor   = "40 40 40 100";
	borderColorHL = "128 128 128";
	borderColorNA = "64 64 64";
	
	// font
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	
	fontColor = "0 0 0";
	fontColorHL = "32 100 100";
	fontColorNA = "0 0 0";
	fontColorSEL= "200 200 200";
	
	// bitmap information
	bitmap = "^AppCore/gui/images/window";
	bitmapBase = "";
	textOffset = "0 0";
	
	// used by guiTextControl
	modal = true;
	justify = "left";
	autoSizeWidth = false;
	autoSizeHeight = false;
	returnTab = false;
	numbersOnly = false;
	cursorColor = "0 0 0 255";
	
	// sounds
	soundButtonDown = "";
	soundButtonOver = "";
};

// ----------------------------------------------------------------------------

if (!isObject(GuiTransparentProfile)) new GuiControlProfile (GuiTransparentProfile : GuiDefaultProfile)
{
    opaque = false;
    border = false;
};

// ----------------------------------------------------------------------------

if(!isObject(GuiSolidProfile)) new GuiControlProfile (GuiSolidProfile)
{
   opaque = true;
   border = true;
};

// ----------------------------------------------------------------------------

if (!isObject(GuiToolTipProfile)) new GuiControlProfile (GuiToolTipProfile : GuiDefaultProfile)
{
    fillColor = "246 220 165 255";
    
    fontType = $platformFontType;
    fontSize = $platformFontSize;
};

// ----------------------------------------------------------------------------

if (!isObject(GuiPopupMenuItemBorder)) new GuiControlProfile (GuiPopupMenuItemBorder : GuiDefaultProfile)
{
    bitmap = "^AppCore/gui/images/scroll";
    hasBitmapArray = true;
};

// ----------------------------------------------------------------------------

if (!isObject(GuiPopUpMenuDefault)) new GuiControlProfile (GuiPopUpMenuDefault)
{
    tab = false;
    canKeyFocus = false;
    hasBitmapArray = false;
    mouseOverSelected = false;

    // fill color
    opaque = false;
    fillColor = "255 255 255 192";
    fillColorHL = "255 0 0 192";
    fillColorNA = "0 0 255 255";

    // border color
    border = 1;
    borderColor    = "100 100 100 255";
    borderColorHL = "0 128 0 255";
    borderColorNA = "0 226 226 52";

    // font
    fontType = $platformFontType;
    fontSize = $platformFontSize;

    fontColor = "27 59 95 255";
    fontColorHL = "232 240 248 255";
    fontColorNA = "0 0 0 255";
    fontColorSEL= "255 255 255 255";

    // bitmap information
    bitmap = "^AppCore/gui/images/scroll";
    hasBitmapArray = true;
    bitmapBase = "";
    textOffset = "0 0";

    // used by guiTextControl
    modal = true;
    justify = "left";
    autoSizeWidth = false;
    autoSizeHeight = false;
    returnTab = false;
    numbersOnly = false;
    cursorColor = "0 0 0 255";

    profileForChildren = GuiPopupMenuItemBorder;
    // sounds
    soundButtonDown = "";
    soundButtonOver = "";
};

// ----------------------------------------------------------------------------

if (!isObject(GuiPopUpMenuProfile)) new GuiControlProfile (GuiPopUpMenuProfile : GuiPopUpMenuDefault)
{
	fontSize = $defaultFontSize;
    textOffset = "6 3";
    justify = "center";
    bitmap = "^AppCore/gui/images/dropDown";
    hasBitmapArray = true;
    border = -3;
    profileForChildren = GuiPopUpMenuDefault;
    opaque = true;
};

//-----------------------------------------------------------------------------

if (!isObject(GuiTextProfile)) new GuiControlProfile (GuiTextProfile)
{
	border = false;
	fontType = $platformFontType;
	fontSize = $platformFontSize;
	fontColor = "black";//"white";
	modal = true;
	justify = "left";
	autoSizeWidth = false;
	autoSizeHeight = false;
	returnTab = false;
	numbersOnly = false;
	cursorColor = "0 0 0 255";
};

//-----------------------------------------------------------------------------

if (!isObject(GuiCheckBoxProfile)) new GuiControlProfile (GuiCheckBoxProfile)
{
    opaque = false;
    fontColor = "white";
    fillColor = "232 232 232 255";
    fontColorHL = "white";
    border = false;
    borderColor = "0 0 0 255";
    fontType = $platformFontType;
    fontSize = $platformFontSize;
    fixedExtent = true;
    justify = "left";
    bitmap = "^AppCore/gui/images/checkBox";
    hasBitmapArray = true;
};

//-----------------------------------------------------------------------------

if(!isObject(GuiConsoleProfile)) new GuiControlProfile (GuiConsoleProfile)
{
    fontType = $platformFontType;
    fontSize = $defaultFontSize;//$platformFontSize * 1.1;
    fontColor = White;
    fontColorHL = LightSlateGray;
    fontColorNA = Red;
	maxColorIndex = 9;
    fontColors[6] = "100 100 100";
    fontColors[7] = "100 100 0";
    fontColors[8] = "0 0 100";
    fontColors[9] = "0 100 0";
};

//-----------------------------------------------------------------------------

if (!isObject(GuiTextEditProfile)) new GuiControlProfile (GuiTextEditProfile)
{
    fontSize = $platformFontSize;
    opaque = false;
    fillColor = "232 240 248 255";
    fillColorHL = "251 170 0 255";
    fillColorNA = "127 127 127 52";
    border = -2;
    bitmap = "^AppCore/gui/images/textEdit.png";
    borderColor = "40 40 40 10";
    fontColor = "27 59 95 255";
    fontColorHL = "232 240 248 255";
    fontColorNA = "0 0 0 52";
    fontColorSEL = "0 0 0 255";
    textOffset = "5 2";
    autoSizeWidth = false;
    autoSizeHeight = false;
    tab = false;
    canKeyFocus = true;
    returnTab = true;
};

//-----------------------------------------------------------------------------

if(!isObject(GuiNumberEditProfile)) new GuiControlProfile (GuiNumberEditProfile: GuiTextEditProfile)
{
   numbersOnly = true;
};

//-----------------------------------------------------------------------------

if (!isObject(GuiConsoleTextEditProfile)) new GuiControlProfile (GuiConsoleTextEditProfile : GuiTextEditProfile)
{
	fontType = $GameFont;
	fontColor = "0 0 0";
	fontSize = $defaultFontSize;
};

//-----------------------------------------------------------------------------

// From /scripts/profiles.cs!
if (!isObject(GuiScrollProfile)) new GuiControlProfile (GuiScrollProfile)
{
	opaque = true;
	fillColor = "50 50 50";			// Keybinding tab background color.
	border = 1;
	borderThickness = 2;
	bitmap = "../gui/images/scrollBar";
	hasBitmapArray = true;
};

//-----------------------------------------------------------------------------

if(!isObject(GuiTransparentScrollProfile)) new GuiControlProfile (GuiTransparentScrollProfile)
{
   opaque = false;
   fillColor = "255 255 255";
   border = false;
   borderThickness = 2;
   borderColor = "0 0 0";
   bitmap = "^AppCore/gui/images/scrollBar.png";
   hasBitmapArray = true;
};

//-----------------------------------------------------------------------------

if (!isObject(ConsoleScrollProfile)) new GuiControlProfile( ConsoleScrollProfile : GuiScrollProfile )
{
	fontSize = $defaultFontSize;
    opaque = true;
    fillColor = "0 0 0 120";
    border = 3;
    borderThickness = 0;
    borderColor = "0 0 0";
};

//-----------------------------------------------------------------------------

if(!isObject(GuiToolboxProfile)) new GuiControlProfile( GuiToolboxProfile : GuiScrollProfile )
{
	fontSize = $defaultFontSize;
    opaque = true;
    fillColor = "255 255 255 220";
    border = 3;
    borderThickness = 0;
    borderColor = "0 0 0";
};

//-----------------------------------------------------------------------------

if(!isObject(AppCoreWindowProfile)) new GuiControlProfile (AppCoreWindowProfile : GuiDefaultProfile)
{
	fontSize = $defaultFontSize;
    // fill color
    opaque = false;
    fillColor = "0 0 0 92";

    // font
    fontType = $platformFontType;
    fontSize = $platformFontSize;
    fontColor = "255 255 255 255";
}; 

//-----------------------------------------------------------------------------

/*if (!isObject(GuiButtonProfile)) new GuiControlProfile (GuiButtonProfile)
{
    opaque = true;
    border = -1;
    fontColor = "white";
    fontColorHL = "229 229 229 255";
    fixedExtent = true;
    justify = "center";
    canKeyFocus = false;
    fontType = $platformFontType;
    bitmap = "^AppCore/gui/images/smallButtonContainer";
};*/
// From /scripts/profiles.cs!
if (!isObject(GuiButtonProfile)) new GuiControlProfile (GuiButtonProfile)
{
	fontSize = 16;//$defaultFontSize;
	opaque = true;
	border = -1;
	fontColor = "0 0 0";
	fontColorHL = "32 100 100";
	fixedExtent = true;
	justify = "center";
	canKeyFocus = false;
	bitmap = "../gui/images/button";
};

if (!isObject(CustomGuiButtonProfile)) new GuiControlProfile (CustomGuiButtonProfile)
{
	font = $GameFont;
	fontSize = 16;//$defaultFontSize;
	opaque = true;
	//border = -1;
	
	fontColor = "255 150 0";
	fontColorHL = "192 112 0";
	
	//fixedExtent = true;
	justify = "center";
	//canKeyFocus = false;
	//bitmap = "../gui/images/button";
};

//-----------------------------------------------------------------------------

if (!isObject(BlueButtonProfile)) new GuiControlProfile (BlueButtonProfile : GuiButtonProfile)
{
    fontSize = $platformFontSize;
    fontColor = "255 255 255 255";
    fontColorHL = "255 255 255 255";
    bitmap = "^AppCore/gui/images/blueButton.png";
};

//-----------------------------------------------------------------------------

if (!isObject(RedButtonProfile)) new GuiControlProfile (RedButtonProfile : GuiButtonProfile)
{
    fontSize = $platformFontSize;
    fontColor = "255 255 255 255";
    fontColorHL = "255 255 255 255";
    bitmap = "^AppCore/gui/images/redButton.png";
};

//-----------------------------------------------------------------------------

if (!isObject(GreenButtonProfile)) new GuiControlProfile (GreenButtonProfile : GuiButtonProfile)
{
    fontSize = $platformFontSize;
    fontColor = "255 255 255 255";
    fontColorHL = "255 255 255 255";
    bitmap = "^AppCore/gui/images/greenButton.png";
};

//-----------------------------------------------------------------------------

if (!isObject(GuiRadioProfile)) new GuiControlProfile (GuiRadioProfile : GuiDefaultProfile)
{
    fillColor = "232 232 232 255";
    fixedExtent = true;
    bitmap = "^AppCore/gui/images/radioButton.png";
    hasBitmapArray = true;
};

//-----------------------------------------------------------------------------

if (!isObject(GuiSliderProfile)) new GuiControlProfile (GuiSliderProfile)
{
    bitmap = "^AppCore/gui/images/slider.png";
    fontType = $platformFontType;
    fontSize = $platformFontSize;
    fontColor = "white";
};

//-----------------------------------------------------------------------------

if (!isObject(GuiSliderNoTextProfile)) new GuiControlProfile (GuiSliderNoTextProfile)
{
    bitmap = "^AppCore/gui/images/slider.png";
    fontColor = "white";
    fontSize = 1;
};

//-----------------------------------------------------------------------------

if (!isObject(GuiSpinnerProfile)) new GuiControlProfile (GuiSpinnerProfile)
{
    fontType = $platformFontType;
    fontSize = $platformFontSize;
    opaque = false;
    justify = "center";
    fillColor = "232 240 248 255";
    fillColorHL = "251 170 0 255";
    fillColorNA = "127 127 127 52";
    numbersOnly = true;
    border = -2;
    bitmap = "^AppCore/gui/images/textEdit_noSides";
    borderColor = "40 40 40 10";
    fontColor = "27 59 95 255";
    fontColorHL = "232 240 248 255";
    fontColorNA = "0 0 0 52";
    fontColorSEL = "0 0 0 255";
    textOffset = "4 2";
    autoSizeWidth = false;
    autoSizeHeight = false;
    tab = false;
    canKeyFocus = true;
    returnTab = true;
};

//-----------------------------------------------------------------------------

if (!isObject(GuiLightScrollProfile)) new GuiControlProfile (GuiLightScrollProfile : GuiScrollProfile)
{
    opaque = false;
    fillColor = "212 216 220";
    border = 0;
    bitmap = "^AppCore/gui/images/scrollBar";
    hasBitmapArray = true;
};

//-----------------------------------------------------------------------------

if (!isObject(GuiSunkenContainerProfile)) new GuiControlProfile (GuiSunkenContainerProfile)
{
    opaque = false;
    fillColor = "232 240 248 255";
    fillColorHL = "251 170 0 255";
    fillColorNA = "127 127 127 52";
    border = -2;
    bitmap = "^AppCore/gui/images/sunkenContainer";
    borderColor = "40 40 40 10";
};



//--------------------------------------------------------------
// BELOW IS FROM SCRIPTS/PROFILES
//--------------------------------------------------------------
if (!isObject(GuiSolidDefaultProfile)) new GuiControlProfile (GuiSolidDefaultProfile)
{
	opaque = true;
	border = true;
};

if (!isObject(GuiTransparentProfile)) new GuiControlProfile (GuiTransparentProfile)
{
	opaque = false;
	border = false;
};


if (!isObject(GuiToolTipProfile)) new GuiControlProfile (GuiToolTipProfile)
{
	// fill color
	fillColor = "239 237 222";
	
	// border color
	borderColor   = "138 134 122";
	
	// font
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "0 0 0";
};

if (!isObject(GuiModelessDialogProfile)) new GuiControlProfile("GuiModelessDialogProfile")
{
	modal = false;
};

if (!isObject(GuiFrameSetProfile)) new GuiControlProfile (GuiFrameSetProfile)
{
	fillColor = "239 237 222";
	borderColor   = "138 134 122";
	opaque = true;
	border = true;
};

if (!isObject(GuiWindowProfile)) new GuiControlProfile (GuiWindowProfile)
{
	opaque = true;
	border = 1;
	fillColor = "211 211 211";
	fillColorHL = "190 255 255";
	fillColorNA = "255 255 255";
	fontColor = "0 0 0";
	fontColorHL = "200 200 200";
	text = "untitled";
	bitmap = "^AppCore/gui/images/window";
	textOffset = "5 5";
	hasBitmapArray = true;
	justify = "center";
};
// Remap Window GUI Profile.
if (!isObject(RemapWindowProfile)) new GuiControlProfile (RemapWindowProfile)
{
	opaque = true;
	border = 1;
	fillColor = "60 60 60";
	fillColorHL = "190 255 255";
	fillColorNA = "255 255 255";
	fontColor = "0 0 0";
	fontColorHL = "200 200 200";
	text = "untitled";
	bitmap = "^AppCore/gui/images/window";
	textOffset = "5 5";
	hasBitmapArray = true;
	justify = "center";
};
// Remap Text GUI Profile.
if (!isObject(RemapTextProfile)) new GuiControlProfile (RemapTextProfile)
{
	fontSize = $defaultFontSize;
	opaque = true;
	border = 1;
	fillColor = "60 60 60";
	fillColorHL = "190 255 255";
	fillColorNA = "255 255 255";
	fontColor = "96 220 220";
	fontColorHL = "200 200 200";
	text = "untitled";
	bitmap = "^AppCore/gui/images/window";
	textOffset = "5 5";
	hasBitmapArray = true;
	justify = "center";
};

if (!isObject(GuiContentProfile)) new GuiControlProfile (GuiContentProfile)
{
	opaque = true;
	fillColor = "255 255 255";
};

if (!isObject(GuiBlackContentProfile)) new GuiControlProfile (GuiBlackContentProfile)
{
	opaque = true;
	fillColor = "0 0 0";
};

if(!isObject(GuiInputCtrlProfile)) new GuiControlProfile( GuiInputCtrlProfile )
{
   tab = true;
   canKeyFocus = true;
};

/*if (!isObject(GuiTextProfile)) new GuiControlProfile (GuiTextProfile)
{
	fontSize = $defaultFontSize;
	fontColor = "0 0 0";
};*/

if(!isObject(GuiMediumTextProfile)) new GuiControlProfile (GuiMediumTextProfile : GuiTextProfile)
{
	fontSize = $defaultFontSize;
};

if(!isObject(GuiBigTextProfile)) new GuiControlProfile (GuiBigTextProfile : GuiTextProfile)
{
	fontSize = $defaultFontSize;
};

if(!isObject(GuiMLTextProfile)) new GuiControlProfile ("GuiMLTextProfile")
{
   fontColorLink = "255 96 96";
   fontColorLinkHL = "0 0 255";
   autoSizeWidth = true;
   autoSizeHeight = true;  
   border = false;
};

if(!isObject(GuiTextArrayProfile)) new GuiControlProfile (GuiTextArrayProfile : GuiTextProfile)
{
   fontColorHL = "32 100 100";
   fillColorHL = "200 200 200";
};

// Keybindings text GUI profile.
if (!isObject(GuiTextListProfile)) new GuiControlProfile (GuiTextListProfile : GuiTextProfile) 
{
	//fontType = $GameFont;				// Hardcoded otherwise crash! $GameFont init issue?
	fontSize = 16;//$defaultFontSize;	// Hardcoded otherwise crash! $defaultFontSize init issue?
	tab = true;
	canKeyFocus = true;
	fontColor = "150 150 150";
	fontColorHL = "96 220 220";
	fillColor = "100 100 100";
	fillColorHL = "200 200 200";	// Options' tabs background color.
};

if(!isObject(GuiTextEditProfile)) new GuiControlProfile (GuiTextEditProfile)
{
   opaque = true;
   fillColor = "255 255 255";
   fillColorHL = "128 128 128";
   border = -2;
   bitmap = "../gui/images/textEdit";
   borderColor = "40 40 40 100";
   fontColor = "0 0 0";
   fontColorHL = "255 255 255";
   fontColorNA = "128 128 128";
   textOffset = "4 2";
   autoSizeWidth = false;
   autoSizeHeight = true;
   tab = true;
   canKeyFocus = true;
   
};

if(!isObject(GuiProgressProfile)) new GuiControlProfile ("GuiProgressProfile")
{
   opaque = false;
   fillColor = "44 152 162 100";
   border = true;
   borderColor   = "78 88 120";
};

if(!isObject(GuiProgressTextProfile)) new GuiControlProfile ("GuiProgressTextProfile")
{
   fontColor = "0 0 0";
   justify = "center";
};

/*if (!isObject(GuiButtonProfile)) new GuiControlProfile (GuiButtonProfile)
{
   opaque = true;
   border = -1;
   fontColor = "0 0 0";
   fontColorHL = "32 100 100";
   fixedExtent = true;
   justify = "center";
   canKeyFocus = false;
   bitmap = "../gui/images/button";
};*/

if(!isObject(GuiCheckBoxProfile)) new GuiControlProfile (GuiCheckBoxProfile)
{
   opaque = false;
   fillColor = "232 232 232";
   border = false;
   borderColor = "0 0 0";
   fontSize = 14;
   fontColor = "0 0 0";
   fontColorHL = "32 100 100";
   fixedExtent = true;
   justify = "left";
   bitmap = "../gui/images/checkBox";
   hasBitmapArray = true;
};

if(!isObject(GuiRadioProfile)) new GuiControlProfile (GuiRadioProfile)
{
   fontSize = $defaultFontSize;
   fillColor = "232 232 232";
   fontColorHL = "32 100 100";
   fixedExtent = true;
   bitmap = "../gui/images/radioButton";
   hasBitmapArray = true;
};

if(!isObject(GuiTransparentScrollProfile)) new GuiControlProfile (GuiTransparentScrollProfile)
{
   opaque = false;
   fillColor = "255 255 255";
   border = false;
   borderThickness = 2;
   borderColor = "0 0 0";
   bitmap = "../gui/images/scrollBar";
   hasBitmapArray = true;
};
 
if (!isObject(GuiSliderProfile)) new GuiControlProfile (GuiSliderProfile)
{
	//bitmap = "";//"../gui/images/slider";	// HAH! Better than this one!
	bitmap = "../gui/images/sliderCustom";
};

if (!isObject(GuiPaneProfile)) new GuiControlProfile(GuiPaneProfile)
{
	bitmap = "../gui/images/popupMenu";
	hasBitmapArray = true;
};



if (!isObject(GuiPopupMenuItemBorder)) new GuiControlProfile ( GuiPopupMenuItemBorder : GuiButtonProfile )
{
	borderColor = "51 51 53 200";
	borderColorHL = "51 51 53 200";
};
if (!isObject(GuiPopUpMenu)) new GuiControlProfile (GuiPopUpMenuDefault : GuiDefaultProfile )
{
	opaque = true;
	mouseOverSelected = true;
	textOffset = "3 3";
	border = 4;
	borderThickness = 2;
	fixedExtent = true;
	bitmap = "../gui/images/scrollBar";
	hasBitmapArray = true;
	profileForChildren = GuiPopupMenuItemBorder;
	fillColor = "255 255 255 200";
	fontColorHL = "128 128 128";
	borderColor = "151 151 153 175";
	borderColorHL = "151 151 153 175";
};


if (!isObject(GuiPopUpMenuProfile)) new GuiControlProfile (GuiPopUpMenuProfile : GuiPopUpMenuDefault)
{
	fontSize = $defaultFontSize;
	textOffset         = "6 3";
	bitmap             = "../gui/images/dropDown";
	hasBitmapArray     = true;
	border             = -3;
	profileForChildren = GuiPopUpMenuDefault;
};

if(!isObject(GuiPopUpMenuEditProfile)) new GuiControlProfile (GuiPopUpMenuEditProfile : GuiPopUpMenuDefault)
{
   textOffset         = "6 3";
   canKeyFocus        = true;
   bitmap             = "../gui/images/dropDown";
   hasBitmapArray     = true;
   border             = -3;
   profileForChildren = GuiPopUpMenuDefault;
};

if(!isObject(GuiListBoxProfile)) new GuiControlProfile (GuiListBoxProfile)
{
   tab = true;
   canKeyFocus = true;
};

if(!isObject(GuiTabBookProfile)) new GuiControlProfile (GuiTabBookProfile)
{
   fillColor = "255 255 255";
   fillColorHL = "64 150 150";
   fillColorNA = "150 150 150";
   fontColor = "30 30 30";
   fontColorHL = "32 100 100";
   fontColorNA = "0 0 0";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
   justify = "center";
   bitmap = "../gui/images/tab";
   tabWidth = 64;
   tabHeight = 24;
   tabPosition = "Top";
   tabRotation = "Horizontal";
   textOffset = "0 -2";
   tab = true;
   cankeyfocus = true;
};
if(!isObject(GuiTabPageProfile)) new GuiControlProfile (GuiTabPageProfile : GuiTransparentProfile )
{
   fillColor = "255 255 255";
   opaque = true;
};

if (!isObject(GuiMenuBarProfile)) new GuiControlProfile (GuiMenuBarProfile)
{
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	opaque = true;
	fillColor = "239 237 222";
	fillColorHL = "102 153 204";
	borderColor = "138 134 122";
	borderColorHL = "0 51 153";
	border = 5;
	fontColor = "0 0 0";
	fontColorHL = "255 255 255";
	fontColorNA = "128 128 128";
	fixedExtent = true;
	justify = "center";
	canKeyFocus = false;
	mouseOverSelected = true;
	bitmap = "../gui/images/menu";
	hasBitmapArray = true;
};

if (!isObject(GuiConsoleProfile)) new GuiControlProfile (GuiConsoleProfile)
{
	fontType = $GameFont;
	fontSize = 12;
	fontColor = "0 0 0";
	fontColorHL = "130 130 130";
	fontColorNA = "255 0 0";
	maxColorIndex = 9;
	fontColors[6] = "50 50 50";
	fontColors[7] = "50 50 0";  
	fontColors[8] = "0 0 50"; 
	fontColors[9] = "0 50 0";   
};

if (!isObject(GuiTreeViewProfile)) new GuiControlProfile (GuiTreeViewProfile)
{
   fillColorHL = "0 60 150";
   fontSize = 14;
   fontColor = "0 0 0";
   fontColorHL = "64 150 150";
   fontColorNA = "240 240 240";
   fontColorSEL= "250 250 250"; 
   bitmap = "../gui/images/treeView";
   canKeyFocus = true;
   autoSizeHeight = true;
};

//*** DAW:
if(!isObject(GuiText24Profile)) new GuiControlProfile (GuiText24Profile : GuiTextProfile)
{
   fontSize = 24;
};

if(!isObject(GuiRSSFeedMLTextProfile)) new GuiControlProfile ("GuiRSSFeedMLTextProfile")
{
   fontColorLink = "55 55 255";
   fontColorLinkHL = "255 55 55";
};



//--------------------------------------------------------------
// BELOW IS FROM SCRIPTS/PROFILES
//--------------------------------------------------------------
if (!isObject(ExampleWindowProfile)) new GuiControlProfile(ExampleWindowProfile)
{
	opaque = true;
	border = 1;
	fillColor = "211 211 211";
	fillColorHL = "190 255 255";
	fillColorNA = "255 255 255";
	fontColor = "0 0 0";
	fontColorHL = "200 200 200";
	text = "untitled";
	bitmap = "^AppCore/gui/images/window";
	textOffset = "5 5";
	hasBitmapArray = true;
	justify = "center";
};

if (!isObject(ExampleScrollProfile)) new GuiControlProfile(ExampleScrollProfile)
{
	opaque = true;
	fillColor = "255 255 255";
	border = 1;
	borderThickness = 2;
	bitmap = "../gui/images/scrollBar";
	hasBitmapArray = true;
};

if (!isObject(ExampleButtonProfile)) new GuiControlProfile(ExampleButtonProfile)
{
	opaque = true;
	border = -1;
	fontColor = "0 0 0";
	fontColorHL = "32 100 100";
	fixedExtent = true;
	justify = "center";
	canKeyFocus = false;
	bitmap = "../gui/images/button";
};

if (!isObject(ExampleTextProfile)) new GuiControlProfile(ExampleTextProfile)
{
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "0 0 0";
};


// CUSTOM GUI PROFILES.

if (!isObject(GuiCustomButtonProfile)) new GuiControlProfile (GuiCustomButtonProfile)
{
   tab = true;
   canKeyFocus = true;
   hasBitmapArray = false;
   mouseOverSelected = true;
   border = 0;
   filterMode = "NONE";
	
	/*
   // fill color
   opaque = false;
   fillColor = "211 211 211";
   fillColorHL = "244 244 244";
   fillColorNA = "244 244 244";

   // border color
   border = 1;
   borderColor   = "40 40 40 100";
   borderColorHL = "128 128 128";
   borderColorNA = "64 64 64";

   // font
   fontType = $GameFont;
   fontSize = 14;

   fontColor = "0 0 0";
   fontColorHL = "32 100 100";
   fontColorNA = "0 0 0";
   fontColorSEL= "200 200 200";

   // bitmap information
   bitmap = "^AppCore/gui/images/window";
   bitmapBase = "";
   textOffset = "0 0";

   // used by guiTextControl
   modal = true;
   justify = "left";
   autoSizeWidth = false;
   autoSizeHeight = false;
   returnTab = false;
   numbersOnly = false;
   cursorColor = "0 0 0 255";

   // sounds
   soundButtonDown = "";
   soundButtonOver = "";
   */
};

// For Overworld Map Text.
if (!isObject(OverworldTextProfile)) new GuiControlProfile(OverworldTextProfile)
{
	opaque = true;
	fontSize = $defaultFontSize;//24;
	fontColor = "0 200 200";
	border = 6;
	borderThickness = 4;
	//wordWrap = "1";
	fillColor = "0 0 0";
	bevelColorHL = "0 150 150";
	bevelColorLL  = "0 200 200";
	bitmap = "../gui/images/scrollBar";
};

// For stairs dialog text.
if (!isObject(stairsDialogTextProfile)) new GuiControlProfile(stairsDialogTextProfile)
{
	opaque = true;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "0 200 200";
	border = 4;
	borderThickness = 4;
	//wordWrap = "1";
	fillColor = "0 0 0";
	bevelColorHL = "0 150 150";
	bevelColorLL  = "0 200 200";
	bitmap = "../gui/images/scrollBar";
};

// For explore gui tutorial overlay.
if (!isObject(TutorialTextProfile)) new GuiControlProfile(TutorialTextProfile)
{
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	opaque = true;
	//fontSize = 14;
	fontColor = "0 200 200";
	border = 4;
	borderThickness = 4;
	//wordWrap = "1";
	fillColor = "0 0 0";
	bevelColorHL = "0 150 150";
	bevelColorLL  = "0 200 200";
	//bitmap = "../gui/images/scrollBar";
};

// For item tooltip display.
if (!isObject(ItemToolTipProfile)) new GuiControlProfile(ItemToolTipProfile)
{
	opaque = true;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "0 200 200";
	border = 4;
	borderThickness = 4;
	wordWrap = "1";
	fillColor = "0 0 0";
	bevelColorHL = "0 150 150";
	bevelColorLL  = "0 200 200";
	bitmap = "../gui/images/scrollBar";
};

// For scrolling event text.
if (!isObject(ScrollableEventsProfile)) new GuiControlProfile(ScrollableEventsProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//$largeFontSize;
	
	// Scrolling event text colors.
	// Main color (greenish blue teal?).
	//fontColor = "f7 ff 25";
	// Alternate text colors for different data.
	fontColors[0] = "0 120 215";		// Default Light Blue.
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "0 255 0";			// Green.
	fontColors[5] = "0 0 255";			// Blue.
	fontColors[6] = "255 0 255";		// Purple.
	fontColors[7] = "255 0 125";  		// Red-Purple.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "150 150 150";  	// Grey.
	
	border = 0;
	borderThickness = 0;
	bitmap = "../../../Sprites/1/assets/images/blackDotOpaque";
	
	modal = false;
};

// For health text.
if (!isObject(HealthTextProfile)) new GuiControlProfile(HealthTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "140 255 140";
	//textAlign = "Center";
	border = 0;
	borderThickness = 0;
	bitmap = "../../../Sprites/1/assets/images/blank (1x1)";
};

// For character portraits.
if (!isObject(CharacterPortraitProfile)) new GuiControlProfile(CharacterPortraitProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "00 c8 1e";
	border = 0;
	borderThickness = 0;
	//bitmap = "../gui/images/scrollBar";
};

// For character readout text.
if (!isObject(CharacterReadoutProfile)) new GuiControlProfile(CharacterReadoutProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "0 200 30";//"00 c8 1e";
	border = 0;
	borderThickness = 0;
	bitmap = "../gui/images/scrollBar";
};

// For save state data text.
if (!isObject(SaveStateTextProfile)) new GuiControlProfile(SaveStateTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "228 139 0";
	border = 0;
	borderThickness = 0;
	bitmap = "../gui/images/scrollBar";
};

// For main menu text.
if (!isObject(MainMenuTextProfile)) new GuiControlProfile(MainMenuTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "35 125 135";//Blue-Green.//"35 100 135";// Blue.
	border = 0;
	borderThickness = 0;
	bitmap = "../gui/images/scrollBar";
};

// For squad information gui text.
if (!isObject(SquadInfoTextProfile)) new GuiControlProfile(SquadInfoTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "228 139 0";
	border = 0;
	borderThickness = 0;
	bitmap = "../gui/images/scrollBar";
};

// For weapon swap gui text.
if (!isObject(WeaponSwapText)) new GuiControlProfile(WeaponSwapText)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "228 139 0";
	border = 0;
	borderThickness = 0;
	bitmap = "../gui/images/scrollBar";
	
	// Allow colored text.
	allowColorChars = 1;
	
	// Alternate text colors for different data.
	fontColors[0] = "255 198 0";		// Default Light Orange.
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "97 212 124";		// Green.
	fontColors[5] = "105 184 220";		// Blue.
	fontColors[6] = "255 0 255";		// Purple.
	fontColors[7] = "255 0 125";  		// Red-Purple.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "198 156 82";  		// Brown.
};

// For armor swap gui text.
if (!isObject(ArmorSwapText)) new GuiControlProfile(ArmorSwapText)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;
	fontColor = "228 139 0";
	border = 0;
	borderThickness = 0;
	bitmap = "../gui/images/scrollBar";
	
	// Allow colored text.
	allowColorChars = 1;
	
	// Alternate text colors for different data.
	fontColors[0] = "255 198 0";		// Default Light Orange.
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "97 212 124";		// Green.
	fontColors[5] = "105 184 220";		// Blue.
	fontColors[6] = "255 0 255";		// Purple.
	fontColors[7] = "255 0 125";  		// Red-Purple.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "198 156 82";  		// Brown.
};

// For squad power tooltip display.
if (!isObject(SquadPowerProfile)) new GuiControlProfile(SquadPowerProfile)
{
	opaque = true;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "0 200 200";
	border = 4;
	borderThickness = 4;
	//wordWrap = "1";
	fillColor = "0 0 0";
	bevelColorHL = "0 150 150";
	bevelColorLL  = "0 200 200";
	bitmap = "../gui/images/scrollBar";
};

// For Inventory Tab GUI text.
if (!isObject(InventoryTabTextProfile)) new GuiControlProfile(InventoryTabTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "255 198 0";
	border = 0;
	borderThickness = 0;
	//bitmap = "../gui/images/scrollBar";
	
	// Allow colored text.
	allowColorChars = 1;
	
	// Alternate text colors for different data.
	/*fontColors[0] = "255 198 0";		// Default Light Orange.
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "97 212 124";		// Green.
	fontColors[5] = "105 184 220";		// Blue.
	fontColors[6] = "255 0 255";		// Purple.
	fontColors[7] = "255 0 125";  		// Red-Purple.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "198 156 82";  		// Brown.
	*/
};

// For Event Log Scroller.
if (!isObject(EventScrollProfile)) new GuiControlProfile (EventScrollProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fillColor = "0 0 0";
	border = 0;
	borderThickness = 0;
	/*opaque = true;
	fillColor = "0 0 0";
	border = 0;
	borderThickness = 0;
	bitmap = "../gui/images/scrollBar";
	hasBitmapArray = true;*/
	
	modal = false;
};

// For Promotion GUI text.
if (!isObject(PromotionInfoText)) new GuiControlProfile(PromotionInfoText)
{
	opaque = false;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "200 0 0";
	fontColorHL = "255 255 255";		// How does this operate with alternate text colors?
	fontColorsHL[5] = "157 96 150";
	fontColorsHL[6] = "157 96 150";
	// Alternate text colors for different data.
	fontColors[0] = "200 0 0";//"255 198 0";		// Default Light Orange.
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "97 212 124";		// Green.
	fontColors[5] = "105 184 220";		// Blue.
	fontColors[6] = "200 0 200";		// Purple.
	fontColors[7] = "255 0 125";  		// Red-Purple.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "198 156 82";  		// Brown.
	border = 0;
	borderThickness = 0;
	//bitmap = "../gui/images/scrollBar";
};
// For Promotion GUI text.
if (!isObject(StatPromotionInfoText)) new GuiControlProfile(StatPromotionInfoText)
{
	opaque = false;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "200 0 200";
	fontColorHL = "200 0 200";
	border = 0;
	borderThickness = 0;
	//bitmap = "../gui/images/scrollBar";
};
// For Promotion GUI text.
if (!isObject(SkillPromotionInfoText)) new GuiControlProfile(SkillPromotionInfoText)
{
	opaque = false;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "105 184 220";
	fontColorHL = "105 184 220";		// How does this operate with alternate text colors?
	border = 0;
	borderThickness = 0;
	//bitmap = "../gui/images/scrollBar";
};
// For Promotion GUI text.
if (!isObject(PromotionStatText)) new GuiControlProfile(PromotionStatText)
{
	opaque = false;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "200 0 200";
	fontColorHL = "255 255 255";		// How does this operate with alternate text colors?
	border = 0;
	borderThickness = 0;
	//bitmap = "../gui/images/scrollBar";
};
// For Promotion GUI text.
if (!isObject(PromotionSkillText)) new GuiControlProfile(PromotionSkillText)
{
	opaque = false;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "105 184 220";
	fontColorHL = "255 255 255";		// How does this operate with alternate text colors?
	border = 0;
	borderThickness = 0;
	//bitmap = "../gui/images/scrollBar";
};
// For UI close button text.
if (!isObject(UiCloseTextButtonProfile)) new GuiControlProfile (UiCloseTextButtonProfile)
{
	opaque = true;
	border = 0;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor =  "228 139 0";
	fontColorHL = "157 96 150";
	fixedExtent = true;
	justify = "left";
	canKeyFocus = false;
	//bitmap = "../gui/images/button";
};

// For Promotion GUI mouse over talent descriptions.
if (!isObject(TalentDescriptionProfile)) new GuiControlProfile(TalentDescriptionProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "0 200 30";//"00 c8 1e";
	border = 0;
	borderThickness = 0;
	bitmap = "../gui/images/scrollBar";
};

// For Promotion GUI selected talent descriptions.
if (!isObject(TalentDescriptionSelectedProfile)) new GuiControlProfile(TalentDescriptionSelectedProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "100 0 30";//"00 c8 1e";
	border = 0;
	borderThickness = 0;
	bitmap = "../gui/images/scrollBar";
};

// For Squad Panel Control GUI.
if (!isObject(SquadPanelControlProfile)) new GuiControlProfile(SquadPanelControlProfile)
{
	opaque = true;
	border = 0;
	borderThickness = 0;
	bitmap = "../../../Sprites/1/assets/images/blank (1x1)";
};

// Button for armor and weapons for squad status load preview!
if (!isObject(LoadStatusButtonProfile)) new GuiControlProfile(LoadStatusButtonProfile)
{
	opaque = true;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	border = 0;
	borderThickness = 0;
	filterMode = "NONE";
	//bitmap = "../gui/images/button";
};

// Options Window GUI Profile.
if (!isObject(GuiOptionsWindowProfile)) new GuiControlProfile (GuiOptionsWindowProfile)
{
	opaque = false;
	border = 1;
	fillColor = "211 211 211";
	fillColorHL = "190 255 255";
	fillColorNA = "255 255 255";
	fontColor = "0 0 0";
	fontColorHL = "200 200 200";
	text = "untitled";
	//bitmap = "^AppCore/gui/images/window";//"../gui/images/window";		// Causes an error but defaults to better bitmap!
	textOffset = "5 5";
	hasBitmapArray = true;
	justify = "center";
};

// Inventory Tab GUI profile.
if (!isObject(InventoryTabGuiProfile)) new GuiControlProfile (InventoryTabGuiProfile)
{
	tab = false;
	canKeyFocus = false;
	hasBitmapArray = false;
	mouseOverSelected = false;
	
	// fill color
	opaque = false;
	fillColor = "211 211 211";
	fillColorHL = "244 244 244";
	fillColorNA = "244 244 244";
	
	// border color
	border = 1;
	borderColor   = "40 40 40 100";
	borderColorHL = "128 128 128";
	borderColorNA = "64 64 64";
	
	// font
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;
	
	fontColor = "0 0 0";
	fontColorHL = "32 100 100";
	fontColorNA = "0 0 0";
	fontColorSEL= "200 200 200";
	
	// bitmap information
	//bitmap = "^AppCore/gui/images/window";//"../gui/images/window";
	bitmapBase = "";
	textOffset = "0 0";
	
	// used by guiTextControl
	modal = false;//true;
	justify = "left";
	autoSizeWidth = false;
	autoSizeHeight = false;
	returnTab = false;
	numbersOnly = false;
	cursorColor = "0 0 0 255";
	
	// sounds
	soundButtonDown = "";
	soundButtonOver = "";
};

// For Mission Objectives text.
if (!isObject(MissionObjectivesProfile)) new GuiControlProfile(MissionObjectivesProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;
	
	// Alternate text colors for different data.
	fontColors[0] = "0 120 215";		// Default Light Blue.
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "0 255 0";			// Green.
	fontColors[5] = "0 0 255";			// Blue.
	fontColors[6] = "0 200 150";		// Primary Objective.
	fontColors[7] = "0 100 140";//"0 80 100";			// Secondary Objective.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "150 150 150";  	// Grey.
	
	border = 0;
	borderThickness = 0;
	bitmap = "../../../Sprites/1/assets/images/blackDotOpaque";
};

// For Deck Statistics text.
if (!isObject(DeckStatisticsProfile)) new GuiControlProfile(DeckStatisticsProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;
	fontColor = "255 150 0";
	// Alternate text colors for different data.
	/*fontColors[0] = "0 120 215";		// Default Light Blue.
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "0 255 0";			// Green.
	fontColors[5] = "0 0 255";			// Blue.
	fontColors[6] = "0 200 150";		// Primary Objective.
	fontColors[7] = "0 100 140";//"0 80 100";			// Secondary Objective.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "150 150 150";  	// Grey.
	*/
	border = 0;
	borderThickness = 0;
	bitmap = "../../../Sprites/1/assets/images/blackDotOpaque";
};

// Difficulty Dialog Text Profile.
// BUG: fontColors array doesn't seem to work beyond the first element!
if (!isObject(DifficultyDialogTextProfile)) new GuiControlProfile (DifficultyDialogTextProfile)
{
	opaque = false;
	border = 0;
	borderThickness = 0;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "150 150 150";
	fontColorHL = "255 255 255";
	// Alternate text colors for different data.
	fontColors[0] = "0 120 215";		// Default Light Blue.	BRUTAL
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "0 255 0";			// Green.
	fontColors[5] = "0 0 255";			// Blue.
	fontColors[6] = "0 200 150";		// Primary Objective.	HARD
	fontColors[7] = "90 90 90";			// Cancel Text.			NORMAL
	fontColors[8] = "255 255 255"; 		// White.				EASY
	fontColors[9] = "150 150 150";  	// Grey.
};
if (!isObject(DifficultyEasyTextProfile)) new GuiControlProfile (DifficultyEasyTextProfile)
{
	opaque = false;
	border = 0;
	borderThickness = 0;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "0 255 0";
};
if (!isObject(DifficultyNormalTextProfile)) new GuiControlProfile (DifficultyNormalTextProfile)
{
	opaque = false;
	border = 0;
	borderThickness = 0;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "255 230 0";
};
if (!isObject(DifficultyHardTextProfile)) new GuiControlProfile (DifficultyHardTextProfile)
{
	opaque = false;
	border = 0;
	borderThickness = 0;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "255 150 0";
};
if (!isObject(DifficultyBrutalTextProfile)) new GuiControlProfile (DifficultyBrutalTextProfile)
{
	opaque = false;
	border = 0;
	borderThickness = 0;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "255 0 0";
};
if (!isObject(DifficultyInsaneTextProfile)) new GuiControlProfile (DifficultyInsaneTextProfile)
{
	opaque = false;
	border = 0;
	borderThickness = 0;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "255 255 255";
};

// Difficulty Dialog Button Profile.
if (!isObject(DifficultyDialogButtonProfile)) new GuiControlProfile (DifficultyDialogButtonProfile)
{
	opaque = true;
	border = 0;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "150 150 150";//"0 0 0";
	fontColorHL = "255 255 255";//"15 115 185";
	fixedExtent = true;
	justify = "left";
	canKeyFocus = false;
	//bitmap = "../gui/images/button";
};

// Diffifulty Dialog Window Profile.
if (!isObject(DifficultyDialogWindowProfile)) new GuiControlProfile (DifficultyDialogWindowProfile)
{
	opaque = true;
	border = 1;
	fillColor = "0 0 0";//"211 211 211";
	fillColorHL = "190 255 255";
	fillColorNA = "255 255 255";
	fontColor = "0 0 0";
	fontColorHL = "200 200 200";
	text = "untitled";
	bitmap = "../gui/images/difficultyWindow";
	textOffset = "5 5";
	hasBitmapArray = true;
	justify = "center";
};

// For the partially opaque scrolling event log back panel.
if (!isObject(ScrollingEventLogProfile)) new GuiControlProfile (ScrollingEventLogProfile)
{
	tab = false;
	canKeyFocus = false;
	hasBitmapArray = false;
	mouseOverSelected = false;
	
	// fill color
	opaque = false;
	fillColor = "211 211 211";
	fillColorHL = "244 244 244";
	fillColorNA = "244 244 244";
	
	// border color
	border = 0;
	borderColor   = "40 40 40 100";
	borderColorHL = "128 128 128";
	borderColorNA = "64 64 64";
	
	// font
	fontType = $GameFont;
	fontSize = 14;
	
	fontColor = "0 0 0";
	fontColorHL = "150 200 255";//"0 200 255";//"32 100 100";	// Showing up as "normal" font color for some reason!
	fontColorNA = "0 0 0";
	fontColorSEL= "200 200 200";
	
	// bitmap information
	//bitmap = "^AppCore/gui/images/window";
	bitmapBase = "";
	textOffset = "0 0";
	
	// used by guiTextControl
	modal = true;
	justify = "left";
	autoSizeWidth = false;
	autoSizeHeight = false;
	returnTab = false;
	numbersOnly = false;
	cursorColor = "0 0 0 255";
	
	// sounds
	soundButtonDown = "";
	soundButtonOver = "";
	
	modal = false;
};

// Incorrectly named since we use this for more than just character name text edit GUI profiles >.< !!!
if (!isObject(CharacterNameTextEditProfile)) new GuiControlProfile (CharacterNameTextEditProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "0 188 228";//"228 139 0";
	border = 0;
	borderThickness = 0;
	
	/*opaque = true;
	fillColor = "255 255 255";
	fillColorHL = "128 128 128";
	border = -2;
	bitmap = "../gui/images/textEdit";
	borderColor = "40 40 40 100";
	fontColor = "0 0 0";
	fontColorHL = "255 255 255";
	fontColorNA = "128 128 128";
	textOffset = "4 2";*/
	autoSizeWidth = false;
	autoSizeHeight = false;
	tab = true;
	canKeyFocus = true;
	cursorColor = "0 188 228";
};

// For squad creation gui text.
if (!isObject(SquadCreationTextProfile)) new GuiControlProfile(SquadCreationTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "210 187 30";
	border = 0;
	borderThickness = 0;
};

// For squad creation gui info text.
if (!isObject(SquadCreationInfoTextProfile)) new GuiControlProfile(SquadCreationInfoTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;//18;
	fontColor = "211 200 128";
	border = 0;
	borderThickness = 0;
	fontColors[0] = "211 200 128";
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "0 255 0";			// Green.
	fontColors[5] = "0 0 255";			// Blue.
	fontColors[6] = "0 200 150";		// Primary Objective.
	fontColors[7] = "90 90 90";			// Cancel Text.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "150 150 150";  	// Grey.
};

// For end level screen stats.
if (!isObject(EndLevelScreenStatsProfile)) new GuiControlProfile(EndLevelScreenStatsProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "211 200 128";
	border = 0;
	borderThickness = 0;
	fontColors[0] = "211 200 128";
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "0 255 0";			// Green.
	fontColors[5] = "0 0 255";			// Blue.
	fontColors[6] = "0 200 150";		// Primary Objective.
	fontColors[7] = "90 90 90";			// Cancel Text.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "150 150 150";  	// Grey.
};

// For squad creation cancel button.
if (!isObject(SquadCreationCancelButtonProfile)) new GuiControlProfile (SquadCreationCancelButtonProfile)
{
	opaque = true;
	border = 0;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor =  "255 255 255";
	fontColorHL = "150 150 150";
	fixedExtent = true;
	justify = "left";
	canKeyFocus = false;
	//bitmap = "../gui/images/button";
};

// For squad creation accept button.
if (!isObject(SquadCreationAcceptButtonProfile)) new GuiControlProfile (SquadCreationAcceptButtonProfile)
{
	opaque = true;
	border = 0;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor =  "228 139 0";
	fontColorHL = "157 96 150";
	fixedExtent = true;
	justify = "left";
	canKeyFocus = false;
	//bitmap = "../gui/images/button";
};

// For UI close button text.
if (!isObject(UiCloseTextButtonProfile)) new GuiControlProfile (UiCloseTextButtonProfile)
{
	opaque = true;
	border = 0;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor =  "228 139 0";
	fontColorHL = "157 96 150";
	fixedExtent = true;
	justify = "left";
	canKeyFocus = false;
	//bitmap = "../gui/images/button";
};

// For sequence text button.
if (!isObject(SequenceTextButtonProfile)) new GuiControlProfile (SequenceTextButtonProfile)
{
	opaque = true;
	border = 0;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor =  "228 139 0";
	fontColorHL = "157 96 150";
	fixedExtent = true;
	justify = "left";
	canKeyFocus = false;
	//bitmap = "../gui/images/button";
};

// For Terminal Output.
if (!isObject(TerminalOutPutProfile)) new GuiControlProfile(TerminalOutPutProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	
	// Alternate text colors for different data.
	fontColors[0] = "0 120 215";		// Default Light Blue.
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "0 255 0";			// Green.
	fontColors[5] = "150 150 150";		// Light Grey.
	fontColors[6] = "255 0 255";		// Purple.
	fontColors[7] = "255 0 125";  		// Red-Purple.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "0 255 0";  		// Green.
	
	border = 0;
	borderThickness = 0;
	bitmap = "../../../Sprites/1/assets/images/blackDotOpaque";
};

// For talent bars.
if (!isObject(TalentBarProfile)) new GuiControlProfile (TalentBarProfile)
{
	tab = false;
	canKeyFocus = false;
	hasBitmapArray = false;
	mouseOverSelected = false;
	
	// fill color
	opaque = false;
	fillColor = "211 211 211";
	fillColorHL = "244 244 244";
	fillColorNA = "244 244 244";
	
	// border color
	border = 0;
	borderColor   = "40 40 40 100";
	borderColorHL = "128 128 128";
	borderColorNA = "64 64 64";
	
	// font
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;
	
	fontColor = "0 0 0";
	fontColorHL = "32 100 100";
	fontColorNA = "0 0 0";
	fontColorSEL= "200 200 200";
	
	// bitmap information
	//bitmap = "^AppCore/gui/images/window";
	bitmapBase = "";
	textOffset = "0 0";
	
	// used by guiTextControl
	modal = true;
	justify = "left";
	autoSizeWidth = false;
	autoSizeHeight = false;
	returnTab = false;
	numbersOnly = false;
	cursorColor = "0 0 0 255";
	
	// sounds
	soundButtonDown = "";
	soundButtonOver = "";
};

// For Inventory Tab Main Panel.
if (!isObject(InventoryTabMainProfile)) new GuiControlProfile (InventoryTabMainProfile)
{
	tab = false;
	canKeyFocus = false;
	hasBitmapArray = false;
	mouseOverSelected = false;
	
	// fill color
	opaque = false;
	fillColor = "211 211 211";
	fillColorHL = "244 244 244";
	fillColorNA = "244 244 244";
	
	// border color
	border = 0;
	borderColor   = "40 40 40 100";
	borderColorHL = "128 128 128";
	borderColorNA = "64 64 64";
	
	// font
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;
	
	fontColor = "0 0 0";
	fontColorHL = "32 100 100";
	fontColorNA = "0 0 0";
	fontColorSEL= "200 200 200";
	
	// bitmap information
	//bitmap = "^AppCore/gui/images/window";
	bitmapBase = "";
	textOffset = "0 0";
	
	// used by guiTextControl
	modal = true;
	justify = "left";
	autoSizeWidth = false;
	autoSizeHeight = false;
	returnTab = false;
	numbersOnly = false;
	cursorColor = "0 0 0 255";
	
	// sounds
	soundButtonDown = "";
	soundButtonOver = "";
};

// For the Control Panel GUI.
if (!isObject(ControlPanelProfile)) new GuiControlProfile (ControlPanelProfile)
{
	tab = false;
	canKeyFocus = false;
	hasBitmapArray = false;
	mouseOverSelected = false;
	
	// fill color
	opaque = false;
	fillColor = "211 211 211";
	fillColorHL = "244 244 244";
	fillColorNA = "244 244 244";
	
	// border color
	border = 0;
	borderColor   = "40 40 40 100";
	borderColorHL = "128 128 128";
	borderColorNA = "64 64 64";
	
	// font
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;
	
	fontColor = "0 0 0";
	fontColorHL = "32 100 100";
	fontColorNA = "0 0 0";
	fontColorSEL= "200 200 200";
	
	// bitmap information
	//bitmap = "^AppCore/gui/images/window";
	bitmapBase = "";
	textOffset = "0 0";
	
	// used by guiTextControl
	modal = true;
	justify = "left";
	autoSizeWidth = false;
	autoSizeHeight = false;
	returnTab = false;
	numbersOnly = false;
	cursorColor = "0 0 0 255";
	
	// sounds
	soundButtonDown = "";
	soundButtonOver = "";
};

// For Hostile Control text.
if (!isObject(HostileControlTextProfile)) new GuiControlProfile(HostileControlTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;
	fontColor = "255 200 200";
	//textAlign = "Center";
	border = 0;
	borderThickness = 0;
	bitmap = "../../../Sprites/1/assets/images/blank (1x1)";
};

// For Integrity text.
if (!isObject(IntegrityTextProfile)) new GuiControlProfile(IntegrityTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;
	fontColor = "255 255 100";
	//textAlign = "Center";
	border = 0;
	borderThickness = 0;
	bitmap = "../../../Sprites/1/assets/images/blank (1x1)";
};

// For Active Character Experience Bar Text Profile.
if (!isObject(ActiveCharacterExperienceBarTextProfile)) new GuiControlProfile (ActiveCharacterExperienceBarTextProfile)
{
	tab = false;
	canKeyFocus = false;
	hasBitmapArray = false;
	mouseOverSelected = false;
	
	// fill color
	opaque = false;
	fillColor = "211 211 211";
	fillColorHL = "244 244 244";
	fillColorNA = "244 244 244";
	
	// border color
	border = 0;//1;
	borderColor   = "40 40 40 100";
	borderColorHL = "128 128 128";
	borderColorNA = "64 64 64";
	
	// font
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;
	
	fontColor = "255 255 255";
	fontColorHL = "32 100 100";
	fontColorNA = "0 0 0";
	fontColorSEL= "200 200 200";
	
	// bitmap information
	//bitmap = "^AppCore/gui/images/window";
	bitmapBase = "";
	textOffset = "0 0";
	
	// used by guiTextControl
	modal = true;
	justify = "left";
	autoSizeWidth = false;
	autoSizeHeight = false;
	returnTab = false;
	numbersOnly = false;
	cursorColor = "0 0 0 255";
	
	// sounds
	soundButtonDown = "";
	soundButtonOver = "";
};


// For Inventory Tab Weapon GUI text.
if (!isObject(WeaponTextProfile)) new GuiControlProfile(WeaponTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;//18;
	//fontColor = "255 198 0";
	border = 0;
	borderThickness = 0;
	//bitmap = "../gui/images/scrollBar";
	
	// Allow colored text.
	allowColorChars = 1;
	
	// Alternate text colors for different data.
	fontColors[0] = "255 255 255"; 		// White.
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "97 212 124";		// Green.
	fontColors[5] = "105 184 220";		// Blue.
	fontColors[6] = "255 0 255";		// Purple.
	fontColors[7] = "255 0 125";  		// Red-Purple.
	fontColors[8] = "255 198 0";		// Light Orange.
	fontColors[9] = "198 156 82";  		// Brown.
};

// For Inventory Tab Armor GUI text.
if (!isObject(ArmorTextProfile)) new GuiControlProfile(ArmorTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;//18;
	//fontColor = "255 198 0";
	border = 0;
	borderThickness = 0;
	//bitmap = "../gui/images/scrollBar";
	
	// Allow colored text.
	allowColorChars = 1;
	
	// Alternate text colors for different data.
	fontColors[0] = "255 255 255"; 		// White.
	fontColors[1] = "255 0 0";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Yellow.
	fontColors[4] = "97 212 124";		// Green.
	fontColors[5] = "105 184 220";		// Blue.
	fontColors[6] = "255 0 255";		// Purple.
	fontColors[7] = "255 0 125";  		// Red-Purple.
	fontColors[8] = "255 198 0";		// Light Orange.
	fontColors[9] = "198 156 82";  		// Brown.
};

// For the Text Sequence GUI profile.
if (!isObject(TextSequenceProfile)) new GuiControlProfile(TextSequenceProfile)
{
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	opaque = true;
	fontColor = "0 200 200";
	border = 0;
	borderThickness = 0;
	//wordWrap = "1";
	fillColor = "0 0 0 200";
	bevelColorHL = "0 150 150";
	bevelColorLL  = "0 200 200";
	//bitmap = "../gui/images/scrollBar";
};

// For the ngpScreen text scroller GUI profile.
if (!isObject(NgpTextSequenceProfile)) new GuiControlProfile(NgpTextSequenceProfile)
{
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	opaque = false;
	fontColor = "0 200 200";
	border = 0;
	borderThickness = 0;
	//wordWrap = "1";
	fillColor = "0 0 0";
	bevelColorHL = "0 150 150";
	bevelColorLL  = "0 200 200";
	//bitmap = "../gui/images/scrollBar";
};

// For Ship Overview UI Deck Buttons.
if (!isObject(ShipOverviewDeckButtonProfile)) new GuiControlProfile (ShipOverviewDeckButtonProfile)
{
	tab = false;
	canKeyFocus = false;
	hasBitmapArray = false;
	mouseOverSelected = false;
	
	// fill color
	opaque 		= false;
	fillColor 	= "211 211 211";
	fillColorHL = "244 244 244";
	fillColorNA = "244 244 244";
	
	// border color
	border 		  = 0;
	borderColor   = "40 40 40 100";
	borderColorHL = "128 128 128";
	borderColorNA = "64 64 64";
	
	// font
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	
	fontColor 		= "0 0 0";
	fontColorHL 	= "32 100 100";
	fontColorNA 	= "0 0 0";
	fontColorSEL	= "200 200 200";
	
	// bitmap information
	//bitmap = "^AppCore/gui/images/window";
	bitmapBase = "";
	textOffset = "0 0";
	
	// used by guiTextControl
	modal = true;
	justify = "left";
	autoSizeWidth = false;
	autoSizeHeight = false;
	returnTab = false;
	numbersOnly = false;
	cursorColor = "0 0 0 255";
	
	// sounds
	soundButtonDown = "";
	soundButtonOver = "";
};

// For Ship Overview UI Deck Invasion Buttons.
if (!isObject(ShipOverviewDeckInvasionButtonProfile)) new GuiControlProfile (ShipOverviewDeckInvasionButtonProfile)
{
	tab = false;
	canKeyFocus = false;
	hasBitmapArray = false;
	mouseOverSelected = false;
	
	// fill color
	opaque 		= false;
	fillColor 	= "211 211 211";
	fillColorHL = "244 244 244";
	fillColorNA = "244 244 244";
	
	// border color
	border 		  = 0;
	borderColor   = "40 40 40 100";
	borderColorHL = "128 128 128";
	borderColorNA = "64 64 64";
	
	// font
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	
	fontColor 		= "0 0 0";
	fontColorHL 	= "32 100 100";
	fontColorNA 	= "0 0 0";
	fontColorSEL	= "200 200 200";
	
	// bitmap information
	//bitmap = "^AppCore/gui/images/window";
	bitmapBase = "";
	textOffset = "0 0";
	
	// used by guiTextControl
	modal = false;	// Allow click through transparent pixels.
	justify = "left";
	autoSizeWidth = false;
	autoSizeHeight = false;
	returnTab = false;
	numbersOnly = false;
	cursorColor = "0 0 0 255";
	
	// sounds
	soundButtonDown = "";
	soundButtonOver = "";
};


// For Ship UI Deck Label Text.
if (!isObject(DeckLabelProfile)) new GuiControlProfile(DeckLabelProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "211 200 128";
	border = 0;
	borderThickness = 0;
	/*
	fontColors[0] = "211 200 128";
	fontColors[1] = "224 28 28";		// Medical Deck.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "255 230 0";		// Armory Deck.
	fontColors[4] = "41 208 41";		// Engineering Deck.
	fontColors[5] = "55 133 228";		// Bridge Deck.
	fontColors[6] = "0 200 150";		// Primary Objective.
	fontColors[7] = "90 90 90";			// Cancel Text.
	fontColors[8] = "219 207 183"; 		// Command Deck.
	fontColors[9] = "150 150 150";  	// Grey.
	*/
};

// For Deck Integrity Text.
if (!isObject(DeckIntegrityTextProfile)) new GuiControlProfile(DeckIntegrityTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;//18;
	fontColor = "235 209 88";
	border = 0;
	borderThickness = 0;
	bitmap = "../../../Sprites/1/assets/images/blank (1x1)";
};

// Options Window GUI Profile.
if (!isObject(OptionsWindowGuiProfile)) new GuiControlProfile (OptionsWindowGuiProfile)
{
	opaque = false;
	border = 1;
	fillColor = "0 0 0";
	fillColorHL = "75 74 74";
	fillColorNA = "75 74 74";
	fontColor = "0 0 0";
	fontColorHL = "200 200 200";
	text = "untitled";
	bitmap = "../gui/images/optionsWindow";
	textOffset = "5 5";
	hasBitmapArray = true;
	justify = "center";
};
// Options Tab GUI Profile.
if (!isObject(OptionsTabGuiProfile)) new GuiControlProfile (OptionsTabGuiProfile)
{
	fillColor = "85 84 84 110";		// Selected.
	fillColorHL = "64 150 150 150";	// Highlighted.
	fillColorNA = "55 54 54 110";	// Not selected.
	fontColor = "200 200 200";
	fontColorHL = "150 150 150";
	fontColorNA = "0 0 0";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	justify = "center";
	bitmap = "../gui/images/optionsTab";
	tabWidth = 64;
	tabHeight = 24;
	tabPosition = "Top";
	tabRotation = "Horizontal";
	textOffset = "0 -2";
	tab = true;
	cankeyfocus = true;
};
// Options Tab Page GUI Profile.
if (!isObject(OptionsTabPageGuiProfile)) new GuiControlProfile (OptionsTabPageGuiProfile : GuiTransparentProfile )
{
	fillColor = "75 74 74 255";
	opaque = true;
};
// Options Tab Page Text GUI Profile.
if (!isObject(OptionsTabPageTextGuiProfile)) new GuiControlProfile(OptionsTabPageTextGuiProfile)
{
	opaque = true;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "0 200 200";
	border = 0;
	borderThickness = 0;
	fillColor = "0 0 0";
	bevelColorHL = "0 150 150";
	bevelColorLL  = "0 200 200";
	bitmap = "../gui/images/scrollBar";
};
// Options Tab Check Box GUI Profile
if (!isObject(OptionsTabCheckBoxGuiProfile)) new GuiControlProfile (OptionsTabCheckBoxGuiProfile)
{
	opaque = false;
	fillColor = "232 232 232";
	border = false;
	borderColor = "0 0 0";
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;
	fontColor = "0 200 200";
	fontColorHL = "0 200 200";//"32 100 100";
	fixedExtent = true;
	justify = "left";
	bitmap = "../gui/images/checkBox";
	hasBitmapArray = true;
};
// Slider GUI Profile.
if (!isObject(SliderGuiProfile)) new GuiControlProfile (SliderGuiProfile)
{
	fontType = $GameFont;
	fontSize = $defaultFontSize;//14;
	fontColor = "0 200 200";
	//bitmap = "../gui/images/sliderCustom";
	bitmap = "../gui/images/sliderCustom";
};
// Options Pop Up Menu GUI Profile.
//if (!isObject(OptionsPopUpMenuGuiProfile)) new OptionsPopUpMenuGuiProfile (GuiPopUpMenuProfile : GuiPopUpMenuDefault)
if (!isObject(OptionsPopUpMenuGuiProfile)) new GuiControlProfile (OptionsPopUpMenuGuiProfile)
{
	textOffset = "6 3";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "0 200 200";
	bitmap = "../gui/images/dropDown";
	hasBitmapArray = true;
	border             = -3;
	profileForChildren = OptionsPopUpMenuGuiProfile;
	textOffset         = "6 3";
};

// Testing opactiy for GUI bitmap buttons!
if (!isObject(OpacityBitmapButtonProfile)) new GuiControlProfile (OpacityBitmapButtonProfile)
{
	tab = false;
	canKeyFocus = false;
	hasBitmapArray = false;
	mouseOverSelected = false;
	
	// fill color
	opaque = false;
	fillColor = "211 211 211";
	fillColorHL = "244 244 244";
	fillColorNA = "244 244 244";
	
	// border color
	border = 0;//1;
	borderColor   = "40 40 40 100";
	borderColorHL = "128 128 128";
	borderColorNA = "64 64 64";
	
	// font
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	
	fontColor = "0 0 0";
	fontColorHL = "32 100 100";
	fontColorNA = "0 0 0";
	fontColorSEL= "200 200 200";
	
	// bitmap information
	//bitmap = "^AppCore/gui/images/window";
	bitmapBase = "";
	textOffset = "0 0";
	
	// used by guiTextControl
	modal = true;
	justify = "left";
	autoSizeWidth = false;
	autoSizeHeight = false;
	returnTab = false;
	numbersOnly = false;
	cursorColor = "0 0 0 255";
	
	// sounds
	soundButtonDown = "";
	soundButtonOver = "";
};

// For the high score screen.
if (!isObject(HighScoreTextProfile)) new GuiControlProfile(HighScoreTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "211 200 128";
	border = 0;
	borderThickness = 0;
	maxColorIndex = 9;
	/*
	fontColors[0] = "171 171 171";		// Light gray.
	fontColors[1] = "45 181 74";		// Green.
	fontColors[2] = "158 90 209";		// Blue/Purple.
	fontColors[3] = "255 150 0";		// Orange.
	fontColors[4] = "217 63 63";		// Red.
	fontColors[5] = "211 200 128";		// Light Yellow.
	*/
	fontColors[0] = "171 171 171";		// Light gray.
	fontColors[1] = "217 63 63";		// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "211 200 128";		// Light Yellow.
	fontColors[4] = "45 181 74";		// Green.
	fontColors[5] = "158 90 209";		// Blue/Purple.
	fontColors[6] = "71 86 170";		// Blue.
	fontColors[7] = "90 90 90";			// Cancel Text.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "150 150 150";  	// Grey.
	
};

// For game settings check boxes.
if (!isObject(GameSettingsCheckBoxProfile)) new GuiControlProfile (GameSettingsCheckBoxProfile)
{
	opaque = false;
	//fillColor = "232 232 232";
	//border = false;
	//borderColor = "0 0 0";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	// Alternate text colors for different data.
	fontColors[0] = "0 200 200";		// Blue/Green.
	fontColors[1] = "217 63 63";		// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "211 200 128";		// Light Yellow.
	fontColors[4] = "45 181 74";		// Green.
	fontColors[5] = "158 90 209";		// Blue/Purple.
	fontColors[6] = "71 86 170";		// Blue.
	fontColors[7] = "90 90 90";			// Cancel Text.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "150 150 150";  	// Grey.
	fontColorHL = "0 150 150";
	fixedExtent = true;
	justify = "left";
	bitmap = "../../../Sprites/1/assets/images/UI/SetupMenu/checkBox";
	hasBitmapArray = true;
};

// For Monster Target Stats text.
if (!isObject(MonsterTargetStatsTextProfile)) new GuiControlProfile(MonsterTargetStatsTextProfile)
{
	opaque = false;
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor = "140 255 140";
	//textAlign = "Center";
	// Alternate text colors for different data.
	/*fontColors[0] = "0 200 200";		// Blue/Green.
	fontColors[1] = "211 7 7";			// Red.
	fontColors[2] = "255 150 0";		// Orange.
	fontColors[3] = "211 200 128";		// Light Yellow.
	fontColors[4] = "45 181 74";		// Green.
	fontColors[5] = "241 36 237";		// Purple.
	fontColors[6] = "71 86 170";		// Blue.
	fontColors[7] = "90 90 90";			// Cancel Text.
	fontColors[8] = "255 255 255"; 		// White.
	fontColors[9] = "150 150 150";  	// Grey.
	fontColorHL = "0 150 150";*/
	border = 0;
	borderThickness = 0;
	bitmap = "../../../Sprites/1/assets/images/blank (1x1)";
};

if (!isObject(UnitTooltipTextProfile)) new GuiControlProfile (UnitTooltipTextProfile)
{
	opaque = true;
	border = 0;
	fillColor = "0 0 0 0";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor =	"211 200 128";	// Light Yellow.
	fixedExtent = true;
	justify = "left";
	canKeyFocus = false;
	//bitmap = "../gui/images/button";
};

if (!isObject(AmmoCounterProfile)) new GuiControlProfile (AmmoCounterProfile)
{
	opaque = true;
	border = 0;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor =	"0 166 228";
	fontColorHL = "0 166 228";
	fixedExtent = true;
	justify = "left";
	canKeyFocus = false;
	//bitmap = "../gui/images/button";
};

if (!isObject(ArmorCounterProfile)) new GuiControlProfile (ArmorCounterProfile)
{
	opaque = true;
	border = 0;
	fillColor = "99 99 99";
	fontType = $GameFont;
	fontSize = $defaultFontSize;
	fontColor =	"0 166 228";
	fontColorHL = "0 166 228";
	fixedExtent = true;
	justify = "left";
	canKeyFocus = false;
	//bitmap = "../gui/images/button";
};