Author Topic: How do i change the background of a GUI  (Read 1038 times)

as in background i mean the thing inside the border i wanted to change that to my own texture or color even

you have to make a new image for the window bits (see base/client/ui/blockWindow.png for reference) and then create a new GuiControlProfile for your window controls

for example:
Code: [Select]
new GuiControlProfile(someWindowProfile : GuiWindowProfile)
{
opaque = 1;

hasBitmapArray = 1;
bitmap = "./someWindow.png";

fillColor = "128 128 128 255";
fillColorHL = "128 128 128 255";
fillColorNA = "128 128 128 255";

fontColor = "225 225 225 255";
fontColorHL = "225 225 225 255";
fontColorNA = "0 0 0 255";
fontColorSEL = "170 170 170 255";
fontColorLink = "0 0 200 255";
fontColorLinkHL = "85 25 140 255";

fontType = "Monospace";
fontSize = 18;
textOffset = "10 5";
justify = "left";

modal = true;
};

reference for GuiControlProfile (for torque3D so some things may not apply):
http://docs.garagegames.com/torque-3d/reference/classGuiControlProfile.html



unless you're asking for how to just slap a random image onto the gui?
« Last Edit: June 23, 2015, 05:27:25 PM by otto-san »


If you are talking about the window you'll have to change the picture, or modify it and make a new window profile.

If you are talking about the window you'll have to change the picture, or modify it and make a new window profile.
Locking otto-san answered me