Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-05-2011, 04:57 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
GUI Window Profile not showing

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).
Attached Images
 
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #2  
Old 12-05-2011, 05:28 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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.
__________________
Quote:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:59 PM.


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