Commit Graph
100 Commits
Author SHA1 Message Date
Adam aaf4adaea0 itemmanager: sanity check wiki prices
Try to avoid excessive item price manipulation by requiring the guide price to be within a configured threshold of the official price.
2022-02-02 22:34:01 -05:00
Adam b37d46e488 client: add runtime config
A form of this was added in 1.7.11.2 in
e8ea616fc24691177cb2de18698f13ba17448a11, but did not bind the config to
the RuneLite guice module.
2022-02-02 22:34:01 -05:00
Adamandsuperiorser9 f283871f50 interact highlight: support menu option mouseover
Co-authored-by: superiorser9 <superiorser9@gmail.com>
2022-01-31 20:23:50 -05:00
Adam 302b57de8e xptracker: use seasonal wom version for seasonal worlds 2022-01-30 19:57:55 -05:00
Adam fe2677452c devtools: add object animation ids 2022-01-26 11:06:00 -05:00
Adam 5ca0eef25d Merge pull request #14631 from Thource/remove-uim-daily-sand-check
Remove daily sand check for UIM accounts
2022-01-23 22:25:59 -05:00
Adam 2eba3a886f slayer: fix reanimated abyssals not counting for tasks 2022-01-21 17:42:57 -05:00
Adam b53dc9ee8f cache: remove netty-buffer dependency 2022-01-18 18:15:31 -05:00
Adam f859ec9dc8 clues: use lists instead of sets for clues 2022-01-16 18:57:58 -05:00
Adam 22c02e4055 anagram clue: use builder pattern 2022-01-16 18:42:03 -05:00
Adam e8856ce418 Revert "Merge pull request #14512 from wayne-li2/anagram-clue-builder"
This reverts commit 72f55d8ce9, reversing
changes made to 82514e0c76.
2022-01-16 18:13:59 -05:00
Adam 82514e0c76 api: add projectile creation api 2022-01-15 13:40:59 -05:00
Adam e31bfa66fe api: add GraphicsObject finished setter 2022-01-15 13:40:59 -05:00
Adam 07f96a6abb api: add projectile target and end cycle setter 2022-01-15 13:40:59 -05:00
Adam 28a694f69f api: use deques for projectiles and graphicsobjects 2022-01-15 13:40:59 -05:00
Adam a37dfd8de5 api: add actor graphic height accessors 2022-01-15 13:40:59 -05:00
Adam dbf1b3b011 api: combine projectileid and graphicid 2022-01-14 19:40:03 -05:00
Adam 0d76c441d3 api: remove tileitem spawn time
This was never used and has limited use
2022-01-14 11:26:11 -05:00
Adam fa8bc363ee api: make ClanMember an interface 2022-01-13 09:57:26 -05:00
Adam 077c0a78b3 ground items: add option to deprioritize hidden item options 2022-01-13 09:54:54 -05:00
Adam ac547210f7 ground items: fix show item quantities to work with no item highlight mode
This also cleans up the telegrab highlighting code
2022-01-13 09:54:54 -05:00
Adam 5960a2f43e chat message manager: format rl-messages at chat build time
This allows different final messages being built for split chat vs
normal chat, fixing <colNORMAL> incorrectly applying the default chatbox
color to split chat.
2022-01-13 09:52:12 -05:00
Adam 9ff0538cf8 chat notifications: simplify finding closing color in pattern matching
Searching the replacement isn't necessary since it won't ever have any
additional col tags except for the ones identified by getLastColor, which
would be identified even when searching the original message. Instead,
just search the original message up to and including the match.
2022-01-11 22:02:19 -05:00
Adam c7e6ffb4de chat notifications: fix restoring last color on own name highlight
This was an issue with multiple name matches, since it was applying the
replacement with its close color to all matches, even though only
scanning the message for the last color up until the first match
2022-01-11 22:02:14 -05:00
Adam d5fe57865d chat message manager: support game chat color settings
This will use the configured in-game setting for default chat colors, if
configured.
2022-01-11 22:02:14 -05:00
Adam 513c250d28 chat notifications: restore normal color after own name highlight 2022-01-11 21:32:41 -05:00
Adam 32ccf59f30 infobox overlay: hoist some config values out of the render loop 2022-01-07 22:24:05 -05:00
AdamandVanilj 791912a7c0 ui: add infobox font config
Co-authored-by: Vanilj <robindavidsson@outlook.com>
2022-01-07 22:24:05 -05:00
Adam 4330d9f939 item charges: remove unused slot from ItemChargeInfobox 2022-01-07 22:23:17 -05:00
Adam 6924802362 entity hider: add option to hide clan members 2022-01-07 16:34:45 -05:00
Adam b593a5167e run energy: fix orb text flickering
It is possible a clientscript can update the energy in between the last
game tick and the current frame, causing the text to flicker between run
energy and our replacement. This just sets the text before each frame.
2022-01-07 15:55:23 -05:00
Adam ffd6652826 ground items: add nex instance area 2022-01-05 17:06:50 -05:00
Adam c19beea8cd discord: add nex boss area 2022-01-05 17:06:44 -05:00
Adam 238b35e8f8 Use leagues hiscores for seasonal worlds 2022-01-05 16:23:18 -05:00
Adam 0abe846028 xp updater: add seasonal worlds to wom 2022-01-05 15:58:54 -05:00
Adam 1a88fcc57b loot manager: add nex 2022-01-05 15:58:51 -05:00
Adam ce56056e2f ge plugin: disable fuzzy search if search event is consumed
This allows other plugins which replace the search results, such as the bank
tags plugin, to not get overwritten by the fuzzy search.
2022-01-04 19:57:16 -05:00
Adam 409a4ab4e9 slayer plugin: support fake xpdrops 2022-01-04 19:53:50 -05:00
Adam 060cb31a6c Merge pull request #14550 from abextm/phub-cache-longer
rl-client: keep plugin hub jars around for longer
2022-01-04 18:16:34 -05:00
Adam 198724bb03 api: add new head icons 2022-01-04 18:16:02 -05:00
Adam fb035a8c13 world map: remove quest icon load retry if not logged in
The quest icons are also loaded on world map open, so all this has to do is
load the icons if the player is logged in with the map open at the time the
plugin is started.
2022-01-03 14:30:42 -05:00
Adam 8bdf78c874 Revert "world map: use game state change event to load quest icons"
This reverts commit 97c484fc38.
2022-01-03 14:25:14 -05:00
Adam a2f8a4219e menu swapper: remove examine swap
This has not worked in the past, since the Examine option is not an inventory
action and so cannot ever be shift-click swapped, and causes a crash now if
set due to it subtracting the Examine menu op from ITEM_FIRST_OPTION.
2022-01-03 13:58:08 -05:00
Adam 97c484fc38 world map: use game state change event to load quest icons
This was queueing potentially multiple tasks if the config was changed on the
login screen, all waiting for the player to be logged in. Instead, use the game
state change event to load the icons.
2022-01-03 12:10:21 -05:00
Adam fa9a178f4a Fix race with client startup and low detail/chat icon loading
Since c1aa0c4898 moved client startup to
be much earlier, the plugins can now start after the client is already
at the login screen. This causes the low detail plugin and chat icon
manager to not initialize correctly as they are waiting on the event
for the login screen.
2022-01-03 11:51:57 -05:00
Adam 45f744fa2b api: fix wallobject orientation javadoc and use
This is not an angle, and the model outline renderer code which uses it as one is incorrect.
2022-01-02 20:24:38 -05:00
Adam a8e2e88810 api: add getConfig to deco, game, and ground objects
Additionally fix the wall object orientation javadoc, the returned value is an angle
2022-01-02 19:48:07 -05:00
Adam 0da504769d ui: set DO_NOTHING_ON_CLOSE close op prior to disposing
Disposed frames are still reachable via Window.getWindows() until gcd, and can
receive and process events. We don't want the splash screen to close the app if
it receives a window close event after being disposed.
2022-01-01 20:28:35 -05:00
Adam 31dc32c225 Set macos quitStrategy to CLOSE_ALL_WINDOWS
The quit strategy API existed in com.apple.eawt prior to Java 9, and was moved
into java.desktop in 9. This move makes our orange-extensions API incompatiable
with the 9 eawt package too, so we can not use Application.setQuitStrategy on
9+ either, without making orange-extensions multi-release too.

