Commit Graph
100 Commits
Author SHA1 Message Date
Tomas Slusny 1cfb8be113 Merge pull request #1508 from Kamielvf/herbi-mlm-above-scene-layer
Set herbiboar and mlm overlays to draw ABOVE_SCENE
2018-04-14 20:40:39 +02:00
Tomas Slusny 81b8d2f664 Do not reuse HttpUrl.builder for building xp urls
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>
2018-04-13 16:04:58 +02:00
Tomas Slusny 5aba4ea448 Set default offset to center of tile for arrows
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>
2018-04-13 09:53:20 -04:00
Tomas Slusny 8615a0ad5d Add clue hint arrows for clues
Add hint arrows for clue locations, NPCs and GameObjects.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-13 09:53:20 -04:00
Tomas Slusny 7337b4e2cb Make condition for H.A.M. pickpockets lowercase
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>
2018-04-13 14:29:53 +02:00
Tomas Slusny 540408d963 Merge pull request #1416 from Abextm/script-fixes
Fix scripts broken in 4/12/18 update
2018-04-12 15:32:37 +02:00
Tomas Slusny 16f312fb9f Merge pull request #1417 from Abextm/fix-widget-mask-get
Rename setClickMask()I > getClickMask()I
2018-04-12 14:44:55 +02:00
Tomas Slusny 6eee8df3be Merge pull request #1410 from deathbeam/fix-chatbox-widgetids
Fix chatbox widget IDs due to new parent container
2018-04-12 14:24:52 +02:00
Tomas Slusny 8bb6c979f2 Merge pull request #1415 from deathbeam/fix-bank-widgetids
Fix bank widget IDs due to container changes
2018-04-12 14:24:39 +02:00
Tomas Slusny 4799969ed9 Fix bank widget IDs due to container changes
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>
2018-04-12 13:46:42 +02:00
Tomas Slusny b78d1681bf Fix chatbox widget IDs due to new parent container
Looks like that parent container was added for chatbox so all widget IDs
inside has been shuffled.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-12 13:02:33 +02:00
Tomas Slusny 4c00303eda Merge pull request #1406 from deathbeam/pyramid-plunder-remove
Remove pyramid plunder plugin
2018-04-12 12:33:08 +02:00
Tomas Slusny 902f2f4765 Remove pyramid plunder plugin
As the interface was changed in the
http://services.runescape.com/m=news/quality-of-life-improvements?oldschool=1
OSRS update, this plugin is no longer necessary.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-12 12:03:05 +02:00
Tomas Slusny 88152c4dcf Merge pull request #1358 from FatalWaffles/patch-4
Update worldpoint for map clue 2713
2018-04-11 10:10:57 +02:00
Tomas Slusny 7477cf7b38 Merge pull request #1361 from Kamielvf/rs-font-update
Update the runescape font to match current OSRS font
2018-04-11 10:02:38 +02:00
Tomas Slusny 0d078622e0 Apply small font option only to dynamic overlays
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>
2018-04-10 16:27:19 +02:00
Tomas Slusny eb82baa625 Merge pull request #1353 from runelite/revert-1351-reset-xp
Revert "Reset XP on log-in of another character / mode"
2018-04-10 13:21:05 +02:00
Tomas Slusny b488687b14 Revert "Reset XP on log-in of another character / mode" 2018-04-10 12:49:57 +02:00
Tomas Slusny 36451201fb Merge pull request #1351 from LeviSchuck/reset-xp
Reset XP on log-in of another character / mode
2018-04-10 11:35:46 +02:00
Tomas Slusny 3eeb571105 Add link to web XP tracker to XP panel
- 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>
2018-04-10 10:57:30 +02:00
Tomas Slusny e7615030ab Merge pull request #1303 from SoyChai/bank-tags-grammar
banktags: Adjust dialog text to match Withdraw-X dialog
2018-04-09 14:14:32 +02:00
Tomas Slusny 92953367b9 Merge pull request #1322 from SoyChai/attack-indicators-rename
Rename "Attack Indicators" plugin to "Attack Styles"
2018-04-09 14:09:38 +02:00
Tomas Slusny 0786c1d6c1 Swap pickpocket only on H.A.M. members
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>
2018-04-07 15:23:36 +02:00
Tomas Slusny fade2ef302 Merge pull request #1291 from FatalWaffles/patch-1
Fixed typo for lighthouse clue
2018-04-06 11:38:27 +02:00
Tomas Slusny 15a5a19103 Cache all ground items and then check their state
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>
2018-04-03 21:00:54 -04:00
Tomas Slusny a21fae7fbc Add raids fishing spot
Add missing fishing spot on Mount Qudamortem.

