api: add selected widget api
This commit is contained in:
@@ -1901,6 +1901,13 @@ public interface Client extends OAuthApi, GameEngine
|
|||||||
*/
|
*/
|
||||||
int getSelectedItemIndex();
|
int getSelectedItemIndex();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the selected widget, such as a selected spell or selected item (eg. "Use")
|
||||||
|
* @return the selected widget
|
||||||
|
*/
|
||||||
|
@Nullable
|
||||||
|
Widget getSelectedWidget();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns client item composition cache
|
* Returns client item composition cache
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -139,6 +139,7 @@ public enum MenuAction
|
|||||||
WIDGET_TYPE_1(24),
|
WIDGET_TYPE_1(24),
|
||||||
/**
|
/**
|
||||||
* Select the widget for targeting other widgets/entites etc.
|
* Select the widget for targeting other widgets/entites etc.
|
||||||
|
* @see Client#getSelectedWidget()
|
||||||
*/
|
*/
|
||||||
WIDGET_TARGET(25),
|
WIDGET_TARGET(25),
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user