@deafwave/osrs-botmaker-types 0.2.12 → 0.3.0

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.
Files changed (285) hide show
  1. package/README.md +3 -1
  2. package/dist/src/api/index.d.ts +1 -0
  3. package/dist/src/api/index.js +1 -0
  4. package/dist/src/index.d.ts +1 -1
  5. package/dist/src/types/java/awt/BasicStroke.d.ts +2 -9
  6. package/dist/src/types/java/awt/Color.d.ts +20 -3
  7. package/dist/src/types/java/awt/Dimension.d.ts +55 -0
  8. package/dist/src/types/java/awt/Graphics2D.d.ts +4 -17
  9. package/dist/src/types/java/index.d.ts +3 -6
  10. package/dist/src/types/java/lang/index.d.ts +30 -0
  11. package/dist/src/types/java/util/index.d.ts +231 -0
  12. package/dist/src/types/runelite/index.d.ts +7 -1
  13. package/dist/src/types/runelite/net/runelite/api/ChatMessageType.d.ts +174 -295
  14. package/dist/src/types/runelite/net/runelite/api/Client.d.ts +6 -6
  15. package/dist/src/types/runelite/net/runelite/api/Deque.d.ts +1 -1
  16. package/dist/src/types/runelite/net/runelite/api/EquipmentInventorySlot.d.ts +30 -61
  17. package/dist/src/types/runelite/net/runelite/api/FriendContainer.d.ts +1 -1
  18. package/dist/src/types/runelite/net/runelite/api/GameState.d.ts +55 -78
  19. package/dist/src/types/runelite/net/runelite/api/InventoryID.d.ts +23 -180
  20. package/dist/src/types/runelite/net/runelite/api/ItemID.d.ts +355 -23
  21. package/dist/src/types/runelite/net/runelite/api/PlayerComposition.d.ts +1 -1
  22. package/dist/src/types/runelite/net/runelite/api/SpritePixels.d.ts +1 -1
  23. package/dist/src/types/runelite/net/runelite/api/WorldView.d.ts +2 -2
  24. package/dist/src/types/runelite/net/runelite/api/coords/WorldArea.d.ts +19 -31
  25. package/dist/src/types/runelite/net/runelite/api/widgets/ComponentID.d.ts +2171 -0
  26. package/dist/src/types/runelite/net/runelite/api/widgets/InterfaceID.d.ts +318 -0
  27. package/dist/src/types/runelite/net/runelite/api/widgets/Widget.d.ts +1 -1
  28. package/dist/src/types/runelite/net/runelite/client/chat/ChatMessageBuilder.d.ts +7 -8
  29. package/dist/src/types/runelite/net/runelite/client/chat/ChatMessageManager.d.ts +38 -39
  30. package/dist/src/types/runelite/net/runelite/client/config/ChatColorConfig.d.ts +80 -80
  31. package/dist/src/types/runelite/net/runelite/client/config/RuneLiteConfig.d.ts +3 -3
  32. package/dist/src/types/runelite/net/runelite/client/game/ItemManager.d.ts +5 -21
  33. package/dist/src/types/runelite/net/runelite/client/game/npcoverlay/NpcMinimapOverlay.d.ts +4 -5
  34. package/dist/src/types/runelite/net/runelite/client/game/npcoverlay/NpcOverlay.d.ts +11 -6
  35. package/dist/src/types/runelite/net/runelite/client/plugins/agility/AgilityConfig.d.ts +6 -6
  36. package/dist/src/types/runelite/net/runelite/client/plugins/agility/AgilityOverlay.d.ts +10 -6
  37. package/dist/src/types/runelite/net/runelite/client/plugins/agility/LapCounterOverlay.d.ts +4 -5
  38. package/dist/src/types/runelite/net/runelite/client/plugins/attackstyles/AttackStylesOverlay.d.ts +3 -4
  39. package/dist/src/types/runelite/net/runelite/client/plugins/barbarianassault/HealerOverlay.d.ts +79 -41
  40. package/dist/src/types/runelite/net/runelite/client/plugins/barbarianassault/TimerOverlay.d.ts +3 -4
  41. package/dist/src/types/runelite/net/runelite/client/plugins/barrows/BarrowsBrotherSlainOverlay.d.ts +20 -21
  42. package/dist/src/types/runelite/net/runelite/client/plugins/barrows/BarrowsConfig.d.ts +2 -2
  43. package/dist/src/types/runelite/net/runelite/client/plugins/barrows/BarrowsOverlay.d.ts +4 -5
  44. package/dist/src/types/runelite/net/runelite/client/plugins/blastfurnace/BlastFurnaceClickBoxOverlay.d.ts +5 -6
  45. package/dist/src/types/runelite/net/runelite/client/plugins/blastfurnace/BlastFurnaceCofferOverlay.d.ts +3 -4
  46. package/dist/src/types/runelite/net/runelite/client/plugins/blastfurnace/BlastFurnaceOverlay.d.ts +4 -5
  47. package/dist/src/types/runelite/net/runelite/client/plugins/blastmine/BlastMineOreCountOverlay.d.ts +4 -5
  48. package/dist/src/types/runelite/net/runelite/client/plugins/blastmine/BlastMinePluginConfig.d.ts +2 -2
  49. package/dist/src/types/runelite/net/runelite/client/plugins/blastmine/BlastMineRockOverlay.d.ts +7 -8
  50. package/dist/src/types/runelite/net/runelite/client/plugins/boosts/BoostIndicator.d.ts +6 -7
  51. package/dist/src/types/runelite/net/runelite/client/plugins/boosts/BoostsOverlay.d.ts +4 -5
  52. package/dist/src/types/runelite/net/runelite/client/plugins/boosts/CompactBoostsOverlay.d.ts +15 -9
  53. package/dist/src/types/runelite/net/runelite/client/plugins/boosts/StatChangeIndicator.d.ts +5 -6
  54. package/dist/src/types/runelite/net/runelite/client/plugins/cannon/CannonConfig.d.ts +1 -1
  55. package/dist/src/types/runelite/net/runelite/client/plugins/cannon/CannonCounter.d.ts +4 -5
  56. package/dist/src/types/runelite/net/runelite/client/plugins/cannon/CannonOverlay.d.ts +13 -10
  57. package/dist/src/types/runelite/net/runelite/client/plugins/cannon/CannonPlugin.d.ts +16 -15
  58. package/dist/src/types/runelite/net/runelite/client/plugins/cannon/CannonSpotOverlay.d.ts +10 -5
  59. package/dist/src/types/runelite/net/runelite/client/plugins/chatchannel/ChatChannelConfig.d.ts +1 -1
  60. package/dist/src/types/runelite/net/runelite/client/plugins/chatchannel/ChatChannelPlugin.d.ts +46 -43
  61. package/dist/src/types/runelite/net/runelite/client/plugins/cluescrolls/ClueScrollEmoteOverlay.d.ts +3 -4
  62. package/dist/src/types/runelite/net/runelite/client/plugins/cluescrolls/ClueScrollMusicOverlay.d.ts +3 -4
  63. package/dist/src/types/runelite/net/runelite/client/plugins/cluescrolls/ClueScrollOverlay.d.ts +3 -4
  64. package/dist/src/types/runelite/net/runelite/client/plugins/cluescrolls/ClueScrollWorldOverlay.d.ts +3 -4
  65. package/dist/src/types/runelite/net/runelite/client/plugins/combatlevel/CombatLevelOverlay.d.ts +4 -5
  66. package/dist/src/types/runelite/net/runelite/client/plugins/config/ConfigPanel.d.ts +29 -27
  67. package/dist/src/types/runelite/net/runelite/client/plugins/config/FixedWidthPanel.d.ts +3 -4
  68. package/dist/src/types/runelite/net/runelite/client/plugins/config/NotificationPanel.d.ts +13 -14
  69. package/dist/src/types/runelite/net/runelite/client/plugins/config/PluginListPanel.d.ts +19 -20
  70. package/dist/src/types/runelite/net/runelite/client/plugins/cooking/CookingOverlay.d.ts +4 -5
  71. package/dist/src/types/runelite/net/runelite/client/plugins/cooking/FermentTimer.d.ts +7 -8
  72. package/dist/src/types/runelite/net/runelite/client/plugins/corp/CorpDamageOverlay.d.ts +3 -4
  73. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/CameraOverlay.d.ts +3 -4
  74. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/DevToolsOverlay.d.ts +15 -16
  75. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/InventoryDeltaPanel.d.ts +12 -13
  76. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/LocationOverlay.d.ts +3 -4
  77. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/SceneOverlay.d.ts +17 -13
  78. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/SoundEffectOverlay.d.ts +6 -7
  79. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/WidgetInspector.d.ts +19 -20
  80. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/WidgetInspectorOverlay.d.ts +4 -5
  81. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/WorldMapLocationOverlay.d.ts +3 -4
  82. package/dist/src/types/runelite/net/runelite/client/plugins/devtools/WorldMapRegionOverlay.d.ts +6 -7
  83. package/dist/src/types/runelite/net/runelite/client/plugins/dpscounter/DpsOverlay.d.ts +5 -6
  84. package/dist/src/types/runelite/net/runelite/client/plugins/driftnet/DriftNetConfig.d.ts +3 -3
  85. package/dist/src/types/runelite/net/runelite/client/plugins/driftnet/DriftNetOverlay.d.ts +6 -7
  86. package/dist/src/types/runelite/net/runelite/client/plugins/fishing/FishingConfig.d.ts +4 -4
  87. package/dist/src/types/runelite/net/runelite/client/plugins/fishing/FishingOverlay.d.ts +3 -4
  88. package/dist/src/types/runelite/net/runelite/client/plugins/fishing/FishingSpotMinimapOverlay.d.ts +3 -4
  89. package/dist/src/types/runelite/net/runelite/client/plugins/fishing/FishingSpotOverlay.d.ts +4 -5
  90. package/dist/src/types/runelite/net/runelite/client/plugins/fps/FpsOverlay.d.ts +16 -17
  91. package/dist/src/types/runelite/net/runelite/client/plugins/friendnotes/FriendNoteOverlay.d.ts +3 -4
  92. package/dist/src/types/runelite/net/runelite/client/plugins/gpu/GpuPluginConfig.d.ts +1 -1
  93. package/dist/src/types/runelite/net/runelite/client/plugins/grandexchange/GrandExchangeItemPanel.d.ts +7 -8
  94. package/dist/src/types/runelite/net/runelite/client/plugins/grandexchange/GrandExchangeOfferSlot.d.ts +13 -14
  95. package/dist/src/types/runelite/net/runelite/client/plugins/grounditems/GroundItemsConfig.d.ts +7 -7
  96. package/dist/src/types/runelite/net/runelite/client/plugins/grounditems/GroundItemsOverlay.d.ts +34 -29
  97. package/dist/src/types/runelite/net/runelite/client/plugins/grounditems/GroundItemsPlugin.d.ts +47 -48
  98. package/dist/src/types/runelite/net/runelite/client/plugins/grounditems/Lootbeam.d.ts +20 -13
  99. package/dist/src/types/runelite/net/runelite/client/plugins/groundmarkers/GroundMarkerConfig.d.ts +1 -1
  100. package/dist/src/types/runelite/net/runelite/client/plugins/groundmarkers/GroundMarkerMinimapOverlay.d.ts +5 -6
  101. package/dist/src/types/runelite/net/runelite/client/plugins/groundmarkers/GroundMarkerOverlay.d.ts +11 -6
  102. package/dist/src/types/runelite/net/runelite/client/plugins/groundmarkers/GroundMarkerPlugin.d.ts +24 -25
  103. package/dist/src/types/runelite/net/runelite/client/plugins/herbiboars/HerbiboarConfig.d.ts +4 -4
  104. package/dist/src/types/runelite/net/runelite/client/plugins/herbiboars/HerbiboarMinimapOverlay.d.ts +3 -4
  105. package/dist/src/types/runelite/net/runelite/client/plugins/herbiboars/HerbiboarOverlay.d.ts +4 -5
  106. package/dist/src/types/runelite/net/runelite/client/plugins/hunter/HunterConfig.d.ts +4 -4
  107. package/dist/src/types/runelite/net/runelite/client/plugins/hunter/TrapOverlay.d.ts +51 -40
  108. package/dist/src/types/runelite/net/runelite/client/plugins/implings/ImplingsConfig.d.ts +13 -13
  109. package/dist/src/types/runelite/net/runelite/client/plugins/implings/ImplingsOverlay.d.ts +9 -5
  110. package/dist/src/types/runelite/net/runelite/client/plugins/implings/ImplingsPlugin.d.ts +11 -12
  111. package/dist/src/types/runelite/net/runelite/client/plugins/instancemap/InstanceMapOverlay.d.ts +60 -55
  112. package/dist/src/types/runelite/net/runelite/client/plugins/interacthighlight/InteractHighlightConfig.d.ts +6 -6
  113. package/dist/src/types/runelite/net/runelite/client/plugins/interacthighlight/InteractHighlightOverlay.d.ts +7 -8
  114. package/dist/src/types/runelite/net/runelite/client/plugins/inventorygrid/InventoryGridConfig.d.ts +2 -2
  115. package/dist/src/types/runelite/net/runelite/client/plugins/inventorygrid/InventoryGridOverlay.d.ts +9 -7
  116. package/dist/src/types/runelite/net/runelite/client/plugins/inventorytags/InventoryTagsOverlay.d.ts +6 -7
  117. package/dist/src/types/runelite/net/runelite/client/plugins/inventoryviewer/InventoryViewerOverlay.d.ts +6 -7
  118. package/dist/src/types/runelite/net/runelite/client/plugins/itemcharges/ItemChargeConfig.d.ts +2 -2
  119. package/dist/src/types/runelite/net/runelite/client/plugins/itemcharges/ItemChargeInfobox.d.ts +3 -4
  120. package/dist/src/types/runelite/net/runelite/client/plugins/itemcharges/ItemChargePlugin.d.ts +33 -34
  121. package/dist/src/types/runelite/net/runelite/client/plugins/itemidentification/ItemIdentificationConfig.d.ts +1 -1
  122. package/dist/src/types/runelite/net/runelite/client/plugins/itemprices/ItemPricesOverlay.d.ts +16 -17
  123. package/dist/src/types/runelite/net/runelite/client/plugins/itemstats/ItemStatConfig.d.ts +5 -5
  124. package/dist/src/types/runelite/net/runelite/client/plugins/itemstats/ItemStatOverlay.d.ts +30 -18
  125. package/dist/src/types/runelite/net/runelite/client/plugins/itemstats/Positivity.d.ts +68 -44
  126. package/dist/src/types/runelite/net/runelite/client/plugins/kourendlibrary/KourendLibraryOverlay.d.ts +9 -10
  127. package/dist/src/types/runelite/net/runelite/client/plugins/kourendlibrary/KourendLibraryTutorialOverlay.d.ts +3 -4
  128. package/dist/src/types/runelite/net/runelite/client/plugins/minimap/MinimapConfig.d.ts +7 -7
  129. package/dist/src/types/runelite/net/runelite/client/plugins/minimap/MinimapDot.d.ts +4 -5
  130. package/dist/src/types/runelite/net/runelite/client/plugins/minimap/MinimapPlugin.d.ts +13 -14
  131. package/dist/src/types/runelite/net/runelite/client/plugins/mining/MiningOverlay.d.ts +3 -4
  132. package/dist/src/types/runelite/net/runelite/client/plugins/mining/MiningRocksOverlay.d.ts +16 -17
  133. package/dist/src/types/runelite/net/runelite/client/plugins/motherlode/MiningOverlay.d.ts +4 -5
  134. package/dist/src/types/runelite/net/runelite/client/plugins/motherlode/MotherlodeSceneOverlay.d.ts +8 -9
  135. package/dist/src/types/runelite/net/runelite/client/plugins/mousehighlight/MouseHighlightOverlay.d.ts +8 -9
  136. package/dist/src/types/runelite/net/runelite/client/plugins/mta/MTASceneOverlay.d.ts +3 -4
  137. package/dist/src/types/runelite/net/runelite/client/plugins/mta/alchemy/AlchemyRoom.d.ts +17 -18
  138. package/dist/src/types/runelite/net/runelite/client/plugins/mta/graveyard/GraveyardCounter.d.ts +3 -4
  139. package/dist/src/types/runelite/net/runelite/client/plugins/nightmarezone/AbsorptionCounter.d.ts +4 -5
  140. package/dist/src/types/runelite/net/runelite/client/plugins/nightmarezone/NightmareZoneConfig.d.ts +2 -2
  141. package/dist/src/types/runelite/net/runelite/client/plugins/nightmarezone/NightmareZoneOverlay.d.ts +8 -9
  142. package/dist/src/types/runelite/net/runelite/client/plugins/npchighlight/NpcIndicatorsConfig.d.ts +3 -3
  143. package/dist/src/types/runelite/net/runelite/client/plugins/npchighlight/NpcIndicatorsPlugin.d.ts +92 -90
  144. package/dist/src/types/runelite/net/runelite/client/plugins/npchighlight/NpcRespawnOverlay.d.ts +12 -8
  145. package/dist/src/types/runelite/net/runelite/client/plugins/npcunaggroarea/AggressionTimer.d.ts +4 -5
  146. package/dist/src/types/runelite/net/runelite/client/plugins/npcunaggroarea/NpcAggroAreaConfig.d.ts +2 -2
  147. package/dist/src/types/runelite/net/runelite/client/plugins/npcunaggroarea/NpcAggroAreaOverlay.d.ts +4 -5
  148. package/dist/src/types/runelite/net/runelite/client/plugins/npcunaggroarea/UncalibratedInfobox.d.ts +5 -6
  149. package/dist/src/types/runelite/net/runelite/client/plugins/objectindicators/ObjectIndicatorsConfig.d.ts +2 -2
  150. package/dist/src/types/runelite/net/runelite/client/plugins/objectindicators/ObjectIndicatorsOverlay.d.ts +14 -9
  151. package/dist/src/types/runelite/net/runelite/client/plugins/objectindicators/ObjectIndicatorsPlugin.d.ts +57 -44
  152. package/dist/src/types/runelite/net/runelite/client/plugins/opponentinfo/OpponentInfoOverlay.d.ts +18 -19
  153. package/dist/src/types/runelite/net/runelite/client/plugins/opponentinfo/PlayerComparisonOverlay.d.ts +5 -6
  154. package/dist/src/types/runelite/net/runelite/client/plugins/party/PartyConfig.d.ts +2 -2
  155. package/dist/src/types/runelite/net/runelite/client/plugins/party/PartyPingOverlay.d.ts +4 -5
  156. package/dist/src/types/runelite/net/runelite/client/plugins/party/PartyPlugin.d.ts +36 -37
  157. package/dist/src/types/runelite/net/runelite/client/plugins/party/PartyStatusOverlay.d.ts +13 -8
  158. package/dist/src/types/runelite/net/runelite/client/plugins/pestcontrol/PestControlOverlay.d.ts +11 -12
  159. package/dist/src/types/runelite/net/runelite/client/plugins/playerindicators/PlayerIndicatorsConfig.d.ts +7 -7
  160. package/dist/src/types/runelite/net/runelite/client/plugins/playerindicators/PlayerIndicatorsMinimapOverlay.d.ts +8 -5
  161. package/dist/src/types/runelite/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.d.ts +9 -6
  162. package/dist/src/types/runelite/net/runelite/client/plugins/playerindicators/PlayerIndicatorsTileOverlay.d.ts +3 -4
  163. package/dist/src/types/runelite/net/runelite/client/plugins/poh/BurnerOverlay.d.ts +3 -4
  164. package/dist/src/types/runelite/net/runelite/client/plugins/poh/PohOverlay.d.ts +4 -5
  165. package/dist/src/types/runelite/net/runelite/client/plugins/poison/PoisonInfobox.d.ts +4 -5
  166. package/dist/src/types/runelite/net/runelite/client/plugins/poison/PoisonOverlay.d.ts +3 -4
  167. package/dist/src/types/runelite/net/runelite/client/plugins/prayer/PrayerBarOverlay.d.ts +7 -8
  168. package/dist/src/types/runelite/net/runelite/client/plugins/prayer/PrayerConfig.d.ts +2 -2
  169. package/dist/src/types/runelite/net/runelite/client/plugins/prayer/PrayerCounter.d.ts +5 -6
  170. package/dist/src/types/runelite/net/runelite/client/plugins/prayer/PrayerDoseOverlay.d.ts +5 -6
  171. package/dist/src/types/runelite/net/runelite/client/plugins/prayer/PrayerFlickOverlay.d.ts +3 -4
  172. package/dist/src/types/runelite/net/runelite/client/plugins/puzzlesolver/PuzzleSolverOverlay.d.ts +19 -20
  173. package/dist/src/types/runelite/net/runelite/client/plugins/pyramidplunder/PyramidPlunderConfig.d.ts +3 -3
  174. package/dist/src/types/runelite/net/runelite/client/plugins/pyramidplunder/PyramidPlunderOverlay.d.ts +4 -5
  175. package/dist/src/types/runelite/net/runelite/client/plugins/pyramidplunder/PyramidPlunderTimer.d.ts +5 -6
  176. package/dist/src/types/runelite/net/runelite/client/plugins/raids/RaidsOverlay.d.ts +5 -6
  177. package/dist/src/types/runelite/net/runelite/client/plugins/raids/RaidsTimer.d.ts +8 -9
  178. package/dist/src/types/runelite/net/runelite/client/plugins/regenmeter/RegenMeterOverlay.d.ts +5 -6
  179. package/dist/src/types/runelite/net/runelite/client/plugins/runecraft/AbyssMinimapOverlay.d.ts +4 -5
  180. package/dist/src/types/runelite/net/runelite/client/plugins/runecraft/AbyssOverlay.d.ts +4 -5
  181. package/dist/src/types/runelite/net/runelite/client/plugins/runenergy/RunEnergyOverlay.d.ts +3 -4
  182. package/dist/src/types/runelite/net/runelite/client/plugins/runepouch/RunepouchConfig.d.ts +1 -1
  183. package/dist/src/types/runelite/net/runelite/client/plugins/screenmarkers/ScreenMarkerCreationOverlay.d.ts +4 -5
  184. package/dist/src/types/runelite/net/runelite/client/plugins/screenmarkers/ScreenMarkerOverlay.d.ts +5 -6
  185. package/dist/src/types/runelite/net/runelite/client/plugins/screenmarkers/ScreenMarkerPlugin.d.ts +14 -15
  186. package/dist/src/types/runelite/net/runelite/client/plugins/screenmarkers/ScreenMarkerRenderable.d.ts +3 -4
  187. package/dist/src/types/runelite/net/runelite/client/plugins/screenmarkers/ScreenMarkerWidgetHighlightOverlay.d.ts +4 -5
  188. package/dist/src/types/runelite/net/runelite/client/plugins/screenshot/ScreenshotOverlay.d.ts +4 -5
  189. package/dist/src/types/runelite/net/runelite/client/plugins/skillcalculator/UIActionSlot.d.ts +8 -9
  190. package/dist/src/types/runelite/net/runelite/client/plugins/skybox/SkyboxPluginConfig.d.ts +2 -2
  191. package/dist/src/types/runelite/net/runelite/client/plugins/slayer/SlayerConfig.d.ts +1 -1
  192. package/dist/src/types/runelite/net/runelite/client/plugins/slayer/TargetWeaknessOverlay.d.ts +5 -6
  193. package/dist/src/types/runelite/net/runelite/client/plugins/smelting/SmeltingOverlay.d.ts +4 -5
  194. package/dist/src/types/runelite/net/runelite/client/plugins/specialcounter/PlayerInfoDropOverlay.d.ts +4 -5
  195. package/dist/src/types/runelite/net/runelite/client/plugins/specialcounter/SpecialCounter.d.ts +6 -7
  196. package/dist/src/types/runelite/net/runelite/client/plugins/specialcounter/SpecialCounterConfig.d.ts +1 -1
  197. package/dist/src/types/runelite/net/runelite/client/plugins/statusbars/StatusBarsOverlay.d.ts +8 -9
  198. package/dist/src/types/runelite/net/runelite/client/plugins/team/MembersIndicator.d.ts +3 -4
  199. package/dist/src/types/runelite/net/runelite/client/plugins/team/TeamCapesOverlay.d.ts +7 -8
  200. package/dist/src/types/runelite/net/runelite/client/plugins/tearsofguthix/TearsOfGuthixConfig.d.ts +2 -2
  201. package/dist/src/types/runelite/net/runelite/client/plugins/tearsofguthix/TearsOfGuthixOverlay.d.ts +3 -4
  202. package/dist/src/types/runelite/net/runelite/client/plugins/tileindicators/TileIndicatorsConfig.d.ts +6 -6
  203. package/dist/src/types/runelite/net/runelite/client/plugins/tileindicators/TileIndicatorsOverlay.d.ts +11 -6
  204. package/dist/src/types/runelite/net/runelite/client/plugins/timers/ElapsedTimer.d.ts +6 -7
  205. package/dist/src/types/runelite/net/runelite/client/plugins/timers/IndicatorIndicator.d.ts +4 -5
  206. package/dist/src/types/runelite/net/runelite/client/plugins/timestamp/TimestampConfig.d.ts +2 -2
  207. package/dist/src/types/runelite/net/runelite/client/plugins/timestamp/TimestampPlugin.d.ts +10 -11
  208. package/dist/src/types/runelite/net/runelite/client/plugins/timetracking/OverviewItemPanel.d.ts +4 -5
  209. package/dist/src/types/runelite/net/runelite/client/plugins/timetracking/clocks/ClockPanel.d.ts +11 -12
  210. package/dist/src/types/runelite/net/runelite/client/plugins/timetracking/clocks/TimerPanel.d.ts +4 -5
  211. package/dist/src/types/runelite/net/runelite/client/plugins/timetracking/farming/FarmingContractInfoBox.d.ts +6 -7
  212. package/dist/src/types/runelite/net/runelite/client/plugins/tithefarm/TitheFarmPlantOverlay.d.ts +7 -8
  213. package/dist/src/types/runelite/net/runelite/client/plugins/tithefarm/TitheFarmPluginConfig.d.ts +3 -3
  214. package/dist/src/types/runelite/net/runelite/client/plugins/wintertodt/WintertodtConfig.d.ts +1 -1
  215. package/dist/src/types/runelite/net/runelite/client/plugins/wintertodt/WintertodtOverlay.d.ts +3 -4
  216. package/dist/src/types/runelite/net/runelite/client/plugins/woodcutting/WoodcuttingOverlay.d.ts +3 -4
  217. package/dist/src/types/runelite/net/runelite/client/plugins/woodcutting/WoodcuttingSceneOverlay.d.ts +14 -15
  218. package/dist/src/types/runelite/net/runelite/client/plugins/worldhopper/WorldHopperPingOverlay.d.ts +3 -4
  219. package/dist/src/types/runelite/net/runelite/client/plugins/xpdrop/XpDropConfig.d.ts +4 -4
  220. package/dist/src/types/runelite/net/runelite/client/plugins/xpglobes/XpGlobesConfig.d.ts +3 -3
  221. package/dist/src/types/runelite/net/runelite/client/plugins/xpglobes/XpGlobesOverlay.d.ts +38 -14
  222. package/dist/src/types/runelite/net/runelite/client/plugins/xptracker/XpInfoBoxOverlay.d.ts +4 -5
  223. package/dist/src/types/runelite/net/runelite/client/plugins/zalcano/ZalcanoOverlay.d.ts +3 -4
  224. package/dist/src/types/runelite/net/runelite/client/plugins/zalcano/ZalcanoPanel.d.ts +6 -7
  225. package/dist/src/types/runelite/net/runelite/client/ui/ContainableFrame.d.ts +67 -45
  226. package/dist/src/types/runelite/net/runelite/client/ui/DynamicGridLayout.d.ts +18 -19
  227. package/dist/src/types/runelite/net/runelite/client/ui/PluginPanel.d.ts +6 -7
  228. package/dist/src/types/runelite/net/runelite/client/ui/components/ColorJButton.d.ts +4 -5
  229. package/dist/src/types/runelite/net/runelite/client/ui/components/DimmableJPanel.d.ts +14 -15
  230. package/dist/src/types/runelite/net/runelite/client/ui/components/FlatTextField.d.ts +19 -20
  231. package/dist/src/types/runelite/net/runelite/client/ui/components/IconTextField.d.ts +68 -45
  232. package/dist/src/types/runelite/net/runelite/client/ui/components/ThinProgressBar.d.ts +10 -11
  233. package/dist/src/types/runelite/net/runelite/client/ui/components/colorpicker/ColorPanel.d.ts +27 -28
  234. package/dist/src/types/runelite/net/runelite/client/ui/components/colorpicker/ColorPickerManager.d.ts +3 -4
  235. package/dist/src/types/runelite/net/runelite/client/ui/components/colorpicker/HuePanel.d.ts +19 -20
  236. package/dist/src/types/runelite/net/runelite/client/ui/components/colorpicker/PreviewPanel.d.ts +4 -5
  237. package/dist/src/types/runelite/net/runelite/client/ui/components/colorpicker/RecentColors.d.ts +7 -8
  238. package/dist/src/types/runelite/net/runelite/client/ui/components/colorpicker/RuneliteColorPicker.d.ts +15 -16
  239. package/dist/src/types/runelite/net/runelite/client/ui/components/shadowlabel/JShadowedLabel.d.ts +4 -5
  240. package/dist/src/types/runelite/net/runelite/client/ui/overlay/OverlayManager.d.ts +1 -1
  241. package/dist/src/types/runelite/net/runelite/client/ui/overlay/OverlayPanel.d.ts +4 -6
  242. package/dist/src/types/runelite/net/runelite/client/ui/overlay/OverlayUtil.d.ts +16 -36
  243. package/dist/src/types/runelite/net/runelite/client/ui/overlay/RenderableEntity.d.ts +1 -1
  244. package/dist/src/types/runelite/net/runelite/client/ui/overlay/WidgetItemOverlay.d.ts +2 -6
  245. package/dist/src/types/runelite/net/runelite/client/ui/overlay/WidgetOverlay.d.ts +3 -10
  246. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/BackgroundComponent.d.ts +2 -6
  247. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ComponentConstants.d.ts +1 -1
  248. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ImageComponent.d.ts +2 -2
  249. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/LayoutableRenderableEntity.d.ts +1 -1
  250. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/LineComponent.d.ts +8 -10
  251. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/PanelComponent.d.ts +15 -15
  252. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ProgressBarComponent.d.ts +6 -8
  253. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ProgressPieComponent.d.ts +10 -8
  254. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/SplitComponent.d.ts +3 -5
  255. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/TextComponent.d.ts +2 -2
  256. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/TitleComponent.d.ts +6 -10
  257. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/TooltipComponent.d.ts +3 -3
  258. package/dist/src/types/runelite/net/runelite/client/ui/overlay/infobox/Counter.d.ts +4 -5
  259. package/dist/src/types/runelite/net/runelite/client/ui/overlay/infobox/InfoBox.d.ts +7 -8
  260. package/dist/src/types/runelite/net/runelite/client/ui/overlay/infobox/InfoBoxOverlay.d.ts +9 -10
  261. package/dist/src/types/runelite/net/runelite/client/ui/overlay/infobox/LoopTimer.d.ts +5 -6
  262. package/dist/src/types/runelite/net/runelite/client/ui/overlay/infobox/Timer.d.ts +16 -17
  263. package/dist/src/types/runelite/net/runelite/client/ui/overlay/outline/ModelOutlineRenderer.d.ts +192 -159
  264. package/dist/src/types/runelite/net/runelite/client/ui/overlay/tooltip/TooltipOverlay.d.ts +6 -7
  265. package/dist/src/types/runelite/net/runelite/client/ui/overlay/worldmap/WorldMapOverlay.d.ts +24 -25
  266. package/dist/src/types/runelite/net/runelite/client/util/ColorUtil.d.ts +104 -105
  267. package/dist/src/types/runelite/net/runelite/client/util/ImageUtil.d.ts +187 -183
  268. package/dist/src/types/runelite/net/runelite/http/api/item/index.d.ts +232 -0
  269. package/dist/src/types/sox/api/api.d.ts +64 -40
  270. package/dist/src/types/sox/api/bot.d.ts +117 -0
  271. package/dist/src/types/sox/index.d.ts +7 -1
  272. package/package.json +8 -7
  273. package/dist/src/types/java/Collection.d.ts +0 -24
  274. package/dist/src/types/java/Dimension.d.ts +0 -1
  275. package/dist/src/types/java/Graphics2D.d.ts +0 -65
  276. package/dist/src/types/java/List.d.ts +0 -40
  277. package/dist/src/types/java/Thread.d.ts +0 -1
  278. package/dist/src/types/java/lang/Thread.d.ts +0 -8
  279. package/dist/src/types/java/util/HashSet.d.ts +0 -19
  280. package/dist/src/types/java/util/LinkedList.d.ts +0 -16
  281. package/dist/src/types/java/util/Set.d.ts +0 -11
  282. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/PanelComponents.d.ts +0 -22
  283. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ProgressPieComponents.d.ts +0 -13
  284. package/dist/src/types/runelite/target/generated-sources/net/runelite/api/widgets/ComponentID.d.ts +0 -1305
  285. package/dist/src/types/runelite/target/generated-sources/net/runelite/api/widgets/InterfaceID.d.ts +0 -6
