Client: menu changes (#1553)
* Remove sortMenuEntries as it is called before it would be used anyway * Modify the menuentries in MenuOpened rather than setting twice * menus: Corp, Devtools, Friend notes/tags, Grand exchange * menus: Manager, ground items
This commit is contained in:
@@ -1743,12 +1743,6 @@ public interface Client extends GameShell
|
||||
*/
|
||||
void setUnhiddenCasts(Set<String> casts);
|
||||
|
||||
/**
|
||||
* Sorts the current menu entries in the same way the client does this.
|
||||
* The last entry will be the left click one after this.
|
||||
*/
|
||||
void sortMenuEntries();
|
||||
|
||||
/**
|
||||
* Add player to friendlist
|
||||
*/
|
||||
|
||||
@@ -33,6 +33,13 @@ import lombok.Data;
|
||||
@Data
|
||||
public class MenuOpened implements Event
|
||||
{
|
||||
/**
|
||||
* This should be set to true if anything about the menu
|
||||
* in menuEntries is changed, so the changes can be
|
||||
* propagated through to the client.
|
||||
*/
|
||||
private boolean modified;
|
||||
|
||||
/**
|
||||
* The menu entries in the newly opened menu.
|
||||
* <p>
|
||||
|
||||
Reference in New Issue
Block a user