Commit Graph

4182 Commits

Author SHA1 Message Date
Adam
3cdc2be72f ground items: remove unnecessary copy of collected ground items 2018-06-14 21:26:53 -04:00
Adam
5e916c5151 ground items: don't recolor menu if hidden 2018-06-14 20:02:49 -04:00
Adam
990175d416 ground items: rename highlight > value key to reset the defaults 2018-06-14 20:02:15 -04:00
Adam
bf9aa4959d ground items: default highlight over value to 0 2018-06-14 19:33:50 -04:00
Adam
f203b00ef6 Merge pull request #3796 from deathbeam/ground-item-changes
Ground item changes (as requested by people in Discord)
2018-06-14 19:31:01 -04:00
Adam
ff7f06dffd Revert " Fix NMZ points overlay appearing in the KBD instance lair"
This reverts commit 0285c65381.
2018-06-14 14:11:52 -04: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
Max Weber
456025e20d runelite-client: Prevent recursion when chat notifier notifies to chat 2018-06-14 08:37:53 -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
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
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
Runelite auto updater
b4150a47f4 [maven-release-plugin] prepare for next development iteration 2018-06-14 10:53:27 +00:00
Runelite auto updater
0824f42af6 [maven-release-plugin] prepare release runelite-parent-1.4.3 2018-06-14 10:53:21 +00:00
Magic fTail
3f035b68b7 Add missing Ape toll elite map clue (#3777) 2018-06-14 08:57:42 +02: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
Adam
43c4c8255f http-service: re add version for spring-boot-maven-plugin
Plugin dependency versions are not imported from import scoped
dependencies in dependencyManagement
2018-06-13 20:44:40 -04:00
Jordan Atwood
fb9e785771 Fix Lovakengj sulphur mine hot-cold clue location
Fixes runelite/runelite#3713
2018-06-13 15:20:02 -07:00
Jordan Atwood
3a37eda5cf Fix Watson's house hot-cold clue location
Fixes runelite/runelite#3708
2018-06-13 15:20:02 -07:00
Magic fTail
3edd62811c Fix spelling of highlight in chat notifs (#3775) 2018-06-13 23:55:14 +02:00
Adam
750374d243 chat notifications: correct usage of matcher for highlight replacement 2018-06-13 14:08:33 -04:00
Adam
53dcd76c93 chat notifications: disable by default and default highlightOwnName to true 2018-06-13 13:23:01 -04:00
Adam
2f2f33afa9 chat notifications: strip tags from player names in notifications 2018-06-13 13:15:54 -04:00
Adam
0d70ae4144 chat notifications: fix highlightOwnName/notifyOwnName config options 2018-06-13 13:11:14 -04:00
Adam
01eeb31d20 chat notifications: load highlights on start 2018-06-13 13:09:35 -04:00
Max Weber
e8f6a13d13 runelite-client: Allow new screenmarkers to be created
Previously they would get their positions nulled during OverlayManager:add because it loads them from the config
2018-06-13 03:13:30 -06:00
Max Weber
233629f221 runelite-client: Use an ArrayList to store overlays
The TreeSet was removing most overlays (except the ones I tested with) because they
were equal to the comparator.
2018-06-13 03:13:30 -06: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
Adam
e94beb922b Merge pull request #3761 from Adam-/master+clearchat
chat commands: alow clearing words and chat with ctrl w/backspace
2018-06-12 20:05:15 -04:00
Adam
6a4a51988c Merge pull request #3294 from deathbeam/infobox-smaller
Add support for configurable infobox sizes
2018-06-12 20:04:10 -04:00
Adam
9d26d30d5c chat commands: alow clearing words and chat with ctrl w/backspace 2018-06-12 19:57:17 -04:00
Adam
430719cb87 item controller: expose bulk item prices 2018-06-12 19:16:09 -04: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
Adam
634fd91b9f runelite-api: add setVar for setting varclientstr 2018-06-12 18:39:35 -04: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
Adam
73422b2e50 Merge pull request #3140 from deathbeam/split-overlay-renderer-and-manager
Split overlay renderer and manager
2018-06-12 18:03:16 -04: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
Tim Granata
bde2d94770 Add Isafdar dense forest agility boxes north of Tyras Camp (#3731) 2018-06-12 15:47:08 +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
Adam
4792e61997 overlay renderer: bound overlays position to viewport at render time instead of at config load time
Fixes overlays being reset when temporarly off screen during loading. Fixes #3571
2018-06-11 21:27:37 -04:00
Adam
2d3766ea3e Merge pull request #2876 from deathbeam/improve-ground-items
Improve ground items
2018-06-11 19:04:52 -04: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