client: Improve menumanager (#2026)
* make menumanager work with everything it didn't work with before * rebuild left click before render instead of on client tick * Remove useless checks which were breaking when dragging in bank * Change rsclient line breaks (only 5th fucking time this pr dw) * Rename arg1 & arg2 getters/fields to be more consistent
This commit is contained in:
@@ -100,7 +100,6 @@ import net.runelite.api.events.UsernameChanged;
|
||||
import net.runelite.api.events.VarbitChanged;
|
||||
import net.runelite.api.events.VolumeChanged;
|
||||
import net.runelite.api.events.WidgetLoaded;
|
||||
import net.runelite.api.events.WidgetPressed;
|
||||
import net.runelite.api.hooks.Callbacks;
|
||||
import net.runelite.api.hooks.DrawCallbacks;
|
||||
import net.runelite.api.mixins.Copy;
|
||||
@@ -1403,16 +1402,6 @@ public abstract class RSClientMixin implements RSClient
|
||||
client.sendMenuAction(actionParam, widgetId, menuAction, id, menuOption, "!AUTHENTIC" + menuTarget, var6, var7);
|
||||
}
|
||||
|
||||
@Inject
|
||||
@FieldHook("tempMenuAction")
|
||||
public static void onTempMenuActionChanged(int idx)
|
||||
{
|
||||
if (client.getTempMenuAction() != null)
|
||||
{
|
||||
client.getCallbacks().post(WidgetPressed.class, WidgetPressed.INSTANCE);
|
||||
}
|
||||
}
|
||||
|
||||
@FieldHook("Login_username")
|
||||
@Inject
|
||||
public static void onUsernameChanged(int idx)
|
||||
|
||||
Reference in New Issue
Block a user