Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-16-2007, 07:34 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Gui Profiles

Having a problem while creating my own, here's what I have so far:

The inventory:
HTML Code:
  getProfiles();
  
  if (inventoryOpen)
  {
    core.updateItems(); 
    new GuiControl("inventory_Main") 
    {
      profile = "guiMenu";
      position = {temp.inventoryPosition[0], temp.inventoryPosition[1]};
      extent = {temp.inventorySize[0], temp.inventorySize[1]};
    }
  }
He's the class that finds the profile "guiMenu", however it isn't using that as a profile.

HTML Code:
//#CLIENTSIDE
function getProfiles()
{
  echo("DRAWING");
  new GuiControlProfile("guiMenu")
  {
    fillColor = {255, 0, 0};
    fontColor = {255, 255, 255};
  
    bitmap = "block.png";
  
    opaque = false;
    transparency = 0.5;
  }
}
I am receiving the "DRAWING" in my Console Log, however, It's not using it!
Reply With Quote
 


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 09:21 AM.


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