Fix GuiMouseEventCtrl callbacks (stock arity)
This commit is contained in:
1 parent
53f1f5b3b5
commit
7cb33a3ebd
1 file changed
+6
-5
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user