Commit Graph
100 Commits
Author SHA1 Message Date
Adam 004d321c15 widget overlay: use setForcedPosition
The inventory can be moved pre-interface tick by the tli subchange
listener, as well as post-our client tick event from script events
running.

This makes it difficult to correctly and generically move the interface,
since it would have to be moved pre-interface tick and also pre-frame.

Currently the code moves the interface pre-frame, which looks okay, but
since it is ticking the interface when it is a different position,
clicks on it do not work correctly.

We do not have events for pre-interface tick, so use forced position to
reliably set the position
2022-05-19 13:43:10 -04:00
Adam cbf00f6c41 api: add setForcedPosition widget method 2022-05-19 13:42:51 -04:00
Adam b9da0435d2 gpu: initialize scene uploader scene id with nanotime
Multiple gpu plugins initializing the scene id to the current time can cause conflicts. This makes that less likely.
2022-05-19 13:23:35 -04:00
Adam ebd8483a37 overlay manager: remove spurious position reset logs 2022-05-18 21:02:05 -04:00
Adam 09949d344e overlay: use hovered overlay for picking managed overlay
Hovered overlay already accounts for render order, with the exception of
the vanilla WidgetOverlays which are drawn prior to any of our overlays
being drawn. Instead we order them in render-order, which works for the
dynamic-layer ones.

The minimap must be top_right so that our overlays layout around it
correctly, which currently causes it to be picked up first over dynamic
overlays due to the way overlay sorting is done.
2022-05-17 11:41:48 -04:00
AdamandMax Weber 573a66abf1 devtools: allow pgup/down to cycle through previous commands
Co-authored-by: Max Weber <mii7303@gmail.com>
2022-05-17 11:41:47 -04:00
Adam 6b81e0c7d1 overlay: worldmap: prefer rect2d as g2d clip shape 2022-05-16 11:39:46 -04:00
Adam b90d793eb7 overlay: set g2d clip per layer 2022-05-16 11:39:46 -04:00
Adam 30fb555809 overlay: disallow transformPosition with dynamic/tooltip 2022-05-16 11:39:46 -04:00
Adam 11ce994b72 overlay: add movable and snappable overlay flags
This merges DETACHED and DYNAMIC into one position, DYNAMIC. And, allows
detached/dynamic overlays to be snappable.
2022-05-16 11:39:46 -04:00
Adam 5732e3f6bd widget overlay: change minimap position back to top_right
Otherwise layouted overlays don't get layouted around the minimap
2022-05-16 11:39:46 -04:00
Adam b8188d27e3 menu swapper: removetags npc name on reset swap 2022-05-14 18:32:26 -04:00
Adam 77ccf68739 menu swapper: removetags object/npc names 2022-05-14 16:29:23 -04:00
Adam 570907ea11 overlay: better handle picking up overlapping overlays
findManagedOverlay needs to iterate in roughly the reverse drawing
order. Also adjust the moveable tli layers to be by priority in render
oder.
2022-05-13 13:48:57 -04:00
Adam 4f4c502b17 overlay: make alt drag hotkey configurable 2022-05-11 12:57:05 -04:00
Adam 5c98c47803 compost tracking: fix tracking fertile soil with ash covered tome 2022-05-11 12:10:42 -04:00
Adam 901cfa4192 client: remove setupJxAuth 2022-05-11 04:38:26 -06:00
Adam 7d5bc2bd31 api: update Jagex API 2022-05-11 04:38:22 -06:00
Adam 71d0885024 widgetoverlay: add chatbox and inventory layers 2022-05-11 05:56:49 -04:00
Adam 50af007e94 chat commands: fix matching random event rewards as kill messages 2022-05-10 23:49:49 -04:00
Adam 59b60655f7 status bars: fix npe if sprites aren't loaded yet 2022-05-10 22:29:07 -04:00
Adam cab126c6bb timers: remove unused tzhaar complete matcher
The usage of matches() vs find() is incorrect, but the timer is already removed when teleported from the arena
2022-05-09 21:10:16 -04:00
Adam bb1f49b0b4 friendnotes: clean up modicons loading
This just needs to be run after modicons is initialized, and doesn't
need to be checked on gamestate change.
2022-05-07 10:23:16 -04:00
Adam 44de746d5b emoji: clean up modicons loading
This just needs to be run after modicons is initialized, and doesn't
need to be checked on gamestate change.
2022-05-07 10:23:16 -04:00
Adam 026395fad5 chat commands: fix loading pets modicons
The asyncbufferedimage may not be loaded at the time the modicons is setup, so a listener must be added to assign the final image
2022-05-07 10:23:16 -04:00
Adam 2fa6eb1dc3 cache: update indextype names 2022-05-07 10:23:12 -04:00
Adam b5515075ef chatfilter: add config option for stripping accents 2022-05-06 15:03:29 -04:00
Adam d6260f247f api: add object composition cache accessor 2022-05-05 20:02:14 -04:00
Adam 230db67f07 api: add post object composition event 2022-05-05 20:02:14 -04:00
Adam d110a3c28e api: add object composition map setters 2022-05-05 19:26:29 -04:00
Adam a551464180 cache: make slf4j-simple an optional dependency 2022-05-01 22:22:14 -06:00
AdamandExplv 54da56e7b1 map image dumper: add main method
Co-authored-by: Explv <explv@osbot.org>
2022-05-01 22:22:14 -06:00
AdamandExplv 75e23b9a3e map image dumper: use BigBufferedImage
This redudces the memory consumption significantly since it requires
less of the image to be in memory at one time

