Commit Graph
100 Commits
Author SHA1 Message Date
Tomas Slusny 5d964f05ce Merge pull request #4822 from Nightfirecat/fix-timers-and-stopwatches-header-color
time tracking plugin: Fix timers header color
2018-08-11 10:24:01 +02:00
Tomas Slusny 6ef32bf916 Merge pull request #4815 from Justsofun/discord-wintertodt
DiscordPlugin: Add Wintertodt to Activities
2018-08-10 13:34:31 +02:00
Tomas Slusny 0e55362b81 Merge pull request #4768 from Bjdufre1/greater_cannon_spot
Move greater demon cannon spot to better location.

Fixes #4753
2018-08-08 08:18:59 +02:00
Tomas Slusny e4fde450ed Merge pull request #4463 from deathbeam/xp-globes-moveable
Add support for making XP globes moveable
2018-08-07 10:00:58 +02:00
Tomas Slusny 32c6d07ba8 Merge pull request #4639 from Abextm/item-prices
runelite-client: Always use the mapped price for items
2018-08-06 22:57:04 +02:00
Tomas Slusny 2788ec06ea Merge pull request #4413 from deathbeam/cleanup-raids-plugin
Add support for preserving raids scouter inside raid + fix checking for raids state on plugin state changes
2018-08-06 21:55:55 +02:00
Tomas Slusny f7d0bf4ace Add setting to preserve scouter in raid
See #1871

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-06 21:49:33 +02:00
Tomas Slusny 2d4c895e5e Properly check for changing values in raids plugin
- Determine if we are in raid on startup
- Properly reset state on shutdown
- Do not reset raid state when not necessary

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-06 21:49:32 +02:00
Tomas Slusny 94e5596d22 Merge pull request #4667 from deathbeam/move-index-to-db
Move isOverlayOutdated to IndexDatabase
2018-08-06 09:31:38 +02:00
Tomas Slusny 6644de3ac7 Merge pull request #4605 from Nightfirecat/remove-unused-slf4j
Remove unused @Slf4j annotations and imports
2018-08-06 07:28:36 +02:00
Tomas Slusny b07f470930 Merge pull request #4673 from deathbeam/remove-headers
Remove unnecessary headers from plugin panels
2018-08-05 12:15:27 +02:00
Tomas Slusny 2c410dea07 Merge pull request #4683 from deathbeam/add-tourney-world-type
Add Tournament world type
2018-08-05 12:06:29 +02:00
Tomas Slusny 6f77fe28ee Merge pull request #4709 from deathbeam/fix-canvas-focus
Add null-check for game canvas
2018-08-05 12:06:09 +02:00
Tomas Slusny 9b4dd209c2 Merge pull request #4703 from JaimySmets/4645-werewolf-agility-course
Add obstacles to Werewolf court
2018-08-05 11:55:34 +02:00
Tomas Slusny cbff6293ba Merge pull request #4706 from JaimySmets/4694-idle-notifier-make-tabs
Add tablet creation animation to idle notifier
2018-08-05 11:54:12 +02:00
Tomas Slusny 7effa9ee50 Add null-check for game canvas
If frame is opened too fast and game did not managed to create the
canvas yet, frame will crash during startup on NPE.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-04 19:48:25 +02:00
Tomas Slusny 73645c0f2b Remove unnecessary headers from plugin panels
Now all plugin panels have tooltips so the headers are not necessary and
most of plugins do not have them already.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-04 13:00:11 +02:00
Tomas Slusny 46c2745374 Merge pull request #4604 from Nightfirecat/exterminate-game-image-files
Remove item and sprite images from runelite-client resources directory
2018-08-04 12:59:02 +02:00
Tomas Slusny a535a809e6 Merge pull request #4655 from Nightfirecat/update-chat-commands-to-check-for-space-after-command
chat commands plugin: Use consistent message check
2018-08-04 10:02:59 +02:00
Tomas Slusny 3bcf87b327 Merge pull request #4627 from Kamielvf/itemstats-fix
item stats: fix tooltip not appearing when hovering over item
2018-08-04 09:55:38 +02:00
Tomas Slusny 027c3ce843 Add Tournament world type
Fixes #4682

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-03 22:26:34 +02:00
Tomas Slusny eed9c447c6 Merge pull request #4631 from Kamielvf/menu-swapper-fairy-ring-fix
menu entry swapper: fix fairy ring swaps not working for zanaris ring, arceuus ring and PoH tree-ring combo
2018-08-03 19:49:44 +02:00
Tomas Slusny 14b654c9a5 Account for linked item id, format tooltip
- Account for linked item id when getting item price
- Format item price tooltip
- Create new data structure for loot tracker and precompute it
to avoid calling methods that are unsafe outside of client thread

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-03 11:22:04 +02:00
Tomas Slusny 5a152f0514 Move isOverlayOutdated to IndexDatabase
Instead of creating new callback and then simply setting boolean on
RuneLite to dump it somewhere, expose this boolean from IndexDatabase
and remove injection of RuneLite.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-03 11:09:54 +02:00
Tomas Slusny 5e3d205d0b Add mappings for indexed script db
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-03 10:50:15 +02:00
Tomas Slusny 9964d5f327 Merge pull request #4640 from deathbeam/fix-screen-marker-name
Use correct marker name when cancelling edit
2018-08-03 08:33:38 +02:00
Tomas Slusny 7f291fb95d Merge pull request #4664 from MagicfTail/Pharao-scepter
Add pharaoh's sceptres, tome of fire, and toxic staff of the dead item mappings
2018-08-03 08:31:10 +02:00
Tomas Slusny be993f5d1c Merge pull request #4626 from Kamielvf/fix-clear-public
chat history: clear public chat when menu option is clicked
2018-08-03 08:10:00 +02:00
Tomas Slusny 9791d9271f Merge pull request #4654 from Nightfirecat/fix-kandarin-achievement-diary-mining-requirement
achievement diary plugin: Fix coal mining req
2018-08-03 08:03:29 +02:00
Tomas Slusny bf459c290b Merge pull request #4641 from deathbeam/remove-wizard-special-case
Remove special cased wizard death from loot manage
2018-08-02 13:01:22 +02:00
Tomas Slusny 64c71385a9 Remove special cased wizard death from loot manage
Remove special cased wizard death animations from loot manager as as of
latest OSRS update this now works normally:

