Thread: GUI Issue
View Single Post
  #1  
Old 09-24-2007, 02:31 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
GUI Issue

I'm new to the GUI functions in Graal and I'm certain I'm overlooking something simple with this error, but here goes.

I am writing a Class NPC to implement the flier script Ziplock had requested be made awhile back, if anyone remembers that.

Right now, I have the window being created in Clientside in the CLASS.


However, when if I hit the red X, the GUI window disappears and walking into the flier image again will not open the GUI window back up.

Do I need to implement onCloseQuery to get this to work desirably?

PHP Code:
//#CLIENTSIDE
function onPlayerTouchsMe()
{
FlierWindow = new GuiWindowCtrl("Flier_" this.number);
  
with (FlierWindow)
  {
    
profile "GuiBlueWindowProfile";
    
position "30 30";
    
extent "300 300";
    
canMove true;
    
canResize false;
    
canClose true;
    
tile true;
    
text "Flier by " this.owner.account;
  }
  
GraalControl.addControl(FlierWindow);

Reply With Quote