Commit Graph
1291 Commits
Author SHA1 Message Date
Tomas Slusny 2214e7d906 Add null-check for Client to MenuManager
Add null-checks for Client, what can be null when in Vanilla to
MenuManager (e.g HiscorePlugin is calling it when Client can be null
when it is running).

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-25 17:11:00 +02:00
Adam 37d0955d74 Merge pull request #1040 from sethtroll/addinfoboxpriority
Info Boxes: Group boxes by plugin, sort by priority
2018-03-24 14:19:52 -04:00
Seth 0a622a9692 info boxes: sort boxes by priority
add high/med/low priority options and sort boxes by priority
2018-03-24 14:08:56 -04:00
Seth 06abbe6956 info boxes: associate plugins to infoboxes
associate plugins to infoboxes and allow the infobox manager to sort boxes by plugin descriptor name to stop all infoboxes mixing together
2018-03-24 14:08:54 -04:00
Adam 3d8212187b Merge pull request #1096 from Kamielvf/grounditems-mouseconsume-fix
Ground items: Only consume mouse clicks when a checkbox has been clicked
2018-03-24 12:28:22 -04:00
Adam cc036b9d6f feed plugin: make scheduled method public
The scheduler only looks at annotations on public methods
2018-03-24 11:59:03 -04:00
Kamiel cb6bdf0fca Ground items: Only consume mouse clicks when a checkbox has been clicked 2018-03-24 15:18:55 +01:00
Adam 295bfa0c07 Merge pull request #1087 from Abextm/stats-cleanup
itemstats: use EnergyStat instead of anonymous stat
2018-03-24 09:25:50 -04:00
Adam 4da2c83041 Merge pull request #1095 from Kamielvf/ranging-potion-fix
Fix ranging potion showing invalid boost value
2018-03-24 09:18:11 -04:00
Max Weber 7f64f93bb0 menumanager: Actually remove menu options 2018-03-24 09:16:21 -04:00
Kamiel f6de72f5c8 Fix ranging potion showing invalid boost value 2018-03-24 13:31:50 +01:00
Max Weber 1e1f6f9174 itemstats: use EnergyStat instead of anonymous stat 2018-03-23 20:22:56 -06:00
Adam fa71b3d336 Merge pull request #472 from Unmoon/tithe-farm-plugin
Add Tithe Farm plugin
2018-03-23 15:38:41 -04:00
Unmoon fc0f7692d1 Add Tithe Farm plugin 2018-03-23 15:27:53 -04:00
Adam 6131fd6f1e Merge pull request #1048 from deathbeam/cave-horrors-cannon
Add Cave Horror cannon spot
2018-03-23 15:15:13 -04:00
Adam ed55bf06c8 Merge pull request #1057 from deathbeam/lizardman-cannon-fix
Fix Lizardmen cannon spot plane
2018-03-23 15:14:53 -04:00
Adam 1ff55fafab Merge pull request #1081 from deathbeam/overlay-renderer-null-list
Add null-check for overlays in OverlayRenderer
2018-03-23 15:14:15 -04:00
Adam c25520e8a2 Merge pull request #959 from deathbeam/tooltip-right
Move tooltip to the right of the mouse
2018-03-23 15:13:06 -04:00
Tomas Slusny 40086488d5 Add null-check for overlays in OverlayRenderer
Sometimes right after login overlays can be null instead of empty list.
Add null check to prevent ending on NPE.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-23 19:18:42 +01:00
Adam 6e5751b71a Merge pull request #1006 from Infinitay/kingdom-of-miscellania
Added Kingdom of Miscellania plugin
2018-03-23 13:44:22 -04:00
Tomas Slusny f15c550d83 Move tooltip to the right-bottom of the mouse
- Move tooltip default position to right-bottom of mouse cursor
- Automatically adjust cursor position based on space around the tooltip
- Remove the ability from Tooltip manager to have other tooltips other
than mouse tooltips (for custom-positioned tooltips use tooltip
component directly)

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-23 18:28:10 +01:00
Infinitay ab7dbf4fa6 Added Kingdom of Miscellania plugin 2018-03-23 13:26:01 -04:00
Adam 0f19d53dcc Merge pull request #1077 from deathbeam/instance-map-fixed
Instance map improvements + moving
2018-03-23 13:22:26 -04:00
Adam 6f959e3f1f Merge pull request #1071 from deathbeam/movable-overlays-improvements
Movable overlays improvements
2018-03-23 13:21:44 -04:00
Tomas Slusny f2e1ab5bfe Remove not needed parent point and minimap orb
- Remove not needed parent point parameter in RenderableEntity, it's
usage has been replaced with getBounds().getLocation()
- Remove unused class minimap orb

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-23 17:50:43 +01:00
Tomas Slusny a05650cd31 Disable overlay dragging mode on focus lost
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-23 17:36:42 +01:00
Tomas Slusny adf4c5bc80 Make unsetConfiguration non-blocking
Send saving of the unsetConfiguration call to client to different thread
using ExecutorService to not block when it is called.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-23 17:17:51 +01:00
Tomas Slusny 1554fe01e7 Instance map improvements + moving
- Change instance map to resize on "fixed" layer so it can be layouted
- Scroll minimap only when mouse is in the minimap bounds

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-23 15:45:48 +01:00
Tomas Slusny 143762f4a6 Change multiple overlay lists to map
Change multiple overlay list definitions to use synchronized map with
layers and list of overlays to simplify the implementation a bit.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-23 15:19:08 +01:00
Tomas Slusny c3eddf02a8 Improve caching of game-related variables
- Add caching for chatbox bounds
- Use cache variables when calculating OverlayBounds
- Cache everything at once when needed in the caching method without
early returns

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-23 13:32:09 +01:00
Tomas Slusny 4a8af3d049 Create translated copy of OverlayBounds
- Add new method to OverlayBounds for translating them that will return
translated copy of the bounds
- Use this new method in OverlayRenderer to prevent mutations of
OverlayBounds, what are not desired
- Use stored overlay bounds in mouse events and translate them by making
new copy

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-23 12:06:46 +01:00
Tomas Slusny 553fee70c4 Calculate overlay bounds also for dynamic overlays
In order to use their's bounds later, calculate the bounds for dynamic
and tooltip overlays too.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-23 11:59:01 +01:00
Max Weber b0435f11c3 configmanager: synchronize disk access 2018-03-23 01:39:48 -06:00
Adam add6db5d7e Add movable overlay support
This overhauls most of the overlay renderer to do so. There are 4 (or 5) "snap corners" that let overlays change their position, or you can set a custom location which is at a set x/y.

