@deafwave/osrs-botmaker-types 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,65 @@
1
+ /// <reference path="../../../../../../src/types/runelite/index.d.ts" />
2
+ declare namespace net.runelite.api {
3
+ /**
4
+ * The client minimenu.
5
+ */
6
+ export interface Menu {
7
+ /**
8
+ * Create a new menu entry
9
+ * @param idx the index to create the menu entry at. Accepts negative indexes eg. -1 inserts at the end.
10
+ * @return the newly created menu entry
11
+ */
12
+ createMenuEntry(idx: number): MenuEntry;
13
+
14
+ /**
15
+ * Gets the current mini menu entries.
16
+ *
17
+ * @return array of menu entries
18
+ */
19
+ getMenuEntries(): MenuEntry[];
20
+
21
+ /**
22
+ * Sets the array of menu entries.
23
+ *
24
+ * This method should typically be used in the context of the MenuOpened
25
+ * event, since setting the menu entries will be overwritten the next frame
26
+ *
27
+ * @param entries new array of open menu entries
28
+ */
29
+ setMenuEntries(entries: MenuEntry[]): void;
30
+
31
+ /**
32
+ * Remove a menu entry
33
+ * @param entry the menu entry
34
+ */
35
+ removeMenuEntry(entry: MenuEntry): void;
36
+
37
+ /**
38
+ * Get the menu x location. Only valid if the menu is open.
39
+ *
40
+ * @return the menu x location
41
+ */
42
+ getMenuX(): number;
43
+
44
+ /**
45
+ * Get the menu y location. Only valid if the menu is open.
46
+ *
47
+ * @return the menu y location
48
+ */
49
+ getMenuY(): number;
50
+
51
+ /**
52
+ * Get the menu width. Only valid if the menu is open.
53
+ *
54
+ * @return the menu width
55
+ */
56
+ getMenuWidth(): number;
57
+
58
+ /**
59
+ * Get the menu height. Only valid if the menu is open.
60
+ *
61
+ * @return the menu height
62
+ */
63
+ getMenuHeight(): number;
64
+ }
65
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deafwave/osrs-botmaker-types",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "author": {
5
5
  "name": "Chandler Ferry",
6
6
  "url": "https://github.com/ChandlerFerry"