- 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 #2874Closes#1771 and closes#1016
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
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>
- 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>
- 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>
- 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>
- 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>
- 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>
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>
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>
- 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>
- 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>
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>
- 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>
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>
- 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>
To create fully unique identifier, store markers based on epoch millis
instead of using their name, to allow renaming.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
For better readability of text configurations, change TextField to
TextArea that can span multiple lines.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This serves as better default for new plugin panels, as it is not
forcing same heihgt for all elements, what is undesired behaviour in
most of the cases. The current implementations of plugin panels remains
unchanged.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Add support for toggle in "RuneLite" settings to go into fullscreen
mode, that will make RuneLite window fully fullscreen without any weird
hacks.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add basic support for preferredSize to OverlayRenderer and Overlays
- Add methods for saving and deleting overlays to OverlayRenderer to
take advantage of this new variable
- Add support for saving multiple types of same overlay (support for
keys to overlays)
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Add new fields for start and end goal XP to xp tracker state
- Use Varps for determining start and end goal
Closes: #1168
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Due to complains in PKing community, nerf this feature to work exactly
like its counterpart in other clients and make it work only when SHIFT
key is pressed.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Merge highlightedNpcs and npc tags to one list
- Update highlightedNpcs with npc tags on spawn/despawn and menu entry
click
- Add brackets to single line ifs, remove redundant code
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
To not change low detail flag before sounds are loaded, delay it to be
set only when arriving at login screen to not end up with corrupted
sound data.
Fixes: #696
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
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>