Commit Graph

7221 Commits

Author SHA1 Message Date
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
Dennis de V
9aac22477b Fix ground items nullpointer exception 2018-03-12 08:50:42 -04:00
Adam
1121be0628 Merge pull request #933 from nvisser/xptracker-roundactions
Round actions remaining up
2018-03-12 08:30:15 -04:00
Adam
1856a5f1a1 sessions: decrease session ping frequency 2018-03-12 08:12:10 -04: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
Tomas Slusny
445c5baf99 Remove need to extend JToolBar in PluginToolbar
- Create PluginToolbar through Guice
- Create separate component class for toolbar layout
- Create custom navigation button component to not depend on swing
- Create new events that are fired on new toolbar button addition and
removal

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:34:41 +01:00
Tomas Slusny
9bcc646d88 Make plugins work with new ClientUI
- Change LinkBrowser to not use ClientUI as parent for message box (not
required at all) and change it from Guice service to static utility
class
- Set screenshot plugin offsets statically without recalculating them
based on swing component

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:34:41 +01:00
Tomas Slusny
31048d2632 Remove the need to extend JFrame in ClientUI
- Make ClientUI wrap JFrame inside
- Do not make RuneLite class depend on Swing API at all
- Create ClientUI through Guice
- Simplify initialization and showing of UI

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:34:41 +01:00
Tomas Slusny
571f5f50c6 Extract utlity methods to SwingUtil class
- Extract common utlity methods from ClientUI to SwingUtil utlity class.
- Make OSXUtil accept JFrame instead of ClientUI

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:34:41 +01:00
Adam
6f5a8b75ea dev tools overlay: transform npcs if applicable 2018-03-11 19:20:03 -04:00
Adam
d3e8e5e51a Merge pull request #931 from Joshua-F/feat/removeTags
Add a util method for removing tags
2018-03-11 12:16:19 -04:00
Adam
46ef2c8814 Merge pull request #927 from Blizik/hideminimap
Option to hide minimap
2018-03-11 11:54:28 -04:00
Joshua Filby
85ac977324 runelite-client: Update plugins to use Text.removeTags 2018-03-11 11:53:55 -04:00
Joshua Filby
e7f6793722 runelite-client: Add Text#removeTags method 2018-03-11 11:53:48 -04:00
Blizik
9848b58986 Add ability to toggle minimap display 2018-03-11 11:42:50 -04:00
Dennis
8f7db67984 ground items plugin: add option to highlight menu 2018-03-11 11:37:43 -04:00
Adam
398441616a Merge pull request #627 from XrioBtw/patch-12
Add Menu Entry Swapper plugin
2018-03-11 11:09:16 -04:00
XrioBtw
0ab5db6c2e Add menu entry swapper plugin 2018-03-11 10:58:38 -04:00
nvisser
2e318dfe58 Round actions remaining up 2018-03-11 15:40:43 +01:00
Infinitay
297cc7c6f9 Add confirmation dialog to runelite logout button 2018-03-10 21:53:07 -05:00
Adam
24abe9b5d1 Merge pull request #915 from deathbeam/default-world-support-both-formats
Allow specifying default world in [0-9]{2} format
2018-03-10 10:26:46 -05:00
Adam
b910d81dcc Merge pull request #917 from Toocanzs/opponent-info
Continue to update opponent info while on screen
2018-03-10 10:21:42 -05:00
nvisser
fb87dba205 Add time till next level to xptracker 2018-03-10 15:59:43 +01:00
Adam
652dd91211 opponent info overlay: use last opponent if no opponent is targeted 2018-03-10 09:57:34 -05:00
Adam
01c6064d24 Merge pull request #922 from Abextm/fix-hunter
hunter plugin: Don't iterate over all tiles
2018-03-10 09:34:31 -05:00
Max Weber
c7deb854db Add regen meter plugin 2018-03-10 02:22:20 -07:00
Max Weber
2a579a3ebf hunter plugin: Don't iterate over all tiles 2018-03-09 21:11:19 -07:00
Max Weber
b75dddca28 Update almost everything to the new API 2018-03-09 20:59:05 -07:00
Max Weber
6f9b855520 Rename Point3D to WorldPoint 2018-03-09 15:53:11 -07:00
Adam
5e887ed11c Merge pull request #507 from sethtroll/fixupxptracker
Update Xp tracker UI to make it smaller
2018-03-09 16:29:00 -05:00
Seth
d84627efd6 xp tracker: update xp tracker UI
change the xp tracker ui to make it smaller. Can expand skills to display more information.
2018-03-09 21:55:21 +01:00
Adam
eaed8892d4 Merge pull request #891 from skimboarder/develop
Resolve Issue #860 - Warned attack modes not properly hiding
2018-03-09 15:38:41 -05:00
Seth
634f872516 xp tracker: add format suffix to reduce string size 2018-03-09 21:19:39 +01:00
Connor
ce7bd9c88d Resolving Issue #860 - Warned Attack Styles not properly hiding. Adding automated test coverage for AttackIndicatorPlugin. 2018-03-09 15:08:59 -05:00
Adam
8df7843eef instance map: fix various races between game and event threads 2018-03-09 14:54:27 -05:00
Tomas Slusny
aabd37854d Merge pull request #618 from sethtroll/removeviewportcontains
Remove viewport contains from cannon/hunter plugin
2018-03-09 17:59:38 +01:00
Tomas Slusny
3e4f8ba99a Allow specifying default world in [0-9]{2} format
Automatically append 300 to every world that is lower than 300 to
support both f.e. 22 and 322 formats for specifying the world.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-09 15:09:01 +01:00
Adam
23203343af Merge pull request #638 from Abextm/widget-listeners
Move widget inspector into it's own window
2018-03-08 22:36:42 -05:00
Adam
38467a3859 Merge pull request #876 from deathbeam/minimap-names
Minimap names
2018-03-08 22:27:53 -05:00
Adam
3fd3320218 Merge pull request #624 from Abextm/imp-box-jewellery
Add Imp-in-a-Box to the jewellery count plugin
2018-03-08 21:46:17 -05:00
Max Weber
1211693096 jewellerycount: add imp-in-a-box 2018-03-08 19:43:35 -07:00