Closes: #848

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-02 11:44:21 +02:00
Tomas Slusny 2455b4f639 Add support for drawing player team's names
Add support for drawing player names and indicators for players in same
team as actual player.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 14:27:20 -04:00
Tomas Slusny 185aa3f45b Add clan changed hook
Add hook that will fire when user changed his clan.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 14:27:19 -04:00
Tomas Slusny d98fe4cf2d Properly invalidate clan ranks and names
- Invalidate clan ranks when player changes his clan
- Invalidate player names when game state changes

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 09:13:54 -04:00
Tomas Slusny d268f9a75c Add clan changed hook
Add hook that will fire when user changed his clan.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 09:13:54 -04:00
Tomas Slusny 01f2532b1c Add DMM name drawing opcodes to cache
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 09:13:54 -04:00
Tomas Slusny 52129598e5 Always remove tags from player.getName()
- Move removal of tags to RSPlayerMixin
- Remove tags from players names where needed

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 09:13:53 -04:00
Tomas Slusny 59ad536fa9 Merge clan chat and player indicators plugin
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>
2018-04-01 09:13:52 -04:00
Tomas Slusny 5044e40bdd Use built-in name rendering in player indicators
- 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>
2018-04-01 09:13:50 -04:00
Tomas Slusny 7c233a096c Add mappings and api for DMM player names
- 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>
2018-04-01 09:11:12 -04:00
Tomas Slusny 24e6b24200 Add support for drawing player team's names
Add support for drawing player names and indicators for players in same
team as actual player.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 09:11:11 -04:00
Tomas Slusny 4ddd3bc32f Add option for enabling small font
- 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>
2018-04-01 09:25:27 +02:00
Tomas Slusny 1e9fba6a52 Save text configuration value on enter
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>
2018-04-01 08:24:44 +02:00
Tomas Slusny a24b7b427e Merge pull request #1211 from deathbeam/fix-item-manager-init
Use provider for client in item manager
2018-04-01 07:14:51 +02:00
Tomas Slusny a730ae0d22 Use provider for client in item manager
To prevent ItemManager initializing with null client change reference to
the client to Provider<Client>.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-04-01 04:18:08 +02:00
Tomas Slusny 7164d4cc8c Merge pull request #1202 from rune3132/master
Added the turquoise slayer helmet to the slayer plugin
2018-04-01 01:57:36 +02:00
Tomas Slusny dff0ce007d Invalidate item manager cache on hopping and login
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>
2018-03-31 20:56:31 +02:00
Tomas Slusny 19bd1f5c67 Invalidate ground items cache properly
Instead of clearing ground items after game state change, just mark the
ground items dirty.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-31 20:54:29 +02:00
Tomas Slusny 9dfd671121 Reduce the amount of temporary objects in items
- 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>
2018-03-30 18:40:13 -04:00
Tomas Slusny 5272e2d9b6 Color the hidden items gray when in highlight mode
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>
2018-03-30 18:40:13 -04:00
Tomas Slusny 76d954db21 Improve ground items plugin
- 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>
2018-03-30 18:40:12 -04:00
Tomas Slusny 9a47c4db6d Move title toolbar buttons to sidebar in native
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>
2018-03-31 00:28:08 +02:00
Tomas Slusny e7897eccc2 Save overlay data after resetting position
Due to flaw in logic, the save event in mouseReleased was never
triggered when overlay position was reset. It is not possible anymore to
go through the logic again/not worth and so save the overlay data
immediately.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-30 04:01:02 +02:00
Tomas Slusny 37ac47417c Move viewport check below gamestate and CTP
Move viewport widget check below logged in check and click to play
screen check.