The Elemental Wizards south of Falador now give loot at the end of their
death animation rather than the beginning.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-02 12:43:19 +02:00
Tomas Slusny 4ce0f31846 Merge pull request #4625 from Kamielvf/fix-shiftmodifier-focus-lost
fix menu entry swapper shiftModifier getting stuck on focus lost
2018-08-02 10:33:44 +02:00
Tomas Slusny 30ecd21120 Merge pull request #4638 from deathbeam/fix-clientui-sidebar
Reverse ClientUI sidebar condition
2018-08-02 10:25:01 +02:00
Tomas Slusny 08f96d2e38 Use correct marker name when cancelling edit
Instead of using marker overlay name use marker name, as marker overlay
name contains date.

Fixes #4634

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-02 08:30:14 +02:00
Tomas Slusny b3d9de7a41 Reverse ClientUI sidebar condition
- Reverse ClientUI sidebar condition as when opening sidebar is always
open so current master will effectively shrink window instead of
restoring to correct size
- Apply this condition also to KEEP_WINDOW_SIZE

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-02 07:57:44 +02:00
Tomas Slusny d11f78090b Merge pull request #4632 from Kamielvf/instance-map-fix
instance map: properly remove mouse listener on shutdown
2018-08-02 07:30:56 +02:00
Tomas Slusny e7ba351928 Merge pull request #4615 from deathbeam/fix-zulrah-worldloc
Fix LootManager zulrah location
2018-08-01 22:45:01 +02:00
Tomas Slusny 7598aa0250 Fix LootManager zulrah location
We pack scene x/y and not world x/y, so create world point from scene.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-01 19:55:26 +02:00
Tomas Slusny 19f3d05dae Merge pull request #4611 from Nightfirecat/add-ungael-obstacles
agility: Add Ungael obstacles
2018-08-01 12:02:12 +02:00
Tomas Slusny 8797cde732 Merge pull request #4580 from deathbeam/fix-array-out-of-bounds
Fix tile setting and tile height ArrayOutOfBounds
2018-08-01 11:33:45 +02:00
Tomas Slusny 9fe667c763 Merge pull request #4547 from Abextm/fairy-ring-defer
Prevent crash when updating the fairy ring filter
2018-08-01 10:18:47 +02:00
Tomas Slusny cf2daee371 Fix getCanvasTileAreaPoly ArrayOutOfBounds
Safe-check tile settings size to prevent array out of bounds exception.

