Fix GuiMouseEventCtrl callbacks (stock arity)

This commit is contained in:
RallyBlock committed 2026-11-09 05:48:31 -05:00
1 parent 53f1f5b3b5
commit 7cb33a3ebd
1 file changed
+6 -5
+6 -5
View File
@@ -67,22 +67,22 @@ function RPGClient_SendClick(%button, %pos)
commandToServer('RPG_Click', %button, getWord(%norm, 0), getWord(%norm, 1), RPGClient_Aspect()); 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) if (!$RPGClient::Active)
{ {
return; 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) if (!$RPGClient::Active)
{ {
return; return;
} }
RPGClient_SendClick(1, %mousePos); RPGClient_SendClick(1, %pos);
} }
function RPGClient_EnableOverlay() function RPGClient_EnableOverlay()
@@ -91,8 +91,9 @@ function RPGClient_EnableOverlay()
{ {
return; return;
} }
RPGClient_Mouse = new GuiMouseEventCtrl(RPGClient_Mouse) %mouse = new GuiMouseEventCtrl(RPGClient_Mouse)
{ {
className = "RPGClient_Mouse";
horizSizing = "width"; horizSizing = "width";
vertSizing = "height"; vertSizing = "height";
position = "0 0"; position = "0 0";