Use GuiWindowCtrl.
Finally I used that (without bitmap) but I get what I wanted
But I still have problems to center the Text :/PHP Code:
CTFParams.show();
EventsControlProfile.hide();
new GuiControlProfile("EventsControlProfile")
{
opaque = true;
border = 1;
borderColor = "0 0 0";
fillColor = "57 57 57";
}
new GuiControl("CTFParams") {
extent = "300 200";
profile = "EventsControlProfile";
canMove = true;
canResize = canMaximize = canClose = false;
alpha = 1;
new GuiControl("CTFParamsControl2") {
useownprofile = true;
profile.opaque = true;
profile.border = 1;
profile.borderColor = "0 0 0";
profile.fillColor = "37 37 37";
extent = "300 40";
canResize = canMaximize = canClose = canMove = false;
new GuiTextCtrl("Test_Text") {
useownprofile = true;
profile.opaque = true;
profile.border = 1;
profile.borderColor = "0 0 0";
profile.justify = "center";
profile.fontColor = "255 255 255";
profile.fontSize = 18;
extend = "300 40";
text = "CTF Settings";
}
}
}
Use a MultiLine instead for the text, and put:
In it so it would auto center it without having to do the mathematical process.HTML Code:<center> The Text </center>
-Johnaudi
Already found, I had forgot to update level xD
I'm done with it:
Thanks for your helpPHP Code:
CTFParams.show();
EventsControlProfile.hide();
new GuiControlProfile("EventsControlProfile")
{
opaque = true;
border = 1;
borderColor = "0 0 0";
fillColor = "57 57 57";
}
new GuiControl("CTFParams") {
extent = "300 200";
profile = "EventsControlProfile";
canMove = true;
canResize = canMaximize = canClose = false;
alpha = 1;
new GuiControl("CTFParamsControl2") {
useownprofile = true;
profile.opaque = true;
profile.border = 1;
profile.borderColor = "0 0 0";
profile.fillColor = "37 37 37";
extent = "300 40";
canResize = canMaximize = canClose = canMove = false;
new GuiTextCtrl("Test_Text") {
useownprofile = true;
profile.fontColor = "255 255 255";
profile.fontSize = 18;
profile.justify = "center";
position = "0 10";
width = 300;
height = 20;
text = "CTF Settings";
}
}
}
I'm very bad at this ;-;
What does this have to do with 'update level'?
-Johnaudi
I'm scripting a CTF so the window is in an npc, thats why I had to update npc* to makes the window takes changes (update level was confusing, you are right :P).
Last edited by Joe; 03-09-2014 at 06:28 PM.