Co-authored-by: Explv <explv@osbot.org>
2022-05-01 22:22:14 -06:00
Adam 1c99cce336 loottracker: fix tracking imp jars
event.getItemId() is not valid after the next tick, so can't be called in the inv change callback
2022-04-30 12:16:28 -04:00
Adam d04a261630 maven: update surefire plugin to 2.22.2 2022-04-30 10:03:43 -04:00
Adam cb20644145 script assembler: remove runelite-api dependency 2022-04-29 22:02:33 -04:00
Adam 62c0af064d crowdsourcing: don't include menuoptionclicked event in movementdata
Serializing the event no longer works as expected, but is also not a good idea in general
2022-04-29 14:16:02 -04:00
Adam c40b33a1e9 Don't overwrite okhttp ua if already set
If the request has its own UA set, don't overwrite it with the default
RuneLite one. This has to be an interceptor and not a network
interceptor so that it runs prior to the okhttp BridgeInteceptor, which
is what sets the default okhttp ua.
2022-04-28 18:56:02 -04:00
Adam 8ac8cd3cdd clues: add Necropolis mine coordinate clue hint 2022-04-27 16:28:45 -04:00
Adam e9474a86bb fairy ring: add Necropolis 2022-04-27 15:54:17 -04:00
Adam 1cfdc86a5c clues: update guardian mummy cryptic clue 2022-04-27 09:22:27 -04:00
AdamandEliasLahham 2d01ea2fb7 bank plugin: add quantity search
Co-authored-by: EliasLahham <eliaslahham@yahoo.com>
2022-04-26 20:41:43 -04:00
Adam 7cdbe6faab chat commands: support parsing team size pbs off adventure log 2022-04-25 09:55:37 -04:00
Adam d7f1681e6a util: use error log level for exception loggers 2022-04-24 19:15:45 -04:00
Adam fc1c12c0e3 infobox: consistently require non-negative timer durations 2022-04-24 19:15:45 -04:00
Adam c4055e765a ci: disable maven-shade-plugin 2022-04-24 16:44:18 -04:00
Adam 36730dccbc client: update pmd 2022-04-24 13:46:42 -04:00
Adam 6a4544ed2e cl: set pmd cache location 2022-04-24 13:46:42 -04:00
Adam 1edd417336 api: remove Nullable on getLocalPlayer
While this can be null, in the vast majority of events and also in every overlay it cannot be, and just triggers unncessary warnings from IDE inspections
2022-04-23 19:32:10 -04:00
Adam 1149a5a0e7 examine: remove unused import 2022-04-22 21:39:37 -04:00
Adam e6d83c8322 examine: fix examining ground items
Remove support for examining npcs/objects which has been unused for a long time. All examines I see go through this examine_item script, so we can assume the ITEM_EXAMINE chat message type is used for all examines.
2022-04-22 21:31:41 -04:00
Adam 9bd36db0c9 chat commands: update gotr kill message 2022-04-22 20:03:19 -04:00
Adam 8746c09354 interact highlight: fix detecting spell attacks on npc click
This was counting any widget use as an attack, when only spell use
should be
2022-04-22 13:12:05 -04:00
Adam 20d2566471 interact highlight: fix using npc attack color on item use 2022-04-21 14:23:01 -04:00
Adam f8e754b62f examine: fix item examine message recolor 2022-04-21 09:41:03 -04:00
Adam d533285a32 timers: update for if3 inv 2022-04-21 09:41:02 -04:00
Adam 96fbdda03d runelite: remove otl requester
This is being replaced with a different api signature later
2022-04-20 17:50:19 -04:00
Adam edbc723b20 statusbars: update for if3 inv 2022-04-20 13:57:15 -04:00
Adam 4fc6466e4f clues: fix tracking cluescroll 2022-04-20 13:57:14 -04:00
Adam 1c0a0f43ef mes: fix item swaps with op4 and op5
Since the client does menu sorting after our tick event but before
rendering, it currently renders the wrong menu action. This prevents the
sorting when doing item swaps.
2022-04-20 13:57:14 -04:00
Adam 3c7582f629 item stats: update for if3 inv 2022-04-20 11:50:32 -04:00
Adam 71886515a9 antidrag: update for if3 inv 2022-04-20 08:48:58 -04:00
Adam 3b18042785 inv grid: fix for if3 inv 2022-04-20 08:48:58 -04:00
Adam 97580ac6f6 api: add dragTime accessor 2022-04-20 08:48:58 -04:00
Adam a6f955ac87 client: update for if3 inventory 2022-04-20 03:39:42 -06:00
Adam c683e41c01 api: add item op menu api 2022-04-20 03:39:40 -06:00
Adam eb0bbc6426 external plugin client: use verificationexception for security exceptions 2022-04-19 19:53:59 -04:00
Adam aca22f13c0 fatal error dialog: work with substance laf
Changing the laf from substance to system breaks the client the next
time it paints
2022-04-18 12:43:44 -04:00
Adam aeb5701d07 client: replace MediaType.parse with MediaType.get 2022-04-16 21:50:42 -04:00
Adam 439ebe22e4 client: replace HttpUrl.parse with HttpUrl.get 2022-04-16 21:50:42 -04:00
Adam 3218fc7568 menu swapper: move bank swaps to client tick
The underlying issue preventing this from working during client tick has been addressed
2022-04-16 21:50:42 -04:00
Adam fcb933eeef api: pass menu entry to menu clicked event and forward accessors 2022-04-16 21:50:42 -04:00
Adam 802f8c654a api: add menuentry widget accessor 2022-04-16 21:50:42 -04:00
Adam 3d089369bd api: add selected widget api 2022-04-16 21:50:42 -04:00
Adam c0a338519c api: refactor some menu action names
Replace spell cast with widget use and correct a couple of the other
names
2022-04-16 21:50:42 -04:00
Adam eb13c0153b hiscores: add gotr 2022-04-13 10:00:23 -04:00
Adam 6f58a6707b Revert "menu swapper: add deposit-runes swap for gotr"
This reverts commit 7c60630206.
2022-04-13 09:23:13 -04:00
Adam fe791a9600 examine: support item examine on if3 components 2022-04-12 23:47:31 -04:00
Adam 8b3f129c1e devtools: remove inventory tool 2022-04-12 22:23:17 -04:00
Adam 8d7c845e58 mta: disable by default 2022-04-12 22:08:20 -04:00
Adam db69f55b9c mta: use widget item overlay 2022-04-12 22:08:20 -04:00
Adam 6e68a964a7 chat command: use plural "players" to be consistent with cox 2022-04-11 09:37:26 -04:00
Adam 0c0f790bee api: move autoweed to farming plugin 2022-04-11 09:16:23 -04:00
Adam 244f8e7ad5 chat commands: track team sizes for raids pb 2022-04-10 12:18:03 -04:00
Adam 2bc2e867bd api: deprecate getVar(int) and use getVarbitValue(int)
getVarbitValue was originally for external plugins which could not
modify the varbits enum, but now ints are used everywhere it is no
longer necessary for two separate methods
2022-04-10 12:08:59 -04:00
Adam d129c49923 api: replace varbits enum with ints
This adds a Varbit magic constant annotation which is used now on
varbit parameters and fields.

