api: add selected widget api

This commit is contained in:
Adam
2022-04-16 16:06:39 -04:00
parent c0a338519c
commit 3d089369bd
2 changed files with 8 additions and 0 deletions

View File

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

View File

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