Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GUI Window Profile not showing (https://forums.graalonline.com/forums/showthread.php?t=134265166)

sssssssssss 12-05-2011 04:57 AM

GUI Window Profile not showing
 
1 Attachment(s)
So I have a class, that is joined in a weapon to help consolidate code for gui profiles. This is the class:

PHP Code:

//#CLIENTSIDE
public function GetProfiles() {
  new 
GuiWindowProfile("Armageddon_Window") {
    
bitmap "guiarm_window1.png";
    
fonttype "Comic Sans MS";
  }


But when I do
PHP Code:

join("gui_profiles"); 

and then in the gui window put
PHP Code:

profile=Armageddon_Window 

, it defaults to that nasty red/gold window. I'm pretty sure this worked fine a long time ago, so I'm very confused on what is going on. Attached the image just in case something is wrong on it, but its not just the window that isn't showing up (buttons, textedit, ect).

fowlplay4 12-05-2011 05:28 AM

Before you start classing it up...

1. Use a weapon instead and create the profiles in onCreated.
2. Place the weapon ahead of your other scripts in weaponorder= in server options.

Then use: profile = "Armageddon_Window";

GuiProfile's are global like any other GUI so you only have to create it once to use it everywhere.


All times are GMT +2. The time now is 01:41 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.