From 7cb33a3ebdb87f7abc2c12c0505836776ea315ef Mon Sep 17 00:00:00 2001 From: RallyBlock Date: Mon, 9 Nov 2026 05:48:31 -0500 Subject: [PATCH] Fix GuiMouseEventCtrl callbacks (stock arity) --- client.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/client.cs b/client.cs index f284c1f..d6f8290 100644 --- a/client.cs +++ b/client.cs @@ -67,22 +67,22 @@ function RPGClient_SendClick(%button, %pos) commandToServer('RPG_Click', %button, getWord(%norm, 0), getWord(%norm, 1), RPGClient_Aspect()); } -function RPGClient_Mouse::onMouseDown(%this, %modifier, %mouseClick, %mousePos, %button) +function RPGClient_Mouse::onMouseDown(%this, %mod, %pos, %clicks) { if (!$RPGClient::Active) { return; } - RPGClient_SendClick(%button, %mousePos); + RPGClient_SendClick(0, %pos); } -function RPGClient_Mouse::onRightMouseDown(%this, %modifier, %mouseClick, %mousePos, %button) +function RPGClient_Mouse::onRightMouseDown(%this, %mod, %pos, %clicks) { if (!$RPGClient::Active) { return; } - RPGClient_SendClick(1, %mousePos); + RPGClient_SendClick(1, %pos); } function RPGClient_EnableOverlay() @@ -91,8 +91,9 @@ function RPGClient_EnableOverlay() { return; } - RPGClient_Mouse = new GuiMouseEventCtrl(RPGClient_Mouse) + %mouse = new GuiMouseEventCtrl(RPGClient_Mouse) { + className = "RPGClient_Mouse"; horizSizing = "width"; vertSizing = "height"; position = "0 0";