Since Desktop.setQuitStrategy is the new standard way of doing this, use it if
available, and otherwise use the Java 8 Application.setQuitStrategy instead.
2022-01-01 20:28:35 -05:00
Adam cb8788c38f Merge pull request #14536 from keyosk/roof-removal-poh-fixes
Roof removal poh fixes
2021-12-31 14:54:42 -05:00
Adam 430d8a081a Merge pull request #14529 from Hydrox6/roof-removal-poh
roof removal: a POH override and feature
2021-12-30 10:49:00 -05:00
Adam 98279d4cfd api: add arguments and mousey to scriptevent 2021-12-28 12:24:34 -05:00
Adam 637ee563d6 gpu: queue fbo reset on startup too
Startup races with stretch mode plugin startup and clientui startup, so starting with stretched mode on doesn't reliably work. Just reset a few frames after startup to be sure.
2021-12-27 16:22:36 -05:00
Adam 153b475301 clientui: disable ui scale transform for client bounds on macos
This appears unnecessary on macos and breaks the remember client position feature
2021-12-27 16:21:37 -05:00
Adam bb43d232bb gpu: fix stretched mode scaling issues on macos
This fixes the following issues:

1) resize events for the client not being propagated to the listener on
   the canvas
2) resizing the client in fixed mode not triggering a resetSize due to
   the underlying canvas size not changing
