Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 10-13-2013, 11:29 PM
DeCeaseD DeCeaseD is offline
Registered User
Join Date: Jan 2008
Posts: 247
DeCeaseD will become famous soon enough
Quote:
Originally Posted by sssssssssss View Post
I had to call to destroy() every time before showing/creating the menu ctrl on our old one, maybe that will help as hacky as it is?

Also, unless you have other windows using modal or firstresponder, at least through all my gui stuff I've done, all you should really need is bringtofront() for these types of things (unless some other reason besides just showing up front).

Also, in your posted code, line 198:
PHP Code:
function Options_Menu.onSelect(entryidtext)  {
  
temp.slot this.cell_selected;
 
  if (
temp.slot <= this.items.size()) {
    
play("necro_click2.wav");
    
temp.itemName makevar("clientr.items"thiso.backpack)[slot];
    
temp.itemRealName makevar("clientr.item_"temp.itemName)[1];
    if ( 
temp.itemName == NULL ) {
      if ( 
isObject("ItemOptions_Menu") )
        
ItemOptions_Menu.destroy();
      return;
    }
  } 
Should that be function ItemOptions_Menu?

Hopefully one of those helps.
Yeah I already do destroy everytime before showing (Pretty sure you're supposed to? Correct me if I'm wrong, but that's what I've learned through experience.)

And yeah I am using modal on other GUI's so they don't immediately interfere with gameplay. As far as the firstresponder thing.. I added that as the aftermath of not being able to correctly focus the context menu, just for testing purposes to see if it would help the problem (Which obviously isn't the case now.)

And thanks for pointing out the typo. Would've noticed it eventually once I got the GUI correctly functioning, but good gesture either way.

But yeah.. none of those really help what I'm trying to accomplish here. Not sure if my last post serves any relevance to the problem, but I think it should.. and I'm not at all sure how to fix 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:15 AM.


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