Calculate which layer overlays are on up front and build separate lists for each layer. The fixed-point under-widget overlays are moved to above-widget so that they work when moved above the interfaces.
2018-03-22 21:10:35 -04:00
Adam 91c3925867 config manager: add get and set configuration methods for objects 2018-03-22 21:06:13 -04:00
Tomas Slusny 0c5cde0894 Add support for points to ConfigManager
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-22 21:02:21 -04:00
Tomas Slusny bfc600db30 Fix Lizardmen cannon spot plane
The plane is 0 not 1.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-22 19:46:11 +01:00
Adam 81553b61c4 config manager: check for invalid keynames in loadFromFile
Copy properties before advertising config changed events to prevent ConcurrentModificationException
2018-03-22 12:54:44 -04:00
Adam d049ad7bfb Merge pull request #1044 from SoyChai/master
Expand list of skill abbreviations for the !Lvl command
2018-03-22 10:14:25 -04:00
SoyChai 2ca2ac0b30 Expand list of skill abbreviations for the !Lvl command 2018-03-22 09:59:20 -04:00
Adam 5bbea1fdc9 Merge pull request #1036 from Joshua-F/refactor/rename-vars
Rename widgetSettings and settings
2018-03-22 08:49:16 -04:00
Adam 1b219266c4 Merge pull request #1035 from ShaunDreclin/menuentryswapper-silver-sickle
Add Silver sickle(b) to menu entry swapper plugin.
2018-03-22 08:46:04 -04:00
Adam 989aa89413 Merge pull request #1026 from Abextm/holy-wrench
itemstats: Support holy wrench effect
2018-03-22 08:43:57 -04:00
Runelite auto updater 6ad6edd7cc [maven-release-plugin] prepare for next development iteration 2018-03-22 12:06:36 +00:00
Runelite auto updater 0e2e5235df [maven-release-plugin] prepare release runelite-parent-1.3.1 2018-03-22 12:06:32 +00:00
Joshua Filby 8ee3de283c refactor: remove unnecessary Client#getSettings(), use Client#getVarps()
These two methods would return the same values for a majority (if not all) of the time. The backing
arrays for both of these are synchronized when the server sends the packet to set a varp value.
2018-03-21 17:36:31 -05:00
Joshua Filby abb1996c4e refactor: rename widgetSettings to clientVarps 2018-03-21 17:29:28 -05:00
Tomas Slusny 45c224cb30 Add Cave Horror cannon spot
Add Cave Horror cannon spot to the Cannon Plugin.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-21 19:31:22 +01:00
Tomas Slusny ca2034f94c Set description to Agility plugin
Remove "Placeholder" description and replace it with real description.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-21 16:27:36 +01:00
Tomas Slusny 03aebec1a9 Rename NPC Highlightign to NPC indicators
For consistent plugin naming this plugin should be named NPC Indicators
to follow the naming of Tile Indicators and Player Indicators.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-21 16:27:35 +01:00