Skip to content

Commit

Permalink
EventDebugger: add menuoptionclicked output (no toggle yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben93riggs committed Nov 10, 2020
1 parent 953a597 commit 9232fce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eventdebugger/eventdebugger.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

version = "0.5.0"
version = "0.6.0"

project.extra["PluginName"] = "Event Debugger"
project.extra["PluginDescription"] = ""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package net.runelite.client.plugins.eventdebugger;

import com.google.inject.Provides;
import javax.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import net.runelite.api.Client;
import net.runelite.api.events.GameTick;
import net.runelite.api.events.MenuEntryAdded;
import net.runelite.api.events.MenuOptionClicked;
import net.runelite.client.Notifier;
import net.runelite.client.config.ConfigManager;
import net.runelite.client.eventbus.Subscribe;
Expand All @@ -13,8 +15,6 @@
import net.runelite.client.plugins.PluginType;
import org.pf4j.Extension;

import javax.inject.Inject;

@Extension
@PluginDescriptor(
name = "Event Debugger",
Expand Down Expand Up @@ -107,4 +107,16 @@ public void onMenuEntryAdded(final MenuEntryAdded event)
log.info("\tModified:\t" + event.isModified());

}

@Subscribe
public void onMenuOptionClicked(MenuOptionClicked event) {
log.info("MenuOptionClicked:");
log.info("\tOption:\t" + event.getOption());
log.info("\tTarget:\t" + event.getTarget());
log.info("\tIdentifier:\t" + event.getIdentifier());
log.info("\tOpcode:\t" + event.getOpcode());
log.info("\tParam0:\t" + event.getParam0());
log.info("\tParam1:\t" + event.getParam1());
log.info("\tForceLeftClick:\t" + event.isForceLeftClick());
}
}

0 comments on commit 9232fce

Please sign in to comment.