Also added support to color the dispenser / conveyor depending on the
bar dispenser state.
These are the current expected values:
0 = No bars being processed
1 = Ores are being processed on the conveyor belt, bar dispenser cannot
be checked
2 = Bars are cooling down
3 = Bars can be collected
Since e915070b4b it is possible to check hp in the despawn event.
This also fixes timer accuracy some since the timer starts at the time the npc despawns and not when the death animation starts.
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.
- When starting the Motherlode Mine plugin for the first time inside
MLM, the sack overlay will be colored red because the sack values are
set to 0. Changed so the plugin refreshes the sack values on startup.
- When stopping the plugin, the sack widget will stay hidden. This
calls sack.setHidden(false) on plugin shutdown.
- When MLM plugin is started, reset session properly
- New CardLayout requires also preferredSize in addition to maximum and
minimum sizes to expand/contract properly without leaving artifacts +
also requires revalidation.
- Remove entire container repaint to prevent unnecessary slowdown for no
reason
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
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.
For better readability of text configurations, change TextField to
TextArea that can span multiple lines.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This serves as better default for new plugin panels, as it is not
forcing same heihgt for all elements, what is undesired behaviour in
most of the cases. The current implementations of plugin panels remains
unchanged.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
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).
- 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
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.
Add support for toggle in "RuneLite" settings to go into fullscreen
mode, that will make RuneLite window fully fullscreen without any weird
hacks.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>