Game Development Community

New Custom Profile Item - Crash

by PuG · in Game Design and Creative Issues · 01/04/2008 (2:05 am) · 1 replies

Hi, just wondering what im doing wrong. Ive added the following to the customProfiles.cs and seems to cause an instant crash when I select it via the GUI.

Any suggestions?




new GuiControlProfile (GuiInfoBoxProfile)
{

tab = false;
canKeyFocus = false;
hasBitmapArray = false;
mouseOverSelected = false;
justify = "center";

border = 2;
borderColor = "41 35 28";
borderColorHL = "41 35 28";
borderColorNA = "41 35 28";


fontType = "bold";
fillColor = "58 52 42 255";
fillColorHL = "90 90 90";
fillColorNA = "85 85 85";

fontType = "Arial";
fontSize = 18;
fontCharset = CHINESEBIG5;
fontColor = "200 127 8";

fontColor = "200 127 80";
fontColorHL = "196 181 80";
fontColorNA = "216 222 211";
};

#1
01/04/2008 (2:20 am)
Resolved, new profiles must go at the bottom of the .cs file, or atleast below default.