Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-23-2014, 04:34 PM
100Zero100 100Zero100 is offline
Registered User
Join Date: Jul 2006
Posts: 31
100Zero100 is on a distinguished road
A few GUI Commands not working?

I have a GUI system and ever since v6 went live I can't seem to get two things to work properly. I've tried basically everything I can think of, including isolated script testing. Are these just removed with v6?

1. The button.performClick(); function. Previously, I would bind a button locally to an edit box, so that when the player pressed "enter" it would catchEvent the editbox's onAction and then perform the this.relatedButton.performClick() functionality. However, now I cannot seem to get this to function, even when troubleshooting shows that the onAction catchevent is functioning properly. I've even tried simply straight-up defining a button by itself and then doing .performClick() on it, and it didn't work.

2. Are MLTEdits no longer able to have borders or backgrounds? It's a real nuisance.


I have implemented the following solutions, assuming these are actually broken:

1. Rather than doing this.relatedButton.performClick() on the button, I am simply calling the redirected catchEvent directly: buttonPressed(this.relatedButton);

2. I've taken to it by simply adding a control (for its borders/background) and then putting the MLTEdit inside of the control. It makes for some sloppy annoyances, but I've managed.
__________________
Hi. I'm NaS!

Last edited by 100Zero100; 01-23-2014 at 04:57 PM..
Reply With Quote
  #2  
Old 01-24-2014, 02:40 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
performClick was removed in v6:

Quote:
Originally Posted by Stefan View Post
Quote:
Originally Posted by cbk1994 View Post
GuiButtonCtrl.performclick() doesn't seem to work
It has been removed a long time ago because of security issues.
iirc for #2 you need to wrap it in a GuiScrollCtrl, but not 100% sure on that
__________________
Reply With Quote
Reply


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 04:23 AM.


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