Thread: GUI Issue
View Single Post
  #22  
Old 10-23-2007, 05:48 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Hmm...

gonna bump this thread rather than creating a new one.

I'm trying to create a custom GUI profile, and I'm sticking this in a class so I can easily use each profile in multiple NPCs. However, when I call createGUIs, the new profiles aren't working properly.

NPC Code
PHP Code:
function onCreated()
{
this.join("customgui");
createGUIs();

in class "customgui".
PHP Code:
//vampiro_button.png
//vampiro_scroll.png
//vampiro_window.png
//#CLIENTSIDE
function createGUIs()
{
new 
GuiWindowCtrlProfile("VampiroWindowProfile")
{

bitmap "vampiro_window.png";

opaque false;
transparency 0.5;
}

new 
GuiScrollCtrlProfile("VampiroScrollProfile")
{

bitmap "vampiro_scroll.png";

opaque false;
transparency 0.5;
}

new 
GuiButtonCtrlProfile("VampiroButtonProfile")
{

bitmap "vampiro_button.png";

opaque false;
transparency 0.5;
}

Attached Images
   
Reply With Quote