![]() |
catchevent parameters?
So I am trying to pass a variable with an event.. Not sure if it's possible? Or if I am way wrong on how to do it? I am planning to have let's say 10 images, and clicking on them will make the player chat the number of the image it clicked on..
PHP Code:
Removing i from catchevent(), however, shows the name of the Control. |
Quote:
PHP Code:
|
There is no fourth parameter for catchevent.
|
Do as ffcmike said. You cannot pass additional parameters to catchevent(). The first parameter in the catching function is always the object itself, and then follow the normal event parameters.
Remember additional values as this.variables in the GUI object itself. |
Quote:
|
Sorry for bumping this (it has been a year :(), but I've been attempting this method to no avail.
I've attempted even Thor's simple example; any other ways to do this? Or am I just doing something incorrectly? EDIT: FIXED! Thanks to Hoyt1134 In case anyone else has this problem, here's a possible solution based off of ffcmike's example. I instead wanted to send the image of the selected weapon, so I will replace it with what I wanted to do with it: PHP Code:
|
| All times are GMT +2. The time now is 12:04 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.