![]() |
Help with GUI?
So I'm having trouble with this inventory I'm creating. I'm basically trying to make it so when a player right clicks an item within the inventory, a Context GUIctrl will appear for displaying/clicking options. Well I've got this to work perfectly fine.. Except I can't click any of the options because oddly one of these other GUI's isn't allowing it and won't let the Context GUIctrl grab focus/activity.
I've tried doing a million different things regarding all the different GUI's, like making the other windows lose focus/activity, disabling the other gui's modal and than enabling only the options menu's modal, but alas.. nothing. I was hoping one of you mighty fine scriptin' fellas' would be able to locate the problem a let me know because I can't find anything and it's preventing me from completing the code. Thanks in advance, Sage! ^_^ I've attached the pieces of the code pertaining to the problem in a link here: http://pastebin.com/bwW8e2Ma Edit: Sorry for having to post a link rather than directly posting the code in the thread. Oddly my browser isn't letting me post it here.. it's saying something about "Owner denied your request".. Something to do with the tags around the code I think.. Not completely sure though. -_- |
hello!
i couldnt replicate this problem when using the provided script without all the server specific stuff, the item options menu appeared and functioned as expected, so i think this is interfering with another script although this wont fix the problem a word of advice is that guis and profiles are not strings, they are objects so shouldnt really be in " " quotes good luck! |
Debug using the following- it will tell you which GUI is stealing focus- press F2 to see the output;
HTML Code:
//#CLIENTSIDE |
Quote:
|
So after more research.. I've found that the ContextMenuCtrl, is actually just not registering as an object. I put the GUI in it's own code and was wondering if anyone could point out the problem? Btw the debug is returning null in all aspects.. I have a feeling it's something extremely simple that I'm just overlooking.. Or perhaps it's a problem with Graal in itself?
HTML Code:
//#CLIENTSIDE |
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:
Hopefully one of those helps. |
Quote:
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. -_- |
PHP Code:
Quote:
|
Quote:
|
All times are GMT +2. The time now is 06:44 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.