Commit Graph
119 Commits
Author SHA1 Message Date
Adam 5eae5201f1 runelite-client: add Twitch chat plugin 2018-10-22 21:44:53 -04:00
Jordan Atwood 8594cd4a93 slayer: Add combat bracelet task update handling
Fixes runelite/runelite#4473
2018-10-12 14:35:24 -07:00
Tomas Slusny f6588ae3ba Correctly parse slayer task with the and breaks in npc name
This fixes e.g chaos elemental task assignment.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-10-10 17:34:33 +02:00
Kamiel 44dcba2f10 Fix chat notification highlight words split regex (#5798)
Fixes an issue where the chat notifications plugin would not split word highlights with input as `some,highlight` even though they are supposed to be valid
2018-10-08 15:18:48 +02:00
Tomas Slusny 6b5c0d719c Merge pull request #5784 from NathenSample/fix/DontUseNF
Improve readability of stackformatter tests
2018-10-05 10:51:28 +02:00
Nathen Sample fd50e773be Add support for partner assignment to slayer plugin (#5782) 2018-10-04 15:12:32 +02:00
Nathen Sample e3b33a7d61 Improve readability of stackformatter tests 2018-10-03 18:17:18 +01:00
robinwithes 2adb760f02 Add support for parsing Wilderness assignment updates to slayer plugin (#5757)
Fixes #5687
2018-10-03 15:00:20 +02:00
Jordan Atwood 20922aea9a slayer plugin: Add parsing for boss task assignments
Ref: https://user-images.githubusercontent.com/2199511/45984305-f9c22600-c04f-11e8-8cda-a8f4ab40e678.png
2018-09-24 16:05:55 -07:00
Max Weber f117ac082a idlenotifier: Correctly warn about AFK kicking 2018-09-17 15:23:31 -06:00
Tomas Slusny b90d37c8ec Use mouse/keyboard idle state properly in IdleNotifier
- Use mouseLastPressedMillis instead of mouseIdleTicks as
only mouse press events indicate that player is idle, and not mouse
movements
- Use also keyboard check when resetting idle when active

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-09-09 04:38:44 +02:00
Magic fTail e1036922f3 Add support for combat idle 20 minute timer
- Add support for timer that will reset each time hitsplat is applied to
local player and timeout after 20 mins
- Make idle logout configurable
- Add unit tests for new functionality
2018-09-02 10:14:09 +02:00
Tomas Slusny 232fd73247 Fix setting of barrows kc from chat
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-26 19:26:01 +02:00
Tomas Slusny e2d6b13b47 Merge pull request #3412 from deathbeam/idle-notifer-combat-attack
Idle notifier fix combat notifications, reset notifications on interaction
2018-08-25 12:13:34 +02:00
Jamy C e2391eb99b TimeTracking: Refactor time parsing and add tests (#5050) 2018-08-22 08:20:07 +02:00
Tomas Slusny 960e7aad19 Add idle notifier plugin tests
- Add tests for combat idle, combat reset and combat logout
- Add tests for animation idle, animation reset and animation logout

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-20 13:09:28 +02:00
Tomas Slusny 553eeb03d1 Add tests for parsing NPC list
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-20 10:59:35 +02:00
takuyakanbr b502964142 Convert farming tracker to time tracking plugin 2018-08-04 21:01:44 +08:00
Jordan Atwood d6e465877e clan manager: Use Sprite IDs for rank badges
This commit adds `ImageUtil::resizeCanvas`, `ImageUtil::outlineImage`,
and `ImageUtil::fillImage`, and applies these functions to the clan
manager to replace the clan rank images with calls to `SpriteManager`.
2018-08-04 01:10:45 -07:00
Jordan Atwood 8fb36d3ea4 resources: Remove derivative images
This commit adds `ImageUtil::bufferedImageFromImage`,
`ImageUtil::alphaOffset`, `ImageUtil::grayscaleImage`, and
`ImageUtil::flipImage` functions and applies them to client and plugin
code to remove unneeded derivative images from the resources directory.
2018-08-04 01:10:44 -07:00
Jordan Atwood 06cd5cd7d0 Add image utility class 2018-08-04 01:10:42 -07:00
Tomas Slusny 9146b76b17 Fix FontManagerTest package
Change cache.ui to client.ui

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-31 11:54:42 +02:00
Jordan Atwood 29777c0b1f Add color utility class
In addition to creating `colorTag`, `prependColorTag`, and
`wrapWithColorTag` functions, this commit moves
`SwingUtil::toHexColor` and `SwingUtil::colorLerp` to this new class.
2018-07-26 19:21:29 -07:00
Tomas Slusny 66bfbc5648 Send launch properties around as bound constants
Instead of exposing static variable provide launch properties to
dependant classes as bound constants in RuneLiteModule.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 23:05:22 +02:00
Tomas Slusny 8909871554 Inject and load RS client and applet through Guice
Instead of requiring to create client from RuneLite just use Guice for
it and separate applet provider.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 23:05:22 +02:00
Tomas Slusny 0f0ac2ab64 Allow RS loading classes to be used with Guice
- Provide OkHttpClient through Guice instead of using it from static
variable
- Chain the RS classes with Guice and inject ClientLoader to RuneLite
class
- Cleanup RS loading classes a bit

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 23:05:19 +02:00
Tomas Slusny dcbccbb01b Move rs-client related classes to own package
To properly differentiate between client loading logic, move these
classes to own package.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 22:33:46 +02:00
Magic fTail ddc14df306 screenshot plugin: capture ToB rewards 2018-07-17 20:16:28 -04:00
Jordan Atwood 9cf09eee79 text: Fix removeTags for isolated < and > chars
Fixes runelite/runelite#4355
2018-07-16 10:19:30 -07:00
Magic fTail 3bc9eb7f84 ScreenshotPlugin: fix naming of event 2018-07-15 02:12:31 +02:00
AdamandMagic fTail b1038142cb screenshot plugin: fix hunter level up screenshots
Co-authored-by: Magic fTail <runecnielsen3132@gmail.com>
2018-07-14 15:53:07 -04:00
AdamandMagic fTail dfa892c2bc screenshot plugin: rename "raids" to "chambers of xeric"
Co-authored-by: Magic fTail <runecnielsen3132@gmail.com>
2018-07-14 15:53:02 -04:00
AdamandMagic fTail 69729c710c screenshot plugin: move level up and quest screenshots to after widget load
Move screenshot to the next game tick after loading the interface. This
is needed to fix Hunter as it applies the widget text after it has
unhidden the widgets.

Co-authored-by: Magic fTail <runecnielsen3132@gmail.com>
2018-07-14 15:51:47 -04:00
Adam a52b811af1 chat commands: count barrows chests too 2018-07-13 22:45:59 -04:00
Adam 17f87669eb chat commands: loosen regex for boss names 2018-07-13 16:21:57 -04:00
Adam 52c2b747d6 chat commands: add test 2018-07-13 16:21:49 -04:00
Adam e2b9d0b00a slayer plugin: fix parsing points and streaks with commas 2018-07-13 08:50:35 -04:00
Adam 48708fd3d3 slayer plugin: don't lowercase task names 2018-07-08 09:32:35 -04:00
takuyakanbr 229d7dabfe Replace fields in ConfigGroup with a single value field 2018-07-03 21:27:35 +08:00
Adam fcf58da63c Merge pull request #4125 from Abextm/mahogany-tree
farmingtracker: Correct several patch timings
2018-07-03 08:10:36 -04:00
Nathen Sample b5d2da0d3f Represent decimals as .'s not ,'s (#4059)
Fixes #4054
2018-07-03 09:55:18 +02:00
Max Weber 4117472037 farmingtracker: Correct several patch timings
There were several places where the autogenerated patch implementations would double count a stage, and miss another. PatchImplementationTest now checks for missed stages, excluding the final stage because that is often missed on plants which do not have a "Check-health" stage. There were also a couple produces with incorrect tick counts.
2018-07-01 16:51:46 -06:00
Adam 36b68a6254 puzzle solver: add lightbox solver 2018-07-01 10:31:40 -04:00
Adam 00c1b447f6 item charges plugin: add dodgy necklace 2018-06-18 19:56:57 -04:00
Max Weber 0ff91107b7 runelite-client: Test Overlay equality
If Overlay::equals returns true for different subclasses it breaks the OverlayManager, because it can no longer remove overlays correctly.
2018-06-14 08:36:40 -06:00
Adam 750374d243 chat notifications: correct usage of matcher for highlight replacement 2018-06-13 14:08:33 -04:00
Max Weber e0d70ab382 runelite-client: Make OverlayManager thread safe
There was something happening where rebuildOverlayLayers would race itself almost 100% of the time, preventing overlays from being removed.
2018-06-12 21:26:20 -06:00
Tomas Slusny 41e0b27a99 Make plugins work with new OverlayManager
- Remove the usage of getOverlay and getOverlays
- Replace the overlay addition/removal with correct calls to
overlayManager.add and overlayManager.remove
- Update tests

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-12 14:40:06 +02:00
Tomas Slusny 921bfb2fdd Split OverlayRenderer logic to OverlayManager
-  Split logic related to populating overlays to OverlayManager and
OverlayRenderer.
- Remove overlay-related logic from plugin, this is going to be handled
via OverlayManager.
- Inject core overlays to OverlayManager via new methods

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-12 14:29:48 +02:00
Seth b0ad7acfbb slayer plugin: fix expeditious regex pattern
-fixed to include both messages when the word "task" is present or omitted
2018-05-31 18:21:02 -05:00