PHP Code:
function showGui() {
new GuiWindowCtrl("QuestControl_Window") {
profile = GuiBlueWindowProfile;
clientrelative = true;
clientwidth = 320;
clientheight = 240;
visible = canClose = canMaximize = canResize = canMinimize = false;
text = "Baddy Quest";
x = 580;
y = 208;
new GuiButtonCtrl("QuestControl_Accept") {
profile = "GuiEraButtonProfile";
width = 80;
height = 25;
x = 26;
y = 186;
}
}
}
Doesn't that look nicer?
Keep in mind that
visible is a boolean, so you should not set it to '0'; instead use 'false'. "new" should also not be capitalized.
You would also do well to
read this to avoid conflict later on.
As far as the profile, chances are there are some text offset things set in the profile. You can see more about that
here.