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;
}
}