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:
@@ -1905,4 +1905,10 @@ public interface Client extends GameShell
|
||||
* the "You have been disconnected." message anymore.
|
||||
*/
|
||||
void setHideDisconnect(boolean dontShow);
|
||||
|
||||
/**
|
||||
* Sets the fields in the temporary menu entry that's saved in the client
|
||||
* when a inventory item is clicked and dragged.
|
||||
*/
|
||||
void setTempMenuEntry(MenuEntry entry);
|
||||
}
|
||||
@@ -25,7 +25,6 @@
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.AccessLevel;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import net.runelite.api.MenuEntry;
|
||||
@@ -42,7 +41,6 @@ import net.runelite.api.MenuEntry;
|
||||
* it seems that this event still triggers with the "Cancel" action.
|
||||
*/
|
||||
@Getter
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class MenuOptionClicked extends MenuEntry implements Event
|
||||
{
|
||||
public MenuOptionClicked(String option, String target, int identifier, int opcode, int param0, int param1, boolean forceLeftClick)
|
||||
|
||||
Reference in New Issue
Block a user