This commit adds `ImageUtil::resizeCanvas`, `ImageUtil::outlineImage`,
and `ImageUtil::fillImage`, and applies these functions to the clan
manager to replace the clan rank images with calls to `SpriteManager`.
This commit adds `ImageUtil::bufferedImageFromImage`,
`ImageUtil::alphaOffset`, `ImageUtil::grayscaleImage`, and
`ImageUtil::flipImage` functions and applies them to client and plugin
code to remove unneeded derivative images from the resources directory.
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.
cda98f moved the plugin manager to not be registered on the eventbus until
after the session was opened. The session config was relying on the plugin
manager applying the default config based on the session open event.
This moves session loading to be prior to applying the default config, so newly
added config options get properly set at startup.
Fixes config panel breaking which expects the config to always have non-null
values for config items with defaults.
Co-authored-by: Tomas Slusny <slusnucky@gmail.com>
- Account for linked item id when getting item price
- Format item price tooltip
- Create new data structure for loot tracker and precompute it
to avoid calling methods that are unsafe outside of client thread
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
All chat messages are either checked for equality to command strings
which are not followed by spaces or are checked to start with command
strings followed by a space, and use the constants' length (plus one,
for the space) to get the command argument.
Remove special cased wizard death animations from loot manager as as of
latest OSRS update this now works normally:
The Elemental Wizards south of Falador now give loot at the end of their
death animation rather than the beginning.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Instead of using marker overlay name use marker name, as marker overlay
name contains date.
Fixes#4634
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
- Reverse ClientUI sidebar condition as when opening sidebar is always
open so current master will effectively shrink window instead of
restoring to correct size
- Apply this condition also to KEEP_WINDOW_SIZE
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>