Commit Graph
54 Commits
Author SHA1 Message Date
Psikoi fe01c7dbf4 Resize and tweak hiscores boss icons 2021-01-31 23:44:17 -05:00
Psikoi d0bf05ddd9 hiscore panel: update boss icons
This uses a new boss icon set from Psikoi he made for wiseoldman
2021-01-24 16:39:01 -05:00
Psikoi 07b8798cac Add Wise Old Man to XP Updater plugin 2020-04-30 19:40:19 -04:00
Psikoi 1778d5d79b Refactor xp updater requests to use generic request sender method 2020-04-30 19:40:19 -04:00
psikoi 2b7c48e0c8 loot tracker: ignore player loot in LMS 2019-07-26 21:13:48 -04:00
psikoi ba3edc1ecb Add hover preview to screen markers 2019-07-01 00:33:28 +01:00
psikoi bb4da0b822 Add ENTER/ESC key events for screenmarker saving 2019-06-29 12:32:58 +01:00
Ruben Amendoeira 31d8e88099 Loot tracker - Add ability to ignore items (#5483)
This adds the ability to toggle items in the Loot Tracker, when an item is toggled, its price won't count towards the price check, and if the "Show ignored items" config option is not enabled, it won't be displayed on the loot tracker UI either.

Fixes #5060
Fixes #4661
2018-10-19 10:02:16 +02:00
Ruben Amendoeira 2a9d0e0924 XP Globes - Move progress bar display from tooltip to globe (#5856)
This change removes duplicate progress bar from XP globes tooltip and adds new hover effect on each globe that will display percentage to next level.

![](https://i.gyazo.com/f75959e82408b4ff1a64e13ccad62486.png)
2018-10-08 08:19:38 +02:00
psikoi 10b4823ef3 Fix loot tracker box subtitle 2018-09-22 20:34:36 +01:00
Ruben Amendoeira 4dd8322121 loot tracker: add view for grouping loot by npc/event 2018-09-12 20:03:50 -04:00
psikoi 3e9373cc32 Fix activity ordering incosistency
The other ordering options order from bottom to top by default, this should too.
2018-08-16 16:59:03 +01:00
psikoi 7033e4632a Add activity priority to world list
Adds a special sorting case for empty worlds. They should remain at the bottom of the world list.
2018-08-16 16:57:59 +01:00
psikoi 98f843627c Fix highlighting wrong default world
The default world plugin was running after the list was populated, by not highlighting any default world, only the current world after login, we unsure that it highlights the correct first world.
2018-08-16 02:22:50 +01:00
psikoi 6506409f02 Fix activity recolouring on hop
The activity label had no default color so it remained green unless it was pvp/deadman/tournament, easy fix.
2018-08-16 02:22:48 +01:00
psikoi 6e26fa8177 Update menu option on favorite
Updates the right click menu option of each row when the player favorites a world or removes it from the favorites list.
2018-08-16 01:53:38 +01:00
Ruben Amendoeira b0a9d24928 World hopper data refreshing (#4918)
Update world list on world hop. Schedule a refresh every 10 minutes, and add a refresh option.
2018-08-15 19:59:30 -04:00
psikoi bf4050f2e2 Fix exp tracker UI margin incosistency
This reduces the top margin of the exp tracker UI to match the other sides and the similarly designed Loot Tracker.
2018-08-14 13:12:18 +01:00
psikoi 9b49e9d6a7 Add loot tracker plugin
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-31 22:25:27 +02:00
psikoi 7ba1324751 Refactor Hiscore EndPoints to Material Tab
In an attempt to clean-up and re-use UI elements, I am applying the
material tabs to the hiscores plugin (previously it was jpanels
that looked exactly like tabs because at the time this panel was made,
there were no icon material tabs yet)

Also refactored the GridBagLayout code a little bit, makes it easier to
read and expand.
2018-06-05 12:07:02 +01:00
psikoi 67243ed509 Added boolean onSelectedEvent to Material Tabs
This new functionality allows a tab to not be selected depending on the
value of onTabSelected.

For example, for the hiscores, I want to block tab switching when the
plugin is already loading someone's hiscores, and in this scenario, I
have to return false to make sure the tabs don't switch.
2018-06-04 15:04:12 +01:00
Ruben Amendoeira 21bab1f487 Remove Skill Calc unused code (#3568)
This code was left behind last material tab clean-up PR.
2018-06-02 12:42:33 +02:00
psikoi 715ce78bc4 Refactor plugin panels for new Icon Tabs
Refactors the GE, SkillCalcs and Farming plugins to use the new updated
tabs.
2018-06-01 01:19:31 +01:00
psikoi e370aa76ef Add Icon Material Tab + Hover effects
As material tabs started being in different ways than planned, the code
around them started being a little inconsistent. With this change I hope
to create a new constructor for Icon Tabs (skill calculator, farm timer)
and also add hover effects to them.
2018-06-01 01:19:28 +01:00
Ruben Amendoeira 1526141123 Add naming to screenmarkers
This new feature adds names to screen markers, and allows a user to
rename an existing marker, with save and cancel options.
2018-05-27 18:46:54 -04:00
Ruben Amendoeira c24e31c03e Add top margin to the XP tracker error panel (#3343)
This was somehow removed in the latest PluginPanel updates, all other
panels were unaffected, by this was. Simple fix, a 50px empty border
should do the job.
2018-05-26 18:32:32 +02:00
Ruben Amendoeira 745b444104 Remove feed refresh button
The current refresh button has little to no use as it only updates the
ui, and that gets updated whenever the data changes anyways. As there
is no way of fetching the data on command, the button is useless and
should be removed, so I did.
2018-05-25 21:13:01 +01:00
Ruben Amendoeira fd174c7ada Refactor ClientUI using CardLayout
Fixes #3199 (completely, and other bugs of the sort)

The current way ClientUI switches tabs on the side panel is by adding
and removing them from a container panel. This is slow on panels with a
large number of components.

To fix this, I decided to use a cardlayout, as suggested by abex.
So now, the container panel has a CardLayout and all the plugin panels
are added with their names as keys, and when a NavigationButton is
clicked, the cardlayout will show a panel based on its key. (Ex: Xp
Tracker).
2018-05-25 19:36:47 +01:00
Ruben Amendoeira e96d46b018 Skill calcs performance improvement
- Changed layout manager to DynamicGridLayout with a 5px hgap instead of
using rigid areas to add gaps.
- Removed useless bottom gap, and added bottom empty border
2018-05-24 19:17:38 -04:00
Ruben Amendoeira be2118f357 Hiscore auto-complete fix
Fixes #3202

When I refactored the IconTextField to include a new component called
FlatTextField, I forgot to change the methods to add/remove key
listeners.

- All I had to do is override de addKeyListener/removeKeyListener
methods on both the IconTextField and FlatTextField instead of some
useless no-sense-making similar methods I had.

Easy fix.
2018-05-24 22:44:01 +01:00
Ruben Amendoeira b9f1b6e1ef Screenmarkers plugin redesign (#3139)
- Update the interface to match with the Obsidian redesign
- Remove displaying of screen marker names (they are not editable so not important)
- Add support for changing screen markers after creation
- Add support for toggling fill
2018-05-24 10:01:38 +02:00
Ruben Amendoeira 566439e38d Skill Calc plugin redesign
Following the obsidian redesign update, this time I've ventured into
the skilling calculators. Major changes were made, here are the most
noticeable:

- Added a title to the top of the plugin panel
- Resized the skilling selectors to a 3x6 grid and used the MaterialTabs
for the selection behavior.
- Resized, recolored and reshaped the input panels and respective labels
to better fit the new theme and aesthetic.
- Added a new action "on enter", the textfield will now request focus
on the next logical textfield, (example, when enter is pressed on the
current level field, it will request focus on the target level)
- Reworded the input labels from "XP" to "Experience"
- Resized, recolored and reshaped the boost/modifier selectors
- Recolored the actions/selections indicator to a dark gray
- Recolored all item panels to a dark gray, and instead added a left
side thick border to indicate availability (green/red)
- Added required level indicator on the sub-title of each item
- Added hover effects for the individual items
- Added hover effects for the material tabs
2018-05-23 00:29:47 +01:00
Ruben Amendoeira 84213d1eff Added/Changed custom UI components
MaterialTabs:

- Added a second constructor for use cases where the programmer
does not want the screen switching functionality, only the tab
selection functionality (think of them as fancy radio buttons
- Tweaked the border on the material tab so that the highlight overlays
instead of appending to the bottom.

IconTextField:
- Fixed copyright link
- Refactored to include the new FlatTextField (code was taken from this
class to produce the new class)

FlatTextField:
- Added this new component, it is pretty much the same as IconTextField
but used for just text input purposes, no icons.
2018-05-23 00:25:19 +01:00
Ruben Amendoeira 48368019e6 Expanded SkillIconManager to include smaller versions
Needed small icons to use for the Skill Calc redesign, decided to expand
the skill icon manager to include these, created a new folder in the
resources with the small png's.
2018-05-22 23:06:39 +01:00
Ruben Amendoeira 18d600b298 Recolour config names to white
To keep consistency with the config list names, I changed the color
of the specific configurations and titles to white.
2018-05-22 21:45:03 +01:00
Ruben Amendoeira b85ca418db Fixed exp tracker pop-up in the progress bar
Fixes #2989

The interaction to open the pop-up menu contains "reset" and "open
online tracker" wasn't accessible if the user clicked on the progress
bar. What I did was add the component pop menu to the progress bar too.

Grouped these two attributions and moved them lower on the constructor.
2018-05-22 21:45:03 +01:00
Ruben Amendoeira b999118486 Removed unused styling on JComboBox
This was left by mistake when I was attempting to change
the combobox's renderer, this element's styling is never displayed so I
decided to remove it.
2018-05-22 21:45:03 +01: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
Ruben Amendoeira 2fdded3884 Fix Config search bar focus
Fixes #3044

- When changing the component for the search bar, anywhere on the code
where focus was requested for the search bar, it was only applied to
the search bar's parent container. All I had to do was override the
focus requesting method and execute it for the text field.
2018-05-22 21:44:59 +01: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 Amendoeira 23395b6d48 Skilling Calculators Plugin design tweak
Prepared it for release, still to be redesigned.

Changes:
- Changed the background color on some panels to match the new ui
- Re-ordered the plugin to a lower position on the side bar
2018-05-19 14:30:06 +01: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 6d331ae5a1 Farming plugin panel redesign
Farming Plugin:
- Redid the layout, coloring and positioning on the FarmingTrackerPanel
to include my new MaterialTabs.
- Added section divider labels in the special and tree tabs.
- Hid the patch type indicator for some patches (explained in docs).
- Added patch names for all instances of FarmingPatch (previously only
a portion of them were written for a hack that is no longer necessary).
- Created getName() method in PatchImplementation that returns the patch
type's name in a formatted style (SPIRIT_TREE -> Spirit Tree).
- Created a new tab for bushes.

MaterialTabs:
- Added onSelectEvent runnable to MaterialTab.
- Added horizontal gap to the tabs.
- Added getTab() method that returns a tab on a given index.

CustomScrollBarUI:
- Added functionality to allow the ui colors to be changed from an
external call. (setters)

ColorScheme:
- Created color constants in the ColorScheme file for the progresss bar
backgrounds and used them in the CropState enum.
2018-05-19 15:13:22 +02:00
Ruben Amendoeira 497d421737 Info panel redesign
Restyled the whole exp trackers plugin panel to follow my proposed
design style on issue #1342

- Added two new entries to the runelite properties file (github and
patreon link). And addes respective getter methods in the
RuneLiteProperties.java file.
2018-05-19 15:13:22 +02:00
Ruben Amendoeira 9a72dd5969 Exp trackers plugin redesign
Restyled the whole exp trackers plugin panel to follow my proposed
design on issue #1342

- Restyled and recolored the exp tracker
- Removed the contracted state, trackers are now always expanded as they
are now thinner than before
- Progress bars are now color matched to the skill using a new enum
SkillColor
- Added new progresss bar custom component
- Added error panel for "no exp gained" that disappears once the player
earns experience
- Restyled the overall exp panel
- Hid the overall exp panel until the player earns experience
- Added "Reset" right click menu to individual skill trackers
- Added "Reset All" right click menu to the overall skill tracker
2018-05-19 15:13:22 +02:00
Ruben Amendoeira 6ec0d60ec4 Configs slight design tweak
- Updated the search bar to the new icon text field component.
- Added new on/off icons based on the material design style.
- Recoloured the background.
- Recoloured the plugin name labels.
- Replaced the config/toggle buttons for icon labels.
- Hid config button if no config was found, instead of disabling it.
- Left aligned the header title.
- Added new ComboBoxListRenderer to prevent substance's ugly coloring.
- Changed the panel title to "Configuration"
- Used deathbeam's new layout manager DynamicGridLayout
2018-05-19 15:13:10 +02:00
Ruben Amendoeira dcd241e3bf Notes Plugin slight design tweak
- Increased the padding on the overall panel and the title.
- Recolored the background and text editor.
- Wrapped the text editor in a panel to prevent substance's hover
effects.
- Added 10px padding to the text editor
2018-05-19 12:16:25 +01:00
Ruben Amendoeira 1d388fa98f News Feed Plugin slight design tweak
- Added a header section, containing a title and a refresh icon button.
- Increased the overall border from 5 to 10 pixels.
- Changed the background color to a darker gray.
2018-05-19 12:16:25 +01: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
psikoi 8b00d1385d Add a null check to avoid a NullPointerException when the query returns null. 2018-04-06 13:29:33 +01:00