Author Topic: How fo i edit my GUI's User interface  (Read 1421 times)

So i want to edit my UI on my GUI so instead of making it a blue bar at the top i want it to be my custom black one and in stead of default "X" for exiting a gui my costom one thanks
« Last Edit: February 25, 2014, 06:01:24 PM by SuperFlaminninja² »



You can't include spaces in the object's name.

If it still crashes after that, give us a console.log.

You can't include spaces in the object's name.

If it still crashes after that, give us a console.log.
you have no idea how DUMB i feel right now


So i want to edit my UI on my GUI so instead of making it a blue bar at the top i want it to be my custom black one
You mean you want to change the color of the energy bar?... or what?
in stead of default "X" for exiting a gui my costom one thanks
So... do you want to change the look of the X in your GUIWindowCtrl or do you want to make a completely new exit button somewhere else?

You mean you want to change the color of the energy bar?... or what?So... do you want to change the look of the X in your GUIWindowCtrl or do you want to make a completely new exit button somewhere else?
no like on GUI control window with both like the exit button i want it to be my costom image and that ugly blue bar at the top of GUI i want it to be my costom black one. But i want it where its only my GUI's. Its hard to explain but i want to to be where any one who has downloaded my gui has a black bar on my GUI but a blue one on deafault and stuff

no like on GUI control window with both like the exit button i want it to be my costom image and that ugly blue bar at the top of GUI i want it to be my costom black one. But i want it where its only my GUI's. Its hard to explain but i want to to be where any one who has downloaded my gui has a black bar on my GUI but a blue one on deafault and stuff
You would need to make your own GUI profile and then set the window's profile to that. You can use .dump() or .save() on GuiWindowProfile to see some stuff you can do to it when you create your own.


ok i made my own ui now what?
Make the custom window profile with your bitmap and use it for your window control.

Make the custom window profile with your bitmap and use it for your window control.
and how would i create a window profile :/

and how would i create a window profile :/
Something like this:
Code: [Select]
new GuiControlProfile(DRPGWindowProfile)
{
opaque = 1;
border = 2;
fontType = "Impact";
fontSize = 18;
fontColors[0] = "255 255 255 255";
fontColors[1] = "255 255 255 255";
fontColor = "255 255 255 255";
fontColorHL = "255 255 255 255";
justify = "center";
textOffset = "5 2";
bitmap = "Add-Ons/Client_DRPG/bitmaps/DRPGWindow";

text = "";
hasBitmapArray = 1;
};

Which, combined with the bitmap, makes this style of window:

« Last Edit: February 28, 2014, 07:10:54 AM by jes00 »

Something like this:
Code: [Select]
new GuiControlProfile(DRPGWindowProfile)
{
opaque = 1;
border = 2;
fontType = "Impact";
fontSize = 18;
fontColors[0] = "255 255 255 255";
fontColors[1] = "255 255 255 255";
fontColor = "255 255 255 255";
fontColorHL = "255 255 255 255";
justify = "center";
textOffset = "5 2";
bitmap = "Add-Ons/Client_DRPG/bitmaps/DRPGWindow";

text = "";
hasBitmapArray = 1;
};

Which, combined with the bitmap, makes this style of window:


so i suppose i would put this is somin like "WindowUI.cs" and then is server.cs (exec"./WindowUI.cs") right?

Another thing could you post scropt for modiying the button?