api: add menu location and size accessors

This commit is contained in:
Adam
2021-08-01 16:04:26 -04:00
parent 44134dc668
commit 4d845e5862

View File

@@ -618,6 +618,34 @@ public interface Client extends GameEngine
*/
boolean isMenuOpen();
/**
* Get the menu x location. Only valid if the menu is open.
*
* @return the menu x location
*/
int getMenuX();
/**
* Get the menu y location. Only valid if the menu is open.
*
* @return the menu y location
*/
int getMenuY();
/**
* Get the menu height. Only valid if the menu is open.
*
* @return the menu height
*/
int getMenuHeight();
/**
* Get the menu width. Only valid if the menu is open.
*
* @return the menu width
*/
int getMenuWidth();
/**
* Gets the angle of the map, or target camera yaw.
*