3) maximizing the client calling restSize too soon causing it to have no
   effect
2021-12-27 15:11:18 -05:00
Adam faf5ce7a7d checkstyle: remove suppressions
These are not used anymore
2021-12-25 14:12:38 -05:00
Adam 055f5c2d2b Remove http-api and http-service
These are being split into a separate repository at https://github.com/runelite/api.runelite.net
2021-12-24 13:19:45 -05:00
Adam 0a501429e6 Move okhttp client from http-api
The client has been recreated with a new builder off of the http-api
client for awhile anyway since runelite-client has multiple other
requirements (caching, tls, etc). This fully moves creation of the
okhttp client into both http-service and runelite-client separately.

I've kept the CLIENT field in http-api for now since a few external
plugins depend on it currently.
2021-12-23 12:36:05 -05:00
Adam 37d538f0db Move http-api clients to rl-client 2021-12-23 11:30:55 -05:00
Adam ab07c09d76 http-api: lombokize a few classes 2021-12-22 15:49:43 -05:00
Adam 9349ea84bb cache: remove http-api dependency
This was only for the xtea client, which we don't use anymore anyway. Instead allow XteaKeyManager to read from an input stream.
2021-12-22 15:46:28 -05:00
Adam b6e17cd15e http-service: move several hardcoded urls to config
Also make an OkHttpClient bean and use it everywhere
2021-12-22 15:29:51 -05:00
Adam ae5614ce6a api: remove set/get game drawing mode
This is being moved internally
2021-12-21 23:25:23 -05:00
Adam 438b4004e7 config manager: remove migrateConfig 2021-12-21 23:11:32 -05:00
Adam c1aa0c4898 client: move jagexcache into .runelite 2021-12-21 23:04:24 -05:00
Adam 50a2d2f73f config manager: increase sendConfig delay to 5 minutes 2021-12-21 23:01:34 -05:00
Adam 171d9bb7cf scripts: remove scripts
These aren't used anymore
2021-12-20 18:33:03 -05:00
Adam 7dd504fdf5 http-service: remove cache controller
This has never been used and just encourages misuse due to how expensive the requests are
2021-12-20 18:28:18 -05:00
Adam 39b8b84aaf chat message manager: fix recoloring gim messages
gim messages must always start with | and can't have a leading col tag
2021-12-20 17:31:28 -05:00
Adam 0db23d4d7a ci: use adoptopenjdk 2021-12-18 15:17:28 -05:00
Adam 46bb6f81bb Update logback to 1.2.9
logback-parent isn't really a bom but instead includes other unrelated
depenedncies like mockito and jodatime, and so I am just adding the
individual logback and slf4j dependencies themselves. Also add
slf4j-simple in dependencyManagement for the various test dependencies
we have on it.
2021-12-18 15:16:24 -05:00
Adamandsam 0f52e3ff18 menu swapper: fix built in swaps overriding custom swaps
If a swap is configured for the item, never enter into the built in swapping logic. Even if the swap was not applied for this entry, assume either it has already been applied or will be later.

Co-authored-by: sam <dasistkeinnamen@gmail.com>
2021-12-18 11:21:42 -05:00
Adamandsam 8fa819d035 menu swapper: don't show default action if one isn't configured
Currently it is ambiguous if the configured action is the default action or there is no configured action because either way it prepends a * to the default op.