Fixes #4579

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-08-01 10:16:12 +02:00
Tomas Slusny dd07ff033f Merge pull request #4588 from Abextm/no-key-released
runelite-client: Make hotkeys run on KeyPressed
2018-08-01 10:14:07 +02:00
Tomas Slusny 57749d818c Merge pull request #4612 from Nightfirecat/fix-lumbridge-swamp-emote-clue-location
clues: Fix Lumbridge swamp cave emote clue location
2018-08-01 10:12:41 +02:00
Tomas Slusny 5b963ce240 Merge pull request #4596 from JaimySmets/4593-emote-clue-dragon-pickaxe
Add alternative dragon pickaxes to emote clue
2018-08-01 00:05:56 +02:00
Tomas Slusny 126e10cc6f Merge pull request #4555 from deathbeam/lootevents
Add loot tracker
2018-07-31 23:49:47 +02:00
Tomas Slusny acc2f4edb4 Merge pull request #4589 from deathbeam/fix-font-manager-test-package
Fix FontManagerTest package
2018-07-31 15:27:01 +02: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
Tomas Slusny 466eca9d90 Merge pull request #4552 from Shingyx/fix-assembler-tests-on-windows
Fix Assembler tests when autocrlf=true on Windows
2018-07-31 10:08:43 +02:00
Tomas Slusny 0217d5a6af Merge pull request #4575 from deathbeam/fix-plane-for-tile-objects
Account for plane in TileObject canvas location
2018-07-30 17:14:19 +02:00
Tomas Slusny 676b2cf5d2 Account for plane in TileObject canvas location
Fixes #4571

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-30 16:36:58 +02:00
Tomas Slusny 9c0671affc Merge pull request #4481 from deathbeam/add-time-measurement
Add simple info log with startup time
2018-07-30 11:55:29 +02:00
Tomas Slusny 37be586202 Merge pull request #4558 from deathbeam/fix-null-and-emtpy-names
Fix NPE when trying to draw null names
2018-07-30 10:32:01 +02:00
Tomas Slusny c777b63357 Merge pull request #4072 from Nightfirecat/improve-player-comparison-text-color
Add color utility class
2018-07-30 08:46:48 +02:00
Tomas Slusny fb72406100 Merge pull request #4420 from MagicfTail/patch-1
TimerPlugin: Fix prayer enhance length
2018-07-30 08:06:30 +02:00
Tomas Slusny 5adb2d2e37 Add null check for Perspective.getCanvasTextLoc
We have marked it as Nonnull but we were still sending null values
inside because of NPC name sometimes being null. Make the param nullable
and add null and empty check.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-30 00:19:10 +02:00
Tomas Slusny 7faa23e289 Merge pull request #4534 from deathbeam/use-providers
Properly use javax.inject.Provider
2018-07-29 23:48:59 +02:00
Tomas Slusny 1c13a1bde4 Fix NPE when trying to draw null names
Fix null pointer exceptions when trying to draw null names on screen.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-29 23:45:56 +02:00
Tomas Slusny aa75201fe4 Merge pull request #4479 from deathbeam/remove-revalidate-move-frame
Pack and show frame only after properties update
2018-07-29 14:36:04 +02:00
Tomas Slusny a934cc4667 Pack and show frame only after properties update
- Instead of packing frame first and then resizing and revalidating it,
pack it at the end so there is no overhead of resize and repaint events.
This save another like 200ms from startup time.
- Validate screen bounds after setting them to minimum size
- Update frame config after window custom chrome is set

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-28 17:52:40 +02:00
Tomas Slusny bb55d9f52a Properly use javax.inject.Provider
Instead of using providers in classes that should not be even used when
the optional dependencies are not present, move all Provider<> injects
to RuneLite (and to other top-level classes in other cases).

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-28 16:25:18 +02:00
Tomas Slusny 9ee6989aa3 Merge pull request #4507 from deathbeam/fix-toolbars
Use consistent API and order for title and sides
2018-07-28 16:12:25 +02:00
Tomas Slusny dfcbece66b Add simple info log with startup time
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-27 12:10:08 +02:00
Tomas Slusny d7b78936de Merge pull request #4519 from devinfrench/kourendlibrary
kourend library plugin: Use correct enum naming convention
2018-07-27 10:13:44 +02:00
Tomas Slusny 96036d17d0 Merge PluginToolbar and TitleToolbar together
Because of new isTab property there is no need to separate the toolbars
anymore as it can be decided which one to add where based on it.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-27 10:00:08 +02:00
Tomas Slusny 7864522210 Add isTab property to title buttons
In order to differentiate between title and sidebar buttons in sidebar
add isTab property that will place them after separator.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-27 08:35:22 +02:00
Tomas Slusny af1e16fa34 Merge pull request #4523 from Nightfirecat/fix-abyssal-demon-task-requirement
achievement diary plugin: Fix Abyssal demon req
2018-07-27 08:05:06 +02:00
Tomas Slusny 746d948a84 Use consistent API and order for title and sides
Use same API for ordering title and sidebar and order them in the swing
components and not in events as that is unreliable.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-26 15:48:00 +02:00
Tomas Slusny 01d5e11975 Fix loading of chat colors on startup
ConfigChanged is no longer propagated on startup, so colors need to be
loaded explictly for first time.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-26 13:31:34 +02:00
Tomas Slusny c262ca267a Merge pull request #4494 from Nightfirecat/fix-menaphite-master-emote-clue
clues: Fix menaphite emote requirements
2018-07-25 11:14:29 +02:00
Tomas Slusny 3d46b17028 Merge pull request #4468 from LeviSchuck/xp-126
Fix level 126 next goal to be max XP (200,000,000) instead of -1 xp
2018-07-25 11:05:24 +02:00
Tomas Slusny 30bf68a23b Propagate height to ground items
Propagate item layer height to ground items again

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-24 18:22:34 +02:00
Tomas Slusny 7831042189 Merge pull request #4447 from deathbeam/do-not-reconfigure
Update frame config when needed
2018-07-24 11:52:13 +02:00
Tomas Slusny 28dd5f477c Update frame config when needed
Update resizable only when it is really changed as it messes up window
sometimes if fullscreen

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-24 11:41:10 +02:00
Tomas Slusny 30292b8f52 Add support for making XP globes moveable
Add support for integration of XP globes with DETACHED overlay system,
e.g making them moveable.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-23 17:41:51 +02:00
Tomas Slusny a3ddd47a29 Add support for RS movable widgets
Add support for adding RS widgets to RuneLite overlay system and make
them moveable with persisted positions during restarts.

Depends on #3820 for widget ids

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-22 18:25:00 +02:00
Tomas Slusny 2627f08f18 Add experience tracker widget WidgetInfo
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-22 18:25:00 +02:00
Tomas Slusny 84473262ba Use Overlay#getBounds for getting correct bounds
Use Overlay#getBounds for getting correct bounds in OverlayManager in
case overlay overrides getBounds with custom functionality.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-22 18:25:00 +02:00
Tomas Slusny d700ebc257 Add support for resetting the detached overlays
Add support for resetting saved data for detached overlays.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-22 18:25:00 +02:00
Tomas Slusny cda98fc50e Move Discord and EventBus after ClientUI
Move initialization of Discord service and EventBus after ClientUI
startup to display the ClientUI sooner

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 23:09:08 +02:00
Tomas Slusny af34aa0e53 Properly load configuration when showing ClientUI
- Properly load configuration when first showing ClientUI instead of
waiting for ConfigChanged events.
- Merge open and show to 1 method
- Remove ClientUILoaded as it is no longer necessary

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 23:09:08 +02:00
Tomas Slusny 53148d0cdd Remove recursive dependency on RuneLite
- Merge ClientUI.show and ClientUI.init as now applet can be properly
injected
- Change RuneLite to be autocloseable and send it when opening ClientUI

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 23:09:07 +02: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
Tomas Slusny d646a37bdb Follow GitHub templates for bug report and issue (#4205)
Based on points made in #4160, update GitHub issue templates to be more
versatile, do not include any inline comments and be straightforward,
while pointing out reporter in correct direction. Also, one of the
crucial things that previous template for bug report was missing was
RuneLite and Launcher versions and steps to reproduce the bug.

Supersedes #4160

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 18:33:47 +02:00
Tomas Slusny 7de8436bdb Merge pull request #4412 from deathbeam/pmod-support-chat
Add support for mod public chat to ChatCommands
2018-07-21 10:54:46 +02:00
Tomas Slusny 90853c91c8 Merge pull request #4417 from deathbeam/clan-member-rank-jmod
Add JMod clan member rank
2018-07-21 10:53:53 +02:00
Tomas Slusny 7c5e545846 Merge pull request #4436 from timovv/inventory-viewer-spacing
Inventory viewer: make padding between items same as in inventory.
2018-07-21 10:31:17 +02:00
Tomas Slusny b861b7d706 Merge pull request #4432 from Nightfirecat/fix-sdmm-opponent-lookup
opponent info plugin: Fix SDMM hiscore lookup
2018-07-21 09:48:41 +02:00
Tomas Slusny 67bb02c42e Merge pull request #4430 from Joshua-F/fix/actorquery-interacting
Use the supplied actor passed to ActorQuery#isInteractingWith
2018-07-21 00:35:14 +02:00
Tomas Slusny d1ba793849 Hide only inside of minimap but not logout
In normal resizable mode hide only insides of minimap but not logout
button when hiding minimap.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-20 22:33:44 +02:00
Tomas Slusny 0002a25d28 Move private methods to bottom of minimap plugin
Move private methods to bottom, after subscribe methods for better
readability.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-20 22:13:04 +02:00
Tomas Slusny 26daee6a2e Use correct widget when hiding minimap
When hiding minimap, there are 2 different widget IDs for respective
resizable mode configurations. Find proper one and hide it.

Fixes #976

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-20 22:13:04 +02:00
Tomas Slusny 4218459617 Add new WidgetIDs for minimap
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-20 22:13:03 +02:00
Tomas Slusny 5249f73e54 Add JMod clan member rank
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-19 23:27:38 +02:00
Tomas Slusny 0a4ce4cf4c Merge pull request #4388 from Kamielvf/tile-fix
perspective: fix regression caused by 2599db2
2018-07-19 21:32:01 +02:00
Tomas Slusny e19b057bdd Add support for mod public chat to ChatCommands
Without this chat commands were not working because it just exited
early for pmods.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-19 20:09:51 +02:00
Tomas Slusny 9fbe78e069 Merge pull request #4397 from Abextm/banana-plantation-clue
cluescrolls: Move banana plantation clue out of tree
2018-07-19 19:06:30 +02:00