getMenuOption
getMenuOption: (WidgetMenuOption) -> stringThe option text ("Export" of "Export Ground Markers").
WidgetMenuOption.new(…)| Method | Returns | Description |
|---|---|---|
getMenuOption() | string | The option text ("Export" of "Export Ground Markers"). |
setMenuOption(string) | () | Set the option text; menus built from now on show it. |
getMenuTarget() | string | The target text, with its colour tag (<col=ff9040>Ground Markers</col>). |
setMenuTarget(string) | () | Set the target text, wrapped in the option's colour as it is now. |
getColor() | Color | The colour the next setMenuTarget wraps the target in. |
setColor(Color) | () | Set the colour; the target already set keeps its old colour until setMenuTarget is called again. |
equals(any) | boolean | Whether other equals this WidgetMenuOption, as == answers it (false for a value of another class). |
new(string, string, {number}) | WidgetMenuOption | WidgetMenuOption.new(menuOption, menuTarget, widgetId, ...): option text, target text (wrapped in the option's colour, `JagexColors.MENU_… |
| Method | Returns | Description |
|---|---|---|
WidgetMenuOptionClass.new | WidgetMenuOption | WidgetMenuOption.new(menuOption, menuTarget, widgetId, ...): option text, target text (wrapped in the option's colour, `JagexColors.MENU_… |
getMenuOptiongetMenuOption: (WidgetMenuOption) -> stringThe option text ("Export" of "Export Ground Markers").
setMenuOptionsetMenuOption: (WidgetMenuOption, string) -> ()Set the option text; menus built from now on show it.
getMenuTargetgetMenuTarget: (WidgetMenuOption) -> stringThe target text, with its colour tag (<col=ff9040>Ground Markers</col>).
setMenuTargetsetMenuTarget: (WidgetMenuOption, string) -> ()Set the target text, wrapped in the option's colour as it is now.
getColorgetColor: (WidgetMenuOption) -> ColorThe colour the next setMenuTarget wraps the target in.
setColorsetColor: (WidgetMenuOption, Color) -> ()Set the colour; the target already set keeps its old colour until setMenuTarget is called again.
equalsequals: (WidgetMenuOption, any) -> booleanWhether other equals this WidgetMenuOption, as == answers it (false for a value of another class).
newnew: (string, string, {number}) -> WidgetMenuOptionWidgetMenuOption.new(menuOption, menuTarget, widgetId, ...): option text, target text (wrapped in the option's colour, JagexColors.MENU_TARGET until setColor), and the packed ids of the widgets whose menus show it (pass them as arguments, or one array).