@@ -25,9 +25,8 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.client.ui.overlay.infobox {
28
- export class Counter extends InfoBox
29
- {
30
- getText(): string;
31
- getTextColor(): Color;
28
+ export class Counter extends InfoBox {
29
+ getText(): string;
30
+ getTextColor(): java.awt.Color;
31
+ }
32
32
  }
33
- }
@@ -25,14 +25,13 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.client.ui.overlay.infobox {
28
- export class InfoBox
29
- {
30
- getText(): string;
31
- getTextColor(): Color;
32
- render(): boolean;
33
- cull(): boolean;
34
- getName(): string;
28
+ export class InfoBox {
29
+ getText(): string;
30
+ getTextColor(): java.awt.Color;
31
+ render(): boolean;
32
+ cull(): boolean;
33
+ getName(): string;
35
34
  // Use a combination of plugin name and infobox implementation name to try and make each infobox as unique
36
35
  // as possible by default
36
+ }
37
37
  }
38
- }
@@ -26,18 +26,17 @@
26
26
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
27
  */
28
28
  declare namespace net.runelite.client.ui.overlay.infobox {
29
- export class InfoBoxOverlay extends OverlayPanel
30
- {
31
- getName(): string;
32
- render(graphics: Graphics2D): Dimension;
29
+ export class InfoBoxOverlay extends OverlayPanel {
30
+ getName(): string;
31
+ render(graphics: Graphics2D): java.awt.Dimension;
33
32
  // Set preferred size to the size of DEFAULT_WRAP_COUNT infoboxes, including the padding - which is applied
34
33
  // to the last infobox prior to wrapping too.
35
34
  // Handle tooltips
36
- // Create intersection rectangle
37
- getMenuEntries(): Array<OverlayMenuEntry>;
35
+ // Create intersection rectangle
36
+ getMenuEntries(): Array<OverlayMenuEntry>;
38
37
  // we dynamically build the menu options based on which infobox is hovered
39
- onMenuOptionClicked(menuOptionClicked: net.runelite.api.events.MenuOptionClicked): void;
40
- onDrag(source: Overlay): boolean;
41
- flip(): ComponentOrientation;
38
+ onMenuOptionClicked(menuOptionClicked: net.runelite.api.events.MenuOptionClicked): void;
39
+ onDrag(source: Overlay): boolean;
40
+ flip(): ComponentOrientation;
41
+ }
42
42
  }
43
- }
@@ -25,11 +25,10 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.client.ui.overlay.infobox {
28
- export class LoopTimer extends InfoBox
29
- {
30
- getText(): string;
31
- getTextColor(): Color;
28
+ export class LoopTimer extends InfoBox {
29
+ getText(): string;
30
+ getTextColor(): java.awt.Color;
32
31
  // check if timer has 10% of time left
33
- private getProgress(): Duration;
32
+ private getProgress(): Duration;
33
+ }
34
34
  }
35
- }
@@ -25,22 +25,21 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.client.ui.overlay.infobox {
28
- export class Timer extends InfoBox
29
- {
30
- getText(): string;
31
- getTextColor(): Color;
28
+ export class Timer extends InfoBox {
29
+ getText(): string;
30
+ getTextColor(): java.awt.Color;
32
31
  //check if timer has 10% of time left
33
- render(): boolean;
34
- cull(): boolean;
35
- /**
36
- * Update the timer duration *relative to the start time*
37
- * @param duration
38
- */
39
- setDuration(duration: Duration): void;
40
- /**
41
- * Update the timer duration relative to now
42
- * @param duration
43
- */
44
- updateDuration(duration: Duration): void;
32
+ render(): boolean;
33
+ cull(): boolean;
34
+ /**
35
+ * Update the timer duration *relative to the start time*
36
+ * @param duration
37
+ */
38
+ setDuration(duration: Duration): void;
39
+ /**
40
+ * Update the timer duration relative to now
41
+ * @param duration
42
+ */
43
+ updateDuration(duration: Duration): void;
44
+ }
45
45
  }
46
- }
@@ -25,172 +25,205 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.client.ui.overlay.outline {
28
- export class ModelOutlineRenderer
29
- {
30
- /** TBD-1 */
31
- // export class PixelDistanceDelta
32
- /** TBD-1 */
33
- // export class PixelDistanceGroupIndex
34
- // Vertex positions projected on the screen.
35
- // Window boundaries for the ingame world
36
- // Boundaries for the outline
37
- // Bitset with pixel positions that would be rendered to within the cropped area by the model.
38
- // Memory used for queueing the pixels for the outline of the model.
39
- // Pixels are grouped by x and y distance to the closest pixel drawn on the model.
40
- // A block buffer is used so memory can be reused after a group has been processed
41
- // without using the JVM garbage collector.
42
- // An array of pixel group indices ordered by distance for each outline width and feather.
43
- // These are calculated once upon first usage and then stored here to skip reevaluation.
44
- // An array of pixel distance deltas for each outline width and direction (right/up/left/down).
45
- // These are calculated once upon first usage and then stored here to skip reevaluation.
46
- /**
47
- * Calculate the next power of two of a value.
48
- *
49
- * @param value The value to find the next power of two of.
50
- * @return Returns the next power of two.
51
- */
52
- private static nextPowerOfTwo(value: number): number;
53
- /**
54
- * Determine if a triangle goes counter clockwise
55
- *
56
- * @return Returns true if the triangle goes counter clockwise and should be culled, otherwise false
57
- */
58
- private static cullFace(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): boolean;
59
- /**
60
- * Get an array of pixel outline group indices ordered by distance for a specific outline width.
61
- *
62
- * @param outlineWidth The outline width.
63
- * @param feather The feather of the outline.
64
- * @return Returns the list of pixel distances.
65
- */
66
- private getPriorityList(outlineWidth: number, feather: number): PixelDistanceGroupIndex[];
67
- private ensureDistanceDeltasCreated(outlineWidth: number): void;
68
- // Turn 90 deg ccw
69
- /**
70
- * Enqueues a pixel for outlining.
71
- *
72
- * @param distanceGroupIndex The group index to enqueue the pixel into.
73
- * @param x The x position of the pixel.
74
- * @param y The y position of the pixel.
75
- */
76
- private enqueueOutlinePixel(distanceGroupIndex: number, x: number, y: number): void;
77
- /**
78
- * Checks that the visited bitset is big enough to hold a certain amount of pixels and sets them to 0.
79
- *
80
- * @param pixelAmount The amount of pixels needed.
81
- */
82
- private resetVisited(pixelAmount: number): void;
83
- /**
84
- * Ensures that the outline buffer arrays are large enough to fit the current outline.
85
- */
86
- private initializeOutlineBuffers(): void;
87
- /**
88
- * Frees all blocks currently in use by the outline block buffer.
89
- */
90
- private freeAllBlockMemory(): void;
91
- /**
92
- * Simulates a horizontal line rasterization and marks pixels visited.
93
- *
94
- * @param pixelY The y position of the line
95
- * @param x1 The starting x position
96
- * @param x2 The ending x position
97
- */
98
- private simulateHorizontalLineRasterizationForOutline(pixelY: number, x1: number, x2: number): void;
99
- /**
100
- * Simulates rasterization of a triangle and marks pixels visited.
101
- *
102
- * @param x1 The x position of the first vertex in the triangle
103
- * @param y1 The y position of the first vertex in the triangle
104
- * @param x2 The x position of the second vertex in the triangle
105
- * @param y2 The y position of the second vertex in the triangle
106
- * @param x3 The x position of the third vertex in the triangle
107
- * @param y3 The y position of the third vertex in the triangle
108
- */
109
- private simulateTriangleRasterizationForOutline(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): void;
28
+ export class ModelOutlineRenderer {
29
+ /** TBD-1 */
30
+ // export class PixelDistanceDelta
31
+ /** TBD-1 */
32
+ // export class PixelDistanceGroupIndex
33
+ // Vertex positions projected on the screen.
34
+ // Window boundaries for the ingame world
35
+ // Boundaries for the outline
36
+ // Bitset with pixel positions that would be rendered to within the cropped area by the model.
37
+ // Memory used for queueing the pixels for the outline of the model.
38
+ // Pixels are grouped by x and y distance to the closest pixel drawn on the model.
39
+ // A block buffer is used so memory can be reused after a group has been processed
40
+ // without using the JVM garbage collector.
41
+ // An array of pixel group indices ordered by distance for each outline width and feather.
42
+ // These are calculated once upon first usage and then stored here to skip reevaluation.
43
+ // An array of pixel distance deltas for each outline width and direction (right/up/left/down).
44
+ // These are calculated once upon first usage and then stored here to skip reevaluation.
45
+ /**
46
+ * Calculate the next power of two of a value.
47
+ *
48
+ * @param value The value to find the next power of two of.
49
+ * @return Returns the next power of two.
50
+ */
51
+ private static nextPowerOfTwo(value: number): number;
52
+ /**
53
+ * Determine if a triangle goes counter clockwise
54
+ *
55
+ * @return Returns true if the triangle goes counter clockwise and should be culled, otherwise false
56
+ */
57
+ private static cullFace(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): boolean;
58
+ /**
59
+ * Get an array of pixel outline group indices ordered by distance for a specific outline width.
60
+ *
61
+ * @param outlineWidth The outline width.
62
+ * @param feather The feather of the outline.
63
+ * @return Returns the list of pixel distances.
64
+ */
65
+ private getPriorityList(outlineWidth: number, feather: number): PixelDistanceGroupIndex[];
66
+ private ensureDistanceDeltasCreated(outlineWidth: number): void;
67
+ // Turn 90 deg ccw
68
+ /**
69
+ * Enqueues a pixel for outlining.
70
+ *
71
+ * @param distanceGroupIndex The group index to enqueue the pixel into.
72
+ * @param x The x position of the pixel.
73
+ * @param y The y position of the pixel.
74
+ */
75
+ private enqueueOutlinePixel(distanceGroupIndex: number, x: number, y: number): void;
76
+ /**
77
+ * Checks that the visited bitset is big enough to hold a certain amount of pixels and sets them to 0.
78
+ *
79
+ * @param pixelAmount The amount of pixels needed.
80
+ */
81
+ private resetVisited(pixelAmount: number): void;
82
+ /**
83
+ * Ensures that the outline buffer arrays are large enough to fit the current outline.
84
+ */
85
+ private initializeOutlineBuffers(): void;
86
+ /**
87
+ * Frees all blocks currently in use by the outline block buffer.
88
+ */
89
+ private freeAllBlockMemory(): void;
90
+ /**
91
+ * Simulates a horizontal line rasterization and marks pixels visited.
92
+ *
93
+ * @param pixelY The y position of the line
94
+ * @param x1 The starting x position
95
+ * @param x2 The ending x position
96
+ */
97
+ private simulateHorizontalLineRasterizationForOutline(pixelY: number, x1: number, x2: number): void;
98
+ /**
99
+ * Simulates rasterization of a triangle and marks pixels visited.
100
+ *
101
+ * @param x1 The x position of the first vertex in the triangle
102
+ * @param y1 The y position of the first vertex in the triangle
103
+ * @param x2 The x position of the second vertex in the triangle
104
+ * @param y2 The y position of the second vertex in the triangle
105
+ * @param x3 The x position of the third vertex in the triangle
106
+ * @param y3 The y position of the third vertex in the triangle
107
+ */
108
+ private simulateTriangleRasterizationForOutline(
109
+ x1: number,
110
+ y1: number,
111
+ x2: number,
112
+ y2: number,
113
+ x3: number,
114
+ y3: number,
115
+ ): void;
110
116
  // Swap vertices so y1 <= y2 <= y3 using bubble sort
111
- // All points are outside clip boundaries
112
- /**
113
- * Translates the vertices 3D points to the screen canvas 2D points.
114
- *
115
- * @param localX The local x position of the vertices.
116
- * @param localY The local y position of the vertices.
117
- * @param localZ The local z position of the vertices.
118
- * @param vertexOrientation The orientation of the vertices.
119
- * @return Returns true if any of them are inside the clip area, otherwise false.
120
- */
121
- private projectVertices(model: Model, localX: number, localY: number, localZ: number, vertexOrientation: number): boolean;
122
- // Vertex is too close or behind camera and isn't rendered
123
- /**
124
- * Simulates rendering of the model and marks every pixel visited.
125
- */
126
- private simulateModelRasterizationForOutline(model: Model): void;
127
- // 254 and 255 counts as fully transparent
128
- /**
129
- * Draws the outline of a pixel according to the distance deltas of an outline.
130
- *
131
- * @param imageData The image data to draw to.
132
- * @param imageWidth The width of the image to draw to.
133
- * @param x The x position of the pixel.
134
- * @param y The y position of the pixel.
135
- * @param distanceDeltas The distance deltas of the outline width.
136
- * @param color The color to draw the outline in.
137
- */
138
- private rasterDistanceDeltas(imageData: number[], imageWidth: number, x: number, y: number, distanceDeltas: PixelDistanceDelta[], color: number): void;
139
- /**
140
- * Enqueues pixels that are adjacent above or below the model
141
- * or draws them directly to the clients image buffer.
142
- *
143
- * @param directWrite If true the pixels are drawn to the image buffer, otherwise they are enqueued for drawing.
144
- * @param color The color to draw if directWrite == true
145
- * @param outlineWidth The outline width to draw if directWrite == true
146
- */
147
- private processInitialOutlinePixels(directWrite: boolean, color: Color, outlineWidth: number): void;
117
+ // All points are outside clip boundaries
118
+ /**
119
+ * Translates the vertices 3D points to the screen canvas 2D points.
120
+ *
121
+ * @param localX The local x position of the vertices.
122
+ * @param localY The local y position of the vertices.
123
+ * @param localZ The local z position of the vertices.
124
+ * @param vertexOrientation The orientation of the vertices.
125
+ * @return Returns true if any of them are inside the clip area, otherwise false.
126
+ */
127
+ private projectVertices(
128
+ model: Model,
129
+ localX: number,
130
+ localY: number,
131
+ localZ: number,
132
+ vertexOrientation: number,
133
+ ): boolean;
134
+ // Vertex is too close or behind camera and isn't rendered
135
+ /**
136
+ * Simulates rendering of the model and marks every pixel visited.
137
+ */
138
+ private simulateModelRasterizationForOutline(model: Model): void;
139
+ // 254 and 255 counts as fully transparent
140
+ /**
141
+ * Draws the outline of a pixel according to the distance deltas of an outline.
142
+ *
143
+ * @param imageData The image data to draw to.
144
+ * @param imageWidth The width of the image to draw to.
145
+ * @param x The x position of the pixel.
146
+ * @param y The y position of the pixel.
147
+ * @param distanceDeltas The distance deltas of the outline width.
148
+ * @param color The color to draw the outline in.
149
+ */
150
+ private rasterDistanceDeltas(
151
+ imageData: number[],
152
+ imageWidth: number,
153
+ x: number,
154
+ y: number,
155
+ distanceDeltas: PixelDistanceDelta[],
156
+ color: number,
157
+ ): void;
158
+ /**
159
+ * Enqueues pixels that are adjacent above or below the model
160
+ * or draws them directly to the clients image buffer.
161
+ *
162
+ * @param directWrite If true the pixels are drawn to the image buffer, otherwise they are enqueued for drawing.
163
+ * @param color The color to draw if directWrite == true
164
+ * @param outlineWidth The outline width to draw if directWrite == true
165
+ */
166
+ private processInitialOutlinePixels(directWrite: boolean, color: java.awt.Color, outlineWidth: number): void;
148
167
  // Up and down
149
- // Special case handling outlineWidth == 1 gives a
150
- // small but noticeable performance improvement.
168
+ // Special case handling outlineWidth == 1 gives a
169
+ // small but noticeable performance improvement.
151
170
  // Left and right
152
- // Test adjacent pixels in the same 32-bit segment
153
- // Special case handling outlineWidth == 1 gives a
154
- // small but noticeable performance improvement.
155
- // Test adjacent pixels in different 32-bit segments
156
- /**
157
- * Process the outline queue and draw an outline of the pixels
158
- * in the queue to the client image buffer.
159
- *
160
- * @param outlineWidth The width of the outline.
161
- * @param color The color of the outline.
162
- */
163
- private processOutlinePixelQueue(outlineWidth: number, color: Color, feather: number): void;
164
- /**
165
- * Draws an outline around a model to an image
166
- *
167
- * @param localX The local x position of the model
168
- * @param localY The local y position of the model
169
- * @param localZ The local z position of the model
170
- * @param orientation The orientation of the model
171
- * @param outlineWidth The width of the outline
172
- * @param color The color of the outline
173
- */
174
- private drawModelOutline(model: Model, localX: number, localY: number, localZ: number, orientation: number, outlineWidth: number, color: Color, feather: number): void;
175
- // No vertex of the model is visible on the screen, so we can
176
- // assume there are no parts of the model to outline.
171
+ // Test adjacent pixels in the same 32-bit segment
172
+ // Special case handling outlineWidth == 1 gives a
173
+ // small but noticeable performance improvement.
174
+ // Test adjacent pixels in different 32-bit segments
175
+ /**
176
+ * Process the outline queue and draw an outline of the pixels
177
+ * in the queue to the client image buffer.
178
+ *
179
+ * @param outlineWidth The width of the outline.
180
+ * @param color The color of the outline.
181
+ */
182
+ private processOutlinePixelQueue(outlineWidth: number, color: java.awt.Color, feather: number): void;
183
+ /**
184
+ * Draws an outline around a model to an image
185
+ *
186
+ * @param localX The local x position of the model
187
+ * @param localY The local y position of the model
188
+ * @param localZ The local z position of the model
189
+ * @param orientation The orientation of the model
190
+ * @param outlineWidth The width of the outline
191
+ * @param color The color of the outline
192
+ */
193
+ private drawModelOutline(
194
+ model: Model,
195
+ localX: number,
196
+ localY: number,
197
+ localZ: number,
198
+ orientation: number,
199
+ outlineWidth: number,
200
+ color: java.awt.Color,
201
+ feather: number,
202
+ ): void;
203
+ // No vertex of the model is visible on the screen, so we can
204
+ // assume there are no parts of the model to outline.
177
205
  // We can improve performance and reduce memory needed when drawing
178
206
  // only a small outline around the model by skipping the pixel queueing
179
207
  // and instead raster pixels directly. This only looks right for opaque
180
208
  // outlines since some pixels of the outline can get drawn more than once.
181
209
  // Performance becomes worse than queueing when using larger outline widths,
182
210
  // usually around 10 px outline width according to some basic testing.
183
- drawOutline(npc: NPC, outlineWidth: number, color: Color, feather: number): void;
184
- // NPCs z position are calculated based on the tile height of the northeastern tile
185
- drawOutline(player: Player, outlineWidth: number, color: Color, feather: number): void;
186
- private drawOutline(gameObject: GameObject, outlineWidth: number, color: Color, feather: number): void;
187
- private drawOutline(groundObject: GroundObject, outlineWidth: number, color: Color, feather: number): void;
188
- private drawOutline(itemLayer: ItemLayer, outlineWidth: number, color: Color, feather: number): void;
189
- private drawOutline(decorativeObject: DecorativeObject, outlineWidth: number, color: Color, feather: number): void;
190
- // Offset is not used for the second model
191
- private drawOutline(wallObject: WallObject, outlineWidth: number, color: Color, feather: number): void;
192
- drawOutline(tileObject: TileObject, outlineWidth: number, color: Color, feather: number): void;
193
- drawOutline(graphicsObject: GraphicsObject, outlineWidth: number, color: Color, feather: number): void;
194
- drawOutline(runeLiteObject: RuneLiteObject, outlineWidth: number, color: Color, feather: number): void;
211
+ drawOutline(npc: NPC, outlineWidth: number, color: java.awt.Color, feather: number): void;
212
+ // NPCs z position are calculated based on the tile height of the northeastern tile
213
+ drawOutline(player: Player, outlineWidth: number, color: java.awt.Color, feather: number): void;
214
+ private drawOutline(gameObject: GameObject, outlineWidth: number, color: java.awt.Color, feather: number): void;
215
+ private drawOutline(groundObject: GroundObject, outlineWidth: number, color: java.awt.Color, feather: number): void;
216
+ private drawOutline(itemLayer: ItemLayer, outlineWidth: number, color: java.awt.Color, feather: number): void;
217
+ private drawOutline(
218
+ decorativeObject: DecorativeObject,
219
+ outlineWidth: number,
220
+ color: java.awt.Color,
221
+ feather: number,
222
+ ): void;
223
+ // Offset is not used for the second model
224
+ private drawOutline(wallObject: WallObject, outlineWidth: number, color: java.awt.Color, feather: number): void;
225
+ drawOutline(tileObject: TileObject, outlineWidth: number, color: java.awt.Color, feather: number): void;
226
+ drawOutline(graphicsObject: GraphicsObject, outlineWidth: number, color: java.awt.Color, feather: number): void;
227
+ drawOutline(runeLiteObject: RuneLiteObject, outlineWidth: number, color: java.awt.Color, feather: number): void;
228
+ }
195
229
  }
196
- }
@@ -25,12 +25,11 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.client.ui.overlay.tooltip {
28
- export class TooltipOverlay extends Overlay
29
- {
28
+ export class TooltipOverlay extends Overlay {
30
29
  // additionally allow tooltips above the full screen world map and welcome screen
31
- render(graphics: Graphics2D): Dimension;
32
- // Tooltips must always be cleared each frame
33
- private renderTooltips(graphics: Graphics2D, tooltips: Array<Tooltip>): Dimension;
34
- // Create incremental tooltip newBounds
30
+ render(graphics: Graphics2D): java.awt.Dimension;
31
+ // Tooltips must always be cleared each frame
32
+ private renderTooltips(graphics: Graphics2D, tooltips: Array<Tooltip>): java.awt.Dimension;
33
+ // Create incremental tooltip newBounds
34
+ }
35
35
  }
36
- }
@@ -25,31 +25,30 @@
25
25
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  */
27
27
  declare namespace net.runelite.client.ui.overlay.worldmap {
28
- export class WorldMapOverlay extends Overlay
29
- {
30
- render(graphics: Graphics2D): Dimension;
31
- // Get a smaller rect for edge-snapped icons so they display correctly at the edge
32
- // Make the unsnap rect slightly smaller so a smaller snapped image doesn't cause a freak out
33
- /**
34
- * Get the screen coordinates for a WorldPoint on the world map
35
- *
36
- * @param worldPoint WorldPoint to get screen coordinates of
37
- * @return Point of screen coordinates of the center of the world point
38
- */
39
- mapWorldPointToGraphicsPoint(worldPoint: net.runelite.api.coords.WorldPoint): Point;
40
- //Offset in tiles from anchor sides
41
- //Center on tile.
42
- /**
43
- * Gets a clip area which excludes the area of widgets which overlay the world map.
44
- *
45
- * @param baseRectangle The base area to clip from
46
- * @return An {@link Area} representing <code>baseRectangle</code>, with the area
47
- * of visible widgets overlaying the world map clipped from it.
48
- */
49
- private getWorldMapClipArea(baseRectangle: Rectangle): Shape;
28
+ export class WorldMapOverlay extends Overlay {
29
+ render(graphics: Graphics2D): java.awt.Dimension;
30
+ // Get a smaller rect for edge-snapped icons so they display correctly at the edge
31
+ // Make the unsnap rect slightly smaller so a smaller snapped image doesn't cause a freak out
32
+ /**
33
+ * Get the screen coordinates for a WorldPoint on the world map
34
+ *
35
+ * @param worldPoint WorldPoint to get screen coordinates of
36
+ * @return Point of screen coordinates of the center of the world point
37
+ */
38
+ mapWorldPointToGraphicsPoint(worldPoint: net.runelite.api.coords.WorldPoint): Point;
39
+ //Offset in tiles from anchor sides
40
+ //Center on tile.
41
+ /**
42
+ * Gets a clip area which excludes the area of widgets which overlay the world map.
43
+ *
44
+ * @param baseRectangle The base area to clip from
45
+ * @return An {@link Area} representing <code>baseRectangle</code>, with the area
46
+ * of visible widgets overlaying the world map clipped from it.
47
+ */
48
+ private getWorldMapClipArea(baseRectangle: Rectangle): Shape;
50
49
  // The sun g2d implementation is much more efficient at applying clips which are subclasses of rectangle2d,
51
50
  // so use that as the clip shape if possible
52
- private drawTooltip(graphics: Graphics2D, worldPoint: WorldMapPoint): void;
53
- private clipToRectangle(drawPoint: Point, mapDisplayRectangle: Rectangle): Point;
51
+ private drawTooltip(graphics: Graphics2D, worldPoint: WorldMapPoint): void;
52
+ private clipToRectangle(drawPoint: Point, mapDisplayRectangle: Rectangle): Point;
53
+ }
54
54
  }
55
- }