Commit Graph

41 Commits

Author SHA1 Message Date
Owain van Brakel
dfaf72eb35 Merge remote-tracking branch 'runelite/master' into ready-set-action
Conflicts:
	.gitignore
	cache-client/pom.xml
	cache-updater/pom.xml
	cache/pom.xml
	cache/src/main/java/net/runelite/cache/definitions/loaders/ParamLoader.java
	deobfuscator/src/main/java/net/runelite/deob/clientver/ClientVersion.java
	http-api/pom.xml
	http-service/pom.xml
	http-service/src/test/java/net/runelite/http/service/hiscore/HiscoreServiceTest.java
	pom.xml
	protocol-api/pom.xml
	protocol/pom.xml
	runelite-api/pom.xml
	runelite-api/src/main/java/net/runelite/api/Client.java
	runelite-client/pom.xml
	runelite-client/src/main/java/net/runelite/client/RuneLite.java
	runelite-client/src/main/java/net/runelite/client/RuneLiteProperties.java
	runelite-client/src/main/java/net/runelite/client/config/RuneLiteConfig.java
	runelite-client/src/main/java/net/runelite/client/plugins/PluginManager.java
	runelite-client/src/main/java/net/runelite/client/plugins/camera/CameraConfig.java
	runelite-client/src/main/java/net/runelite/client/plugins/camera/CameraPlugin.java
	runelite-client/src/main/java/net/runelite/client/plugins/cannon/CannonConfig.java
	runelite-client/src/main/java/net/runelite/client/plugins/cannon/CannonPlugin.java
	runelite-client/src/main/java/net/runelite/client/plugins/config/ConfigPanel.java
	runelite-client/src/main/java/net/runelite/client/plugins/config/ConfigPlugin.java
	runelite-client/src/main/java/net/runelite/client/plugins/config/HotkeyButton.java
	runelite-client/src/main/java/net/runelite/client/plugins/config/PluginListItem.java
	runelite-client/src/main/java/net/runelite/client/plugins/examine/ExaminePlugin.java
	runelite-client/src/main/java/net/runelite/client/plugins/friendnotes/FriendNotesPlugin.java
	runelite-client/src/main/java/net/runelite/client/plugins/hiscore/HiscorePanel.java
	runelite-client/src/main/java/net/runelite/client/plugins/hiscore/HiscorePlugin.java
	runelite-client/src/main/java/net/runelite/client/plugins/kourendlibrary/KourendLibraryPlugin.java
	runelite-client/src/main/java/net/runelite/client/plugins/loottracker/LootTrackerPlugin.java
	runelite-client/src/main/java/net/runelite/client/plugins/menuentryswapper/MenuEntrySwapperConfig.java
	runelite-client/src/main/java/net/runelite/client/plugins/menuentryswapper/MenuEntrySwapperPlugin.java
	runelite-client/src/main/java/net/runelite/client/plugins/musicindicator/MusicIndicatorPlugin.java
	runelite-client/src/main/java/net/runelite/client/plugins/raids/RaidsPlugin.java
	runelite-client/src/main/java/net/runelite/client/plugins/slayer/Task.java
	runelite-client/src/main/java/net/runelite/client/plugins/woodcutting/Tree.java
	runelite-client/src/main/java/net/runelite/client/plugins/woodcutting/WoodcuttingPlugin.java
	runelite-client/src/main/java/net/runelite/client/plugins/worldhopper/WorldTableHeader.java
	runelite-client/src/main/java/net/runelite/client/plugins/xptracker/XpTrackerPlugin.java
	runelite-client/src/main/java/net/runelite/client/rs/ClientLoader.java
	runelite-client/src/main/java/net/runelite/client/rs/CountingInputStream.java
	runelite-client/src/main/java/net/runelite/client/ui/FatalErrorDialog.java
	runelite-client/src/main/java/net/runelite/client/ui/SplashScreen.java
	runelite-client/src/main/java/net/runelite/client/util/CountingInputStream.java
	runelite-client/src/main/java/net/runelite/client/util/ImageUtil.java
	runelite-client/src/main/java/net/runelite/client/util/SwingUtil.java
	runelite-client/src/main/resources/net/runelite/client/runelite.properties
	runelite-client/src/main/resources/npc_health.json
	runelite-client/src/test/java/net/runelite/client/plugins/hiscore/HiscorePanelTest.java
	runelite-client/src/test/java/net/runelite/client/plugins/raids/RaidsPluginTest.java
	runelite-script-assembler-plugin/pom.xml