Fixes: #1190

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-30 03:33:34 +02:00
Tomas Slusny 15cd9164b4 Merge pull request #1066 from ShaunDreclin/black-demon-hp-fix
Fix capitalization of 'Black demon' in npc_health.json
2018-03-29 17:33:58 +02:00
Tomas Slusny da029b9276 Merge pull request #1175 from Abextm/log-game-crash
Log game crashes to the logger, not Stdout
2018-03-29 12:19:09 +02:00
Tomas Slusny fca60e32ec Merge pull request #1135 from JustANull/tray-icon-crash
Fix tray icon crash when clicked quickly on start
2018-03-28 14:02:46 +02:00
Tomas Slusny 347e42a5a3 Move loading of session before starting plugins
To remove the need for restarting plugins or reloading configurations
when plugins are loaded and then their confifguration changes, load
session configuration in advance.

Closes: #1121

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-27 12:52:18 +02:00
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
Tomas Slusny 03a0602d85 Expand panels based on click event not isSelected
- Remove changing of isSelected property on navigation button in order
to open it
- Change navigation button handling to always "click" the wrapped button
no matter if button is selected or not and let the special callback
handle it

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-24 21:24:32 +01:00
Tomas Slusny 87752d3982 Add formatNumber methods to StackFormatter
- Add formatNumber methods to StackFormatter that reuse the NumberFormat
instance
- Use new methods instead of using created NumberFormats on other places
- Use new formatter in NightmareZonePlugin

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-24 19:15:26 +01:00
Tomas Slusny 0c0f047f0c Add getCanvasOffset to clientUI, fix screenshots
Fix screenshot offset by exposing getCanvasOffset from ClientUI and
using it when taking screenshots with game frame enabled.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-24 12:08:25 +01: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
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
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
Tomas Slusny 10629bfa4a Add support for getting real canvas dimensions
In stretched mode the canvas dimensions are the stretched dimensions, so
add method that will return normal game dimensions in case stretched
mode is enabled and we are not in resizeable mode.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-22 21:03:45 -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
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
Tomas Slusny 9dcbe47b5d Title-case chat commands plugin name
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-21 10:35:47 +01:00
Tomas Slusny b55d60a0a4 Merge pull request #1023 from DevDennis/fix-prayer-reorder-reset
Fix prayer order resetting
2018-03-20 14:27:07 +01:00
Tomas Slusny d29e8dd93b Do not display stack in price tooltips
Displaying amount of items in stack is unnecessary because the
information is shown on item itself, so it is just making the tooltip
unnecessary big.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-18 19:55:59 +01:00
Tomas Slusny ec4bb17daa Fix tooltip modicon OutOfBounds
- Swap originalWidth with width

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-18 18:59:31 +01:00
Tomas Slusny c81d344e92 Click the navigation button on selecting in
Call click action when selection NavigationButton.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-16 01:01:54 +01:00
Tomas Slusny 0ab3ee5378 Fix ClientUI settings loading
- Register services to EventBus before the ConfigManager#load is called
- Send events on loading from file
- Do not invokeLater in invokeLater

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-15 23:47:33 +01:00
Tomas Slusny 1bd796bee5 Remove unused variables in Herbiboar plugin
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-15 17:22:13 -04:00
Tomas Slusny 5a7792d1ac Correctly name Herbiboar classes
- Rename Herbiboars to HerbiboarPlugin
- Rename HerbiboarsOverlay to HerbiboarOverlay
- Rename "Herbiboars" to "Herbiboar" plugin name

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-15 17:22:12 -04:00
Tomas Slusny a8daa0156e Fix Herbiboar plugin naming conventions
Methods should never start with uppercase letter.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-15 17:22:11 -04:00
Tomas Slusny ea1d610f1d Fix AgilityPlugin naming conventions
Methods should never start with uppercase letter.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-15 17:22:11 -04:00
Tomas Slusny 709ecd5987 Fix herbiboar plugin NPE on startup
Add null check for client.getMapRegions because during plugin startup
when game is loading, they are null.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-15 16:46:22 +01:00
Tomas Slusny ad95be84cf Merge pull request #960 from Toocanzs/spec-orb-improvement
Fix spec orb regen timing
2018-03-14 22:25:10 +01:00
Tomas Slusny 65619e998b Fix NPE from RSPlayer#getName
Add null check for getRsName, because when logging to game, sometimes it
is null, and throws NPE.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-14 18:09:58 +01:00
Tomas Slusny 380d4faba7 Fix NPEs on startup from PlayerIndicators
- Change the PlayerIndicators model to use injection
- Create new set from overlays when getOverlays is called

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-14 18:09:55 +01:00
Tomas Slusny 2f3dbb2678 Fix drawing of player names on minimap
Move drawing player names on minimap to separate overlay, so the minimap
names can be rendered over minimap in resizeable mode.