Co-authored-by: sam <dasistkeinnamen@gmail.com>
2021-12-18 11:21:38 -05:00
Adamandsam 406ce7bd6b menu swapper: use menu callback for swap config
Co-authored-by: sam <dasistkeinnamen@gmail.com>
2021-12-18 11:21:29 -05:00
Adam e458507953 ground items: fix collapsing item examine 2021-12-16 18:03:03 -05:00
Adam d730046cdc ge: fix showing active trade price on buy offers
The previously added script event was only for sell offers. Also remove buy limit from sell offers since it is not applicable.
2021-12-16 18:03:03 -05:00
Adam b3c4465e73 Move hiscore client to rl-client
Thie removes the http-service hiscore api, which we haven't used in
awhile and doesn't work in practice due to upstream rate limits, as well
as the xp tracker which also hasn't been used in a long time since there
are now multiple quality community run xptrackers.
2021-12-14 20:24:22 -05:00
Adam e04a6becd2 grandexchange: remove osb ge client 2021-12-14 18:48:37 -05:00
Adam 1892adf6ca hiscore: add nex 2021-12-13 19:20:01 -05:00
AdamandDasgust 62bb21a516 chatchannels: display online member count
Co-authored-by: Dasgust <dasgust@gmail.com>
2021-12-13 17:49:36 -05:00
Adam 36e670112e widget inspector: add listeners 2021-12-13 17:37:38 -05:00
Adam 51cab2a3d8 nmz: fix point overlay flickering with unlocked fps 2021-12-12 13:17:04 -05:00
Adam a3ed6c089f gpu: add model hsl override support 2021-12-12 11:32:12 -05:00
Adam e956ed1ba7 ge plugin: compact buy offer examine text
The examine text, buy limit, trade price, and fee info does not fit on
the interface anymore since the addition of the fee info. This compacts
the examine text as well as places the limit / trade price on the same
line in order to prevent pushing the fee off of the bottom of the
border.
2021-12-12 10:02:59 -05:00
Adam 1d5c63bfac rl-client: build test jar 2021-12-11 15:10:23 -05:00
Adam 4fe37f978c friendslist: add option to hide per-friend login notifications 2021-12-10 15:06:55 -05:00
Adam a585253d36 chatfilter: add clan message types 2021-12-10 12:32:03 -05:00
Adam 409d0dda76 api: make MenuEntry an interface
This adds a new createMenuEntry api method to make MenuEntries instead.
Menu entries now have an associated callback called when they are
clicked on, avoiding most plugins from having to hook separately to
detect the menu click. Additionally get/set type has changed to take a
MenuAction.
2021-12-09 13:56:40 -05:00
Adam 5156be0371 tile indicators: add config sections 2021-12-08 12:43:56 -05:00
Adam a54b3d149f loot tracker: aggregate kills prior to inserting
In most cases this saves a number of queries since the loot tracker data
is submitted in 5 minute batches
2021-12-07 19:52:09 -05:00
Adam 9cd7060035 config service: avoid raising a json exception on non json input
The config service accepts in strings instead of json strings, however
this causes the normal control flow to throw a json parsing exception.
Since this happens so frequently it is using a measurable amount of CPU
time, so avoid it in the common case by testing if the string is json
first
2021-12-07 19:50:52 -05:00
Adam a05655f412 screenshot plugin: test screenshot filenames 2021-12-05 12:13:18 -05:00
AdamandEvan 9564e13d0f screenshot plugin: add combat achievements
Co-authored-by: Evan <55665020+EvanDeadlySins@users.noreply.github.com>
2021-12-05 12:06:28 -05:00
Adam 60c8377b2e screenshot plugin: reorder config 2021-12-05 12:06:21 -05:00
Adam 8944eb9be6 mes: add left click customization 2021-12-01 16:41:22 -05:00
Adam d45d79c2ce chat history: remove group Clear history option
This was added with today's update
2021-12-01 12:07:53 -05:00
Adam 6ec534b396 hiscore: use hiscore endpoint for world for player lookup op 2021-11-30 17:04:54 -05:00
Adam f6a3d222b4 world hopper: allow selecting multiple region filters 2021-11-30 16:57:40 -05:00
Adam 095a0e6257 config: add support for enum sets 2021-11-30 16:57:40 -05:00
AdamandRon Young c3880a8c74 ui: highlight selected cells correctly
Co-authored-by: Ron Young <admin@ryoung.io>
2021-11-30 16:57:40 -05:00