Skip to content

EventChooser.EventObj ​

com.jsmacrosce.jsmacros.client.gui.overlays.EventChooser.EventObj

Holds an event name and its associated button as a row value; it does not register the button itself.
This supporting type is not a global library. The caller supplies a name and WagYourGUI button:

js
function makeEventRow(name, button) {
 const EventObj = Java.type('com.jsmacrosce.jsmacros.client.gui.overlays.EventChooser$EventObj');  
 return new EventObj(name, button);  
}

Nested type declared in EventChooser.

Constructors ​

new EventChooser.EventObj ​

new EventChooser.EventObj(String event, Button btn)#
Stores the supplied row name and button references.

Parameters:

  • event: event name represented by the row
  • btn: associated WagYourGUI button