Files
runelite/runelite-client
James 1bbb2c843b Agility shortcut showlevel (#142)
* Added agility level to agility shortcuts

With this commit, the agility plugin now shows the agility level required to pass shortcuts on hover/right-click/tooltip, with red/green coloring dependent on the players agility level.

* Adjusted code based on feedback

-Useless comments removed

-Now adds colortags using java.awt.color and colorutil

-Adjusted code layout to match style guidelines by moving curly brackets onto newlines and changing one-line if/else's to use brackets

-Removed getLevel function as it's already autogenerated (Whoops!)

-Changed start of plugin to a guard clause and added some other guard clauses for common menu-items

* Update runelite-client/src/main/java/net/runelite/client/plugins/agility/AgilityPlugin.java

Removed a newline

Co-Authored-By: PeterMcteague <07mcteaguepet@googlemail.com>

* Updated agility level on tooltip based on feedback

-Swapped * import for specific import (Whoops!)

-Swapped guarad for one that guards against any type that isnt the shortcut type (First option)

* Various changes to agility level plugin based on feedback

-Adjusted phrasing of config to something that was suggested that is far less awkward

-Fixed incorrect position variable (Incremented every one after it, as the position of it next to the other agility shortcut one seems appropriate)

-Removed unnecesary target == null check as suggested

-Modified main function logic to reduce nesting, complexity and number of for loops

* Change to agility level plugin based on feedback

Removed the "level-" already added check because it'd never happen.
2019-04-28 15:47:48 -04:00
..
2019-04-28 15:47:48 -04:00