Fixes #940

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-14 10:09:31 +01:00
Tomas Slusny 258ff54848 Title-case and remove "plugin" from ME swapper
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 18:08:35 +01:00
Tomas Slusny 16dae0f094 Lower default width of the PanelComponent
Lower default width of PanelComponent to same as the XP tracker, so 129.
Also, change fishing and woodcutting overlays to draw shorter text to
fit in new overlay panel size.
Update opponent info as well because it is using own implementation of
panel component.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 17:38:14 +01:00
Tomas Slusny 4e46a7daf4 Use backgroundComponent for drawing border of map
- Add new property fill to background component, if set to false,
background is not drawn, only borders
- Use backgroundComponent for drawing instance map borders

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 17:38:14 +01:00
Tomas Slusny cc00631987 Reposition instance map correctly in resizeable
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 17:38:14 +01:00
Tomas Slusny 3bbc18299e Set correct offsets to overlays, smaller panels
- Set correct offsets for overlays based on resizable or fixed mode
- Change PanelComponent inside padding to be slighly smaller

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 17:38:14 +01:00
Tomas Slusny 981855a14d Consistent behaviour between ClientUI and InfoPane
- Move method for creation of all buttons from NavigationButton to swing
util
- Correctly update InfoPanel when plugin is started or needs title bar
refresh
- Correctly update ClientUI title bar when custom one is visible

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:36:15 +01:00
Tomas Slusny d1cbf181e3 Change panel supplier to just getter for panel
As none of the plugins are creating the panels on demand anymore,
supplier for panel is not needed.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:36:15 +01:00
Tomas Slusny 9a54c75113 Add support for popups to navigation button
- Add support for popup map to navigation button
- Re-add popup to ScreenshotPlugin

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:36:15 +01:00
Tomas Slusny f1d5c4ef72 Add Discord button through DiscordPlugin
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:36:15 +01:00
Tomas Slusny 059f92ad6c Make plugins work with new title toolbar
- Change info panel to support new hooks
- Change plugins to use NavigationButton for adding buttons to
titleToolbar

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:36:15 +01:00
Tomas Slusny 381b111b4a Remove the need for custom TitleToolbar component
- Extract title toolbar layout to separate component
- Create new events for adding and removing title toolbar buttons
- Create TitleToolbar through Guice

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:34:41 +01:00
Tomas Slusny 716c052247 Make plugins work with the new PluginToolbar
- Use updated construction for NavigationButton
- Replace ClientUI injections with PluginToolbar injections

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:34:41 +01:00