This is roughly the same type-safety wise, with IDE support, but the ids
can be inlined by the compiler and it avoids having to have a large enum
class with many fields.
2022-04-10 12:08:59 -04:00
Adam b010e0481e blast furnace: remove unused BarOres map 2022-04-09 23:45:57 -04:00
Adam 13ee6c3174 FarmingRegion: remove unused varbits field 2022-04-09 23:44:03 -04:00
Adam c693a5d4dc Move SlayerUnlock to slayer plugin 2022-04-09 23:43:39 -04:00
Adam b24f9c59fc api: exclude annotations package from runtime jar
Both of these annotations have source-level retention policy, so don't need to be in the runtime jar
2022-04-09 23:41:46 -04:00
Adam f1e7829771 overlay: add drawAfterLayer that accepts ids for plugins, and javadoc 2022-04-09 11:09:02 -04:00
Adam dadf3661e1 menu swapper: add custom npc left click swap 2022-04-08 12:40:58 -04:00
Adam f54b7ffc44 session manager: open session on executor thread
This avoids blocking the main thread on startup during the http call
2022-04-08 12:20:25 -04:00
Adam dc009bd7af api: add friends chat kick rank 2022-04-08 12:16:15 -04:00
Adam 23035294c6 boosts: default to display as infoboxes and only combat stats 2022-04-06 15:04:50 -04:00
Adam d46a661651 chat commands: refactor skill abbreviation to a switch 2022-04-06 11:16:51 -04:00
Adam bdf556f4bd chat commands: support boss shortnames for !lvl 2022-04-06 11:16:51 -04:00
Adam d2308c7ede Revert "menu swapper: Add uncharged cell swap for gotr (#14795)"
This reverts commit 0609c246a5.

This is superseded by the new object swap
2022-04-05 12:55:19 -04:00
Adam 948d025695 menu swapper: change object left click configure method
This changes from shift-clicking the option to adding dedicated options
for setting the swap. The menu swapper has existing shift-click object
swaps for climb-stairs and the current method interferes with it.
2022-04-05 10:20:28 -04:00
Adam 92aac53f42 menu swapper: add custom object left click swap 2022-04-04 15:35:29 -04:00