Commit Graph
100 Commits
Author SHA1 Message Date
Tomas Slusny 4f36a787de Merge pull request #4002 from HSJ-OSRS/battlestaves-idle
Add battlestaff crafting to idle notifier
2018-06-25 17:21:12 +02:00
Tomas Slusny f68dea3df7 Merge pull request #3830 from deathbeam/center-stretched-fixed
Center stretched fixed mode horizontally
2018-06-25 16:40:21 +02:00
Tomas Slusny a919653360 Make Fight Cave plugin more accurate
- Replace fixed scheduled hook with AnimationChanged hook to determine
what to pray
- Null current attack when Jad despawns (goes out of view)

Closes #3904

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-25 16:31:15 +02:00
Tomas Slusny b7ec293201 Merge pull request #4007 from Nightfirecat/add-stamina-mix-timer
timers plugin: Create timer for stamina mixes
2018-06-25 11:28:26 +02:00
Tomas Slusny beb9100c39 Merge pull request #3990 from Shingyx/karamja-stepping-stones-level
agilityShortcutLocation: Fix SE Karamja agility marker
2018-06-24 13:31:54 +02:00
Tomas Slusny 2d01eae2c4 Merge pull request #3963 from Nightfirecat/fix-more-hot-cold-clues
Even more hot-cold clue fixes
2018-06-24 13:30:29 +02:00
Tomas Slusny c8e0f5a3f9 Merge pull request #3976 from deathbeam/add-callback-docs
Update documentation for Callbacks interface
2018-06-24 11:58:16 +02:00
Tomas Slusny 49c3f538ef Add inventory tagging plugin
Add plugin that will tag items in inventory with 4 different categories
and draw outlines for tagged items.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-23 14:28:33 -04:00
Tomas Slusny af7e76502b Add new toBufferedOutline method to SpritePixels
Add method that returns item image with outline to SpritePixels.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-23 14:20:11 -04:00
Tomas Slusny 3c3e0ef1ae Update documentation for Callbacks interface
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-23 15:46:47 +02:00
Tomas Slusny 27de05c785 Move shift-click config to top of menu swapper
This should be clearly separated from other options and be priority at
the top.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-23 04:25:01 +02:00
Tomas Slusny 9839049abd Remove Age menu entry swapping
This feature is mostly unnecessary as it is way too spefic and with very
little use.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-23 04:24:40 +02:00
Tomas Slusny 42341133b7 Merge pull request #3961 from NathenSample/3911-KourendLibrary
Update kourend library plugin encapsulation
2018-06-23 02:33:40 +02:00
Tomas Slusny d21cac1449 Add documentation for Hooks
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:36 -04:00
Tomas Slusny ffbc89a801 Move menuActionHook to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:36 -04:00
Tomas Slusny 486c8c985a Move clientMainLoop to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:35 -04:00
Tomas Slusny 7437da1237 Move drawRegion call to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:35 -04:00
Tomas Slusny d948dc05ed Move drawAboveOverheads call to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:34 -04:00
Tomas Slusny bac06e5b3a Move graphicsObjectCreated to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:34 -04:00
Tomas Slusny 517c4c4796 Move addChatMessage to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:33 -04:00
Tomas Slusny 4d6386d846 Move projectileMoved to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:32 -04:00
Tomas Slusny 3835f005f6 Move setMessage to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:32 -04:00
Tomas Slusny 4241e4384f Move postItemComposition to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:31 -04:00
Tomas Slusny eea63dd171 Move focusLost to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:29 -04:00
Tomas Slusny 384bdb1179 Move focusGained to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:28 -04:00
Tomas Slusny 2944e5b334 Move updateNpcs call to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-23 00:04:44 +02:00
Tomas Slusny 8fb285f928 Move menuOpened to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 23:59:59 +02:00
Tomas Slusny d6e26410c8 Move onActorHitsplat to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 23:59:59 +02:00
Tomas Slusny cea506cff2 Merge pull request #3870 from jplsek/swap-assign
Menu Swapper - Add Age/Assignment Swapping
2018-06-22 21:42:12 +02:00
Tomas Slusny 79e3a24395 Merge pull request #3918 from Abextm/prayer-holy-wrench
prayer: Remove the ring of the gods from the holy wrench list
2018-06-21 09:58:37 +02:00
Tomas Slusny 0e38f5b59d Merge pull request #3906 from Nightfirecat/fix-east-of-shilo-village-stepping-stones-highlight
Fix stepping stone object IDs east of Shilo Village
2018-06-20 13:32:28 +02:00
Tomas Slusny 8b637d1f09 Merge pull request #3797 from ypperlig/patch-1
CONTRIBUTING.md - Provide link to coding conventions
2018-06-19 10:11:13 +02:00
Tomas Slusny 52b70418bc Merge pull request #3880 from deathbeam/fix-ground-markers-layer
Fix ground marker plugin layer
2018-06-19 10:09:24 +02:00
Tomas Slusny 2c1006635e Merge pull request #3888 from Nightfirecat/hot-cold-clue-location-fixes
Hot cold clue location fixes
2018-06-18 21:56:12 +02:00
Tomas Slusny c69e8ebf3f Merge pull request #3886 from Nightfirecat/fix-slayer-tower-emote-clue
Fix Slayer Tower emote clue
2018-06-18 21:55:24 +02:00
Tomas Slusny 2d323e0027 Fix ground marker plugin layer
This plugin is marking ground, it should be at lowest possible layer to
not interfere/draw over other overlays.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-18 12:58:58 +02:00
Tomas Slusny fe36c5bc35 Optional support for recoloring right-click menu
Add back support for recoloring right-click menu in Ground Items, but
make it optional and disabled by default.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-17 15:37:42 +02:00
Tomas Slusny 4ddf7173bc Merge pull request #3862 from deathbeam/fix-ground-item-swapped-values
Fix ground item swapped price values
2018-06-17 14:38:25 +02:00
Tomas Slusny 170bfd15b0 Fix ground item swapped price values
Swap gePrice and haPrice in getHidden and getHighlighted calls
correctly.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-17 14:20:37 +02:00
Tomas Slusny b6056e4f0e Merge pull request #3597 from raqes/info-wiki-link
Add wiki link to info panel
2018-06-17 04:18:11 +02:00
Tomas Slusny 8f235a81f8 Merge pull request #3827 from deathbeam/disable-osb
Disable OSB prices by default
2018-06-17 03:56:19 +02:00
Tomas Slusny 3ad62abed5 Merge pull request #3737 from Jonatino/patch-2
Add tooltip to absorption panel
2018-06-16 12:34:46 +02:00
Tomas Slusny 571e4d761a Merge pull request #3762 from Nightfirecat/add-staff-of-the-dead-timer
Add Staff of the Dead timer
2018-06-16 12:32:29 +02:00
Tomas Slusny b13c3273f0 Merge pull request #3831 from sethtroll/fixworldmapagilitymark
agilityShortcutLocation: Fix shilo village agility marker
2018-06-16 12:31:07 +02:00
Tomas Slusny d638a5c3e3 Merge pull request #3832 from sethtroll/fixtextareatooltip
configPanel: remove tooltips for JTextArea
2018-06-16 02:37:16 +02:00
Tomas Slusny b0127283d1 Center stretched fixed mode horizontally
To fit with fixed mode with stretched fixed disabled, center stretched
fixed mode horizontally.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-16 00:56:32 +02:00
Tomas Slusny 93bb31eb1b Disable OSB prices by default
Depending on 3rd party API is bad enough, having it enabled by default
is worse.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-15 23:41:15 +02:00
Tomas Slusny 51d00d913a Reload overlay settings on plugin change
When plugin is loaded/unloaded, reload all overlay settings as they
might've changed.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-15 19:09:23 +02:00
Tomas Slusny 0c1b98fcd5 Change ground items box size from 6 px to 8 px
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-15 18:37:35 +02:00
Tomas Slusny 459f126537 Fix UnsupportedOperationException in ground items
This issue was caused by ground item values not being copied to
ArrayList when modified. To avoid unnecessary allocations, create new
copy only when required (e.g when holding alt).

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-15 17:05:06 +02:00
Tomas Slusny 62dc7c75c0 Merge pull request #3572 from psikoi/hiscore-tab-refactor
Material Tabs in Hiscores + OnTabSelected event
2018-06-15 15:51:40 +02:00
Tomas Slusny 1a0935ed7b Mark InfoboxOverlay as singleton
To prevent accidental misuse, mark this overlay as singleton.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-15 14:03:30 +02:00
Tomas Slusny ebd6d61272 Fix loading of core overlay properties
When loaded and added in OverlayRenderer, it was too early to load their
properties because configuration was not loaded yet.

