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:
Lucwousin
2019-09-05 23:42:43 +02:00
committed by GitHub
parent 5bbae89a70
commit 7d4eebd8bc
15 changed files with 177 additions and 254 deletions

View File

@@ -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
*/

View File

@@ -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>