Due to some race condition, we can't really rely on applet's minimum
size, so add verification for minimum size when size is changed.
Fixes: #2261
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Change the notification mode selection to be dropdown
- Add chat message notification mode that will send game message on
notificiation
- Add screen flash notification that will flash screen for few ticks
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add option to only recolor right click menu for ground items (e.g
possibility to switch between Overlay, Right-click menu or Both)
- Merge highlight of option and item name in right click menu to 1
config option where you can choose between Option, Item name and Both
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Save last item ID on either map clue or when reading regular clue
- If this item is removed from inventory reset clue
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Instead of changing the frame width, just revalidate the width to match
minumum size in case the size is smaller than it
- On restoration from maximize, revalidate frame size to not end up in
having small window with opened sidebar
Closes#1795 and closes#1300
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Instead of writing rotation and inverse rotation methods twice, simply
pass inversed rotation to rotate method
- Do not create canvasTilePoly 2 times
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
After changes to artifacts names, fix shading of runelite-client to make
it keep everything that is required.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
To force requirement of having location for every object ID, make object
clue scrolls always extend location clue scrolls.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Instead of using object world locations and using query to find
objects, if object clue also has location, just find all objects on tile
on that clue's location and check if ID is matching
- Fix varrock west bank cryptic clue (what was used also during testing)
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- When there is 0 deposits left/sack is completely full color the entire
panel red for strong visual indicator to stop mining immediately
- When there is 1 deposit left, color the line with deposit red to
indicate that you are close to sack being full and after this inventory
you should bank
Closes#1702
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add new LocationClueScroll interface that will mark location-based
clues
- Move setting of the hint arrows to ClueScrollPlugin
- Properly prioritize hint arrows (always try location first, but then
override with NPC/object locations)
Closes#1609
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
To correctly layour motherlode overlay, change it's layer from
ABOVE_WIDGETS to BELOW_WIDGETS (what should be the correct layer for it
anyway).
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- When user does not have any more clues left in inventory, hide clue
scroll interface.
- Properly reset clue when needed
- Change scheduled method to GameTick event
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Remove "cast bloom" menu entry swapping from menu
entry swapper plugin as it can be done with shift-click
customization
- Make teleport swapping off by default as usually the teleport and wear
option is not wanted to be swapped
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Due to HttpUrl.Builder being mutable, this causes duplicate URL path
segments when tracking more than 1 skill at a time.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Set default offset of the hint arrow to center of tile like type 2 of
the hint arrow does by default in runescape-client.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
As target is lowercased, make the condition lowercased too so it can be
properly matched.
Fixes: #1478
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Fix bank title bar, item count and item container widget ids due to
changes in widget IDs (possibly caused by new container).
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Currently the menu entry swapper swaps only check and reset on box traps
what is not that useful without also swapping dismantle and reset.
See also: #1085
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Instead of applying this configuration option to both layouted overlays
that are supposed to follow XP tracker layout 1 to 1, apply this setting
only for dynamic overlays and tooltsip (e.g mouse highlighting, ground
items, player names).
Closes: #1288
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add "overall" link to the top of the XP panel that will link logged in
user to the website XP tracker showing his overall gains in 1 week
- Add right click menu to open XP tracker for each skill, same rules as
in "overall"
- Prevent link browser to open empty links
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This was oversight and swaps pickpocket options when black-jacking what
is something that other clients don't do.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Cache all ground items on item layer changed events and determine if
they should be shown or not in the overlay. Also, update their price in
the overlay to be not dependant on the initial state (having price
already cached or not).
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Invalidate clan ranks when player changes his clan
- Invalidate player names when game state changes
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
As the only purpose of clan chat was to add clan chat icons for players
in CC, this functionality can be done too from Player Indicators plugin.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Change player indicators to use built-in player name rendering
- Add support for drawing clan member rank icons thanks to built-in
player name rendering
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add mappings for DMM player names and methods using them
- Create class with DMM player name rendering masks
- Create mapping for cleanName from player
- Create mapping for setting name to player
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add option for toggling between small and large font for in-game
overlays
- Normalize the font size usage around overlays
Closes: #1214
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
To make the behaviour consistent with the spinners, save configuration
value of text field when user presses enter.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
To prevent ItemManager initializing with null client change reference to
the client to Provider<Client>.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Invalidate item manager composition cache when person is hopping or goes
to login screen to prevent issues with changing from p2p to f2p worlds.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Reduce the amount of GroundItem objects created by mutating objects
instead of creating merged copies
- Reduce the amount of stream transformations required by using
LinkedHashMap and sorting the ground items before collection
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Color hidden ground items gray when in item highlight mode to show
different between non-hidden and hidden items.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Reduce amout of iterations per frame by pre-collecting the ground
items on game tick
- Collect ground items in ground item plugins and pre-compute some
easy-to-get values
- Replace the looping over all tiles with looping over collected ground
items
- Change GroundItemOverlay logic to support single list of items instead
of multi-dimensional array
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
When native window decorations are enabled (e.g when custom window
chrome is disabled), to reduce code complexity, but to maintain current
usability (e.g prevent adding new UI elements in order to position the
icons somewhere) move the title toolbar icons to sidebar.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>