Fixes #3799

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-15 14:03:11 +02:00
Tomas Slusny 963e28f719 Merge pull request #3798 from Nightfirecat/fix-mausoleum-hot-cold-clue
Fix south-of-mausoleum hot-cold clue location
2018-06-15 13:54:31 +02:00
Tomas Slusny ea051beb4e Reduce code duplicity in resetOverlay method
Use saveOverlay and null all fields to achieve same result.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-15 10:14:57 +02:00
Tomas Slusny 3fb79ebf79 Make hidden items color configurable
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-14 19:34:29 +02:00
Tomas Slusny 7abff96c6e Ignore highlights when value is set to 0 (disable)
When highlight value is set to 0, disable highlight for that particular
configuration.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-14 19:30:22 +02:00
Tomas Slusny 36b114ed0b Consider anything with GE > 0 as tradeable too
In ground items, consider anything that has positive GE value as
tradeable and exclude it from untradeable checks.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-14 08:40:29 -06:00
Tomas Slusny f83f959caf Fix overlay collection modification checks
- Remove check for .add as for ArrayList it is always true and so it is
dead condition
- Add check for removeIf, so the overlay layers will be rebuilt only
when something is removed

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-14 08:36:40 -06:00
Tomas Slusny 205659defa Use Object.equals for Overlays
- Generated equals from Lombok can cause falsy equals checks and so match
with unrelated overlay.
- Do not add overlay twice to overlay list based on equals

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-14 08:36:40 -06:00
Tomas Slusny f069434b6f Merge pull request #3780 from Nightfirecat/fix-zeah-hot-cold-dig-locations
Fix zeah hot cold dig locations
2018-06-14 08:42:13 +02:00
Tomas Slusny 8cbe9dc449 Disable camera zoom by default
Instead of having the plugin enabled and everything inside disabled just
disable it and by default enable 1 option.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-13 17:21:18 +02:00
Tomas Slusny a672c1694a Add support for configurable infobox size
Add new configuration option to RuneLite settings for setting infobox
size.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-13 01:04:26 +02:00
Tomas Slusny 274b0f235c Change the default size of infoboxes to be smaller
- To follow Konduit style a bit more, change the default size of infoboxes
to be somewhat around 24x24 instead of 36x36.
- Change the margin between infoboxes to 1px