2020-01-09 19:59:46 +01:00
Max Weber
4148b5e4a8 config: Refactor config panel into separate panels for each logical view 2019-12-16 13:30:07 -07:00
Owain van Brakel
18021f6bed gradle: Refactor and update to gradle 6 2019-11-10 01:42:11 +01:00
ST0NEWALL
027a369084 client: Rebrand (#1688)
client: Rebrand
2019-10-04 22:49:34 -04:00
Owain van Brakel
71ed8abb1f Revert "project: Update checkstyle (#1710)"
This reverts commit 97df39c5d8.
2019-10-04 03:48:51 +02:00
Owain van Brakel
6e61179da8 Merge remote-tracking branch 'upstream/master' into openosrs_branding 2019-10-04 00:07:50 +02:00
Owain van Brakel
97df39c5d8 project: Update checkstyle (#1710) 2019-10-03 16:11:24 -04:00
Owain van Brakel
55839f684c client: Rebase further 2019-10-03 06:00:19 +02:00
f0rmatme
00f6cbf39e OPENOSRS branding 2019-09-29 17:29:53 -07:00
Owain van Brakel
8db4f83fa3 client: update splashscreen 2019-08-11 05:13:14 +02:00
sdburns1998
33a6824ca6 util: Access levels 2019-07-08 17:23:31 +02:00
James Munson
06224bd42e TODO : SUPPORT CUSTOM FONT ON UI? 2019-07-01 16:26:22 -07:00
zeruth
eafb024f16 Revert to old layout for refactor 2019-06-07 23:54:32 -04:00
zeruth
882be3cb71 Merges Injector
Welcome to the new world boys.
2019-06-06 20:47:41 -04:00
James
2a7625f240 Adds splash screen (#29)
* clock manager: wrap panel to run on swing thread

* Add splash screen to Runelite

Although RuneLite is still fast at loading, it's more user friendly
for at least something to pop up before the client.
There is also an option (-no-splash) to disable the splash screen.
This uses psikoi's design.

* splash screen/client ui: don't set up theme twice

Setting up the look and feel of RuneLite shouldn't happen twice, so
check to see if it has already been set up before setting up the look
and feel.
2019-04-21 07:41:48 +01:00
Tomas Slusny
5b91d29186 Revert "Move close handling to windowClosed event"
This reverts commit b893e97ccf.
2019-01-22 08:00:22 +01:00
Tomas Slusny
b893e97ccf Move close handling to windowClosed event
This callback is called more reliably than windowClosing when killing
window from outside.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-01-18 21:20:14 +01:00
Max Weber
f149b554c7 runelite-client: Don't check if customChrome is enabled after startup
This value is locked in at startup, the config value is irrelevant to what should actually be happening
2018-11-06 00:38:29 -07:00
Tomas Slusny
7eb09d45af Cleanup SwingUtil
- Remove unused code
- Remove hardcoded size for icons

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-11-03 18:51:48 +01:00
Jordan Atwood
06cd5cd7d0 Add image utility class 2018-08-04 01:10:42 -07:00
Jordan Atwood
f0799ffe79 SwingUtil: Fix grayscaleOffset to not modify alpha
With previous code, grayscaleOffset was modifying all image components
(including alpha), instead of only the color components. This commit
fixes that by using a `RescaleOp` instead, which allows for distinct
modifiers per component.
2018-08-04 01:10:40 -07:00
Jordan Atwood
29777c0b1f Add color utility class
In addition to creating `colorTag`, `prependColorTag`, and
`wrapWithColorTag` functions, this commit moves
`SwingUtil::toHexColor` and `SwingUtil::colorLerp` to this new class.
2018-07-26 19:21:29 -07:00
Adam
f411e94e2c prayer plugin: add dose indicator 2018-06-17 18:09:10 -04:00
Ruben
0eb533a14a Add mouse hover changes to various ui elements
This commit adds the following with the main aim of improving the overall ui experience:
InfoPanel: changes the panels to act more like buttons, they highlight on hover and the cursor changes to a pointer (since they are hyperlinks).
NewsFeedPanel: changes the cursor to a pointer on hover to indicate a hyperlink
HighscorePanel: changes the buttons below the search bar to highlight on hover to help indicate a clickable element.
FarmingPanel: same as above expect for the patch buttons
GE Panel: same as above but for the offer and search button
ConfigPanel: Changes the cog color on hover to help indicate clickable element.
2018-05-22 20:25:58 -04:00
Ruben Amendoeira
90845534dd Moved the new text selection colors globally
Fixes #3042

I had new selections colors for the ge/hiscores/config search bars
but forgot there were other text elements in the configs, so
I moved these new colors to UI defaults (SwingUtil)

Also removed some unused code that was setting styles to a combobox that
never gets displayed.
2018-05-22 21:45:02 +01:00
Tomas Slusny
7831aceb10 Merge pull request #2964 from psikoi/obsidian-redesign-patch
SetOpaque UI performance fix
2018-05-21 00:11:33 +02:00
Ruben Amendoeira
6c18bcb6bf SetOpaque performance fix
Apparently, the setOpaque method on JPanels was causing some performance
issues on the client, the original reason I had these was so that the
base panel would have a color defined, and every container or wrapper
panel on top would just be transparent.

To fix this I have set a default JPanel background color and replaced
calls to setOpaque with calls to
setBackground with the appropriate colors.
2018-05-20 14:36:12 +01:00
Ruben
53f7deae85 Restore Plugin Toolbar Button Tooltips (#2833)
* Always set button tooltips
* Completely remove name property and replace it with tooltips
* Make tooltips final
2018-05-19 19:59:01 +02:00
Ruben Amendoeira
3526b258bb Plugin side toolbar design tweak
- Added new parameter to navigation buttons: priority.
- Ordered the navigation buttons by their priority and name in PluginToolbar.
- Added a maximum size to the navigation buttons to keep all their sizes
the same.
- Added new icons for the following plugins:
   - Account (login/logout)
   - Grand Exchange
   - Feed
   - Info
   - Kourend Library
   - Notes
   - Screenshot
2018-05-19 15:13:22 +02:00
Ruben Amendoeira
4679bdad77 Kourend Library Plugin slight design tweak
- Spaced out the item panels vertically and slightly horizontally.
- Added a new header with the plugin's name, as it can be hard to know
what this plugin does/is.
- Restyled the reset button, it previously was a "Reset" text button, I
switched it to an icon with a darker version that activates
when clicked.
- Added the icon images to the resource folder.
- Added new method to SwingUtil that returns a darker version of an
image
- Used the image darkening method to give the refresh button a click
feedback effect
2018-05-19 12:16:25 +01:00
Ruben Amendoeira
d0f708e26a Hiscore Plugin redesign
Overall:
- Applied new colors, positions and sizes, following issue #1342.

Search:
- Applied the new IconTextField, with search, error and loading
indicator (and respective image files).
- Blocked tabs witching while results are loading.

Endpoints:
- Moved the endpoints to right below the search bar (this follows
a more logical sequence of usage).
- Changed the endpoint presentation style and size. The selected
endpoint now displays a orange underline.
- Edited the endpoint icons to better fit the visual context.
- Changed the way currently selected endpoint is stored.

Stats:
- Changed the sizing of the labels/panels.
- Changed the font to a smaller version.

Total/Combat:
- Switched the order of the combat and total indicator
- Changed the font to a smaller version.

Clues/Minigames:
- Changed the font to a smaller version.

Details Panel:
- Completely removed the details panel, instead went for a more
in-line with the game approach, tooltips!
- Rewrote the way skills and labels are matched
- Added html progress bar to the next level
2018-05-19 12:16:25 +01:00
Ruben Amendoeira
ab7e969320 Grand Exchange Plugin redesign
General:
- Applied the design I proposed in issue #1342
- Applied custom component: MaterialTabs
- Removed default scrolling behaviour from parent PluginPanel
- Added error panels for empty searches and empty offer slots
- Added new formatter to the StackFormatter that displays integers
as rs stacks with decimals (21700 into 21.7k)
- Changed the Locale on the stack formatter and respective unit testing
to UK, this makes sure all tests are consistent with Travis (ex: i ran
the unit testing in europe, travis ran in the us, so it passed my tests,
failed his)

Offers:
- Refactored the GE offers into it's own seperate file:
GrandExchangeOffersPanel
- Redesigned the ge offers items
- Included the custom component ThinProgressBar on the bottom of each
ge item panel
- Added secondary information panel, toggled by clicking on the primary
panel
- Added a game state check that resets all ge offers on logout

Search:
- Recoloured and resized the search bar
- Added new icons to the search bar (incluing a loading wheel gif)
- Removed focus on the search bar when results are displayed
- Added custom scrolling behaviour
- Blocked input when search is in progress
2018-05-19 12:16:25 +01:00
Ruben Amendoeira
e56e559ecd Added custom components + moved/rewrote some
To organize the project a bit, decided to add a new folder inside the
ui folder, to hold all custom components. ui/components/

Rewrote IconTextField

I wasn't happy with its functionality, so I rewrote it to
include the following:

- Left aligned centered icons
- Animated gif support (ex: loading wheels)
- Custom hover effects (color change)
- Input blocking

All changes:

- Created new folder ui/components/
- Moved JShadowLabel and JShadowLabelUI to components folder
- Moved IconTextField to components folder
- Rewrote IconTextField
- Created new components: MaterialTab & MaterialTabGroup
- Created new components: CustomScrollBarUI
- Created new components: PluginErrorPanel
- Created new components: ThinProgressBar
- Applied the new scroll bar ui to the UI defaults (UIManager)
2018-05-19 12:16:25 +01:00
Ruben Amendoeira
327c7b9c3b Restyled the client frame
- Created new substance theme "Obsidian"
- Created new ColorScheme file to hold all globally used colors
- Darkened the client frame using the substance color scheme file
- Changed substance's colorization factor to 1
- Tweaked the coloring on the dev plugin panel
- Set the UI default foreground color on Buttons and MenuItems to White.
2018-05-19 12:16:25 +01:00
Tomas Slusny
20fcaf8d81 Add support for hiding the sidebar 2018-04-27 13:53:07 -04:00
Adam
f1cd66b5b0 Revert "Merge pull request #1886 from deathbeam/cleanup-sidebar"
This reverts commit f1a6267c9742038bb4a771d350291999c3d8431c, reversing
changes made to 2b24b5eaa28735053823b210618318cbbe2afa56.
2018-04-24 20:38:33 -04:00
Tomas Slusny
4d38363e57 Cleanup sidebar expanding/closing
- 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>
2018-04-24 21:15:41 +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
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
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
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