If panel component child exceeds the preferred size, correctly send this
new max size to other children, so they can resize/reposition themselves
correctly.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
To prevent affecting other clue types, reset the preferred size of the
clue scroll panel component to default value each render cycle, as the
clues can modify it.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Create new interface for clues that will return multiple locations,
have update and reset methods for clues with undetermined location
- Implement new LocationsClueScroll and LocationClueScroll to
HotColdClue to add support for displaying all the points on world map
- Handle the LocationsClueScroll to add each WorldPoint to the world map
when found
- Add new removeIf method to the WorldMapPointsManager
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Instead of having giant chunk of logic related to only Hot/Cold clues,
move this logic inside the HotColdClue class.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Create the buffered image only once and not every time
ClueScrollWorldMapPoint is created
- Pass the world point directly to clue world map point constructor and
do it only once
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Correctly check for world map view widget and not for the option
widget
- Name option widget properly
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Use panel component with custom paddings for opponent info
- For opponent/opponents opponent names use TitleComponent that is
horizontally centered
- Use new progress bar with full display mode when needed
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add minimum, maximum and value properties to ProgressBarComponent
- Add label display mode that will differentiate between percentage and
current/maximum display modes
- Properly center the text in progress bar
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Properly use/not use paddings
- Remove title property and extract it to separate component
- Remove position property, let user handle the positioning
- Extract common constants to ComponentConstants
- Use lombok.Setter on classes instead of fields
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Name the player indicators options properly
- Extend the clan ranks icon setting to support also overhead names
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Move all PanelComponents declarations to be persisted
- Use new LineComponent and ImageComponent classes and add them to
PanelComponent
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Remove ImagePanelComponent
- Add LayoutableRenderableEntity that is RenderableEntity with preferred
size
- Add support to PanelComponent for rendering list of
LayoutableRenderableEntity
- Add support for aligning PanelComponent horizontally or vertically
- Add ImageComponent to be used in PanelComponent
- Make other components support new design
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
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>