Depends on #2874
Closes #1771 and closes #1016

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-13 00:20:30 +02:00
Tomas Slusny bd487d4bbf Change InfoBoxOverlay to use PanelComponent
Instead of doing layouting by itself, use PanelComponent and newly added
support for component wrapping and disabling of background.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-13 00:20:30 +02:00
Tomas Slusny 3130e0f254 Add support for preferred location to Panel
- Add support for storing preferredLocation in PanelComponent and
translate children based on it.
- Offset children in PanelComponent by metrics.getHeight by default
- Add null check for background in PanelComponent to support panels
without background

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-13 00:20:28 +02:00
Tomas Slusny c8d6691d18 Add support for wrapping to PanelComponent
Add support for wrapping at x elements to PanelComponent, depends on
panel component orientation.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-13 00:17:58 +02:00
Tomas Slusny 013cc54ba2 Merge pull request #3126 from drivfe/bugfix/combinedactionslot
Skill Calc - Fix combined action slot not updating when an input field was changed
2018-06-12 23:51:16 +02: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
Tomas Slusny 70cbf061ec Add highlight > value, merge hide < ge and ha
- Add highlight > value setting
- Merge hide < GE and hide < HA value and always check for both
- Change the color getting logic to use simple methods instead of checks
spread around the code

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-12 00:50:39 +02:00
Tomas Slusny 9e41f47fa8 Add full item name clickboxes
- Expand the clickbox for highlighting/hiding item to it's entire name
- Left click on name highlights item, right click hides item
- Highlight background when in highlighting mode of the background item
that is hovered
- In order to help in cluttered environment, bring ground item that is
hovered to front.

These changes makes easy to see what item are you trying to
highlight/hide in cluttered areas.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-12 00:49:41 +02:00
Tomas Slusny b24a996263 Remove 4th invalid state from ground boxes
Remove the possibility of having the item both highlighted and hidden
when using the highlight/hidden boxes.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-12 00:49:41 +02:00
Tomas Slusny 7a3ee8d1c0 Add option to always draw untradeable items
Instead of checking for GE price being above 0, use isTradeable boolean
to determine if the price checks should apply or not and add
configuration value to disable this behaviour.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-12 00:49:39 +02:00
Tomas Slusny a1ea91a0c2 Add mappings for isTradeable to ItemComposition
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-12 00:48:43 +02:00
Tomas Slusny 3a773746dc Show GE and HA only when showing both prices
- Change the price displaying to dropdown menu
- Show (GE:, (HA: only when showing both prices at once, otherwise do
not add label at all

Depends on: #2149

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-12 00:48:40 +02:00
Tomas Slusny ce1dd80f4a Merge pull request #3661 from Nightfirecat/fix-heroes-guild-emote-clue-location
Fix Hero's guild emote clue location
2018-06-07 07:57:34 +02:00
Tomas Slusny 71887646f4 Remove auto-expanding from PanelComponent
- Remove the auto-expanding of PanelComponent based on children size
because then the size cannot be ever reduced
- Make TitleComponent return preferredSize if it is smaller than string
width
- Make opponentInfo assign the preferred size to panel based on input
strings

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-05 11:37:25 +02:00
Tomas Slusny f9d7ca1dd9 Merge pull request #3608 from Nightfirecat/fix-guard-vemmeldo-anagram-clue
Fix Guard Vemmeldo anagram clue location
2018-06-05 08:51:46 +02:00
Tomas Slusny d6bf7c2cf6 Show RuneLite launcher version in info panel
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-04 11:09:41 -04:00
Tomas Slusny 8c8f2b36a5 Add support for getting runelite launcher version
Propagate RuneLite launcher version to client via system property and
add this property to RuneLite properties file.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-04 11:09:40 -04:00
Tomas Slusny 0793181e5f Cleanup RuneLite class (use Lombok)
- Use Lombok for creating setters and getters for variables in RuneLite
- Use correct spacing and final modifiers

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-04 11:09:39 -04:00
Tomas Slusny 9f06ebdfa4 Merge pull request #3585 from Nightfirecat/add-hosidius-fly-fishing-spots
Add missing Zeah fishing spots
2018-06-03 03:21:52 +02:00
Tomas Slusny b306f454d0 Merge pull request #3575 from ypperlig/giantseaweedfix
farmingtracker - Change tickrate for giant seaweed from 10 to 5
2018-06-02 17:07:50 +02:00
Tomas Slusny f8e6321363 Merge pull request #3546 from psikoi/icon-tabs-refactor
Improve Material Tabs Code
2018-06-01 13:10:16 +02:00
Tomas Slusny edb55fde3e Merge pull request #3511 from Nightfirecat/fix-the-hand-clue-step
Fix "The hand ain't listening." clue step
2018-05-31 14:36:21 +02:00
Tomas Slusny ed01a36ed1 Change schedule to GameTick sub in Tithe plugin
Instead of using 600ms schedule, use GameTick event for subscribing to
game ticks.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-05-30 12:40:23 +02:00
Tomas Slusny ef8f088158 Change tithe farm to use PieComponent
Instead of creating logic for drawing arcs by itself, use PieComponent
and similar appearance of the pies as hunter plugin

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-05-30 12:39:12 +02:00
Tomas Slusny 8c7104efed Merge pull request #3483 from MagicfTail/Alphabetical-order
MenuEntrySwapper: Reorder config items to alphabetical order
2018-05-30 12:17:28 +02:00
Tomas Slusny 483a4b800b Merge pull request #2880 from MESLewis/clue-plugin-overlay-text
Clue Scroll Plugin: Add wording to direct users to world map
2018-05-30 11:30:35 +02:00
Tomas Slusny 12a080d5ce Merge pull request #2870 from MESLewis/world-map-dev-overlay
Dev-tools: Add location overlay to show world map position
2018-05-30 11:27:52 +02:00
Tomas Slusny db6dafa923 Merge pull request #3445 from deathbeam/add-limestone-attack-stone
Add Limestone attack stone to skill calc
2018-05-30 10:17:25 +02:00
Tomas Slusny 6deef3123b Merge pull request #3467 from Nightfirecat/fix-iban-emote-clue
Fix Iban's Temple emote clue
2018-05-30 10:14:25 +02:00
Tomas Slusny 2e4f720c14 Merge pull request #3401 from MagicfTail/Boss-Timer-id
BossTimerPlugin: Find bosses based on id instead of name
2018-05-29 15:46:46 +02:00
Tomas Slusny 5bb0fdd852 Update Lombok to 1.16.22
This will make Lombok work with JDK10.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-05-29 15:39:24 +02:00
Tomas Slusny b3acf6107d Add Limestone attack stone to skill calc
This is apparently method for UIM to train construction so it is
probably very useful to have.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-05-29 11:07:55 +02:00
Tomas Slusny 7a0d7198f8 Merge pull request #3345 from sainttx/fix-array-index-empty-command
Fix ArrayIndexOutOfBoundsException when an empty command is typed
2018-05-26 23:04:30 +02:00
Tomas Slusny e790a5536e Merge pull request #3359 from Nightfirecat/add-bandit-camp-fishing-spot
Add Wilderness Bandit Camp fishing spot
2018-05-26 23:03:46 +02:00
Tomas Slusny 15d9cf2f8b Merge pull request #3340 from deathbeam/fix-card-layout
Properly set preferredSize of navContainer
2018-05-26 16:40:38 +02:00
Tomas Slusny 4234edef6c Properly set preferredSize of navContainer
- New CardLayout requires also preferredSize in addition to maximum and
minimum sizes to expand/contract properly without leaving artifacts +
also requires revalidation.
- Remove entire container repaint to prevent unnecessary slowdown for no
reason

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-05-26 13:53:35 +02:00