summaryrefslogtreecommitdiff
path: root/src/gui/emotepopup.cpp
AgeCommit message (Collapse)AuthorFilesLines
2025-04-28GUI: Added skin for the emote slots in the EmotePopupThorbjørn Lindeijer1-24/+26
Allows more flexible customization as needed by Jewelry theme.
2025-02-26Use ResourceRef for all resource typesThorbjørn Lindeijer1-4/+1
All ResourceManager functions that load resources now return respective ResourceRef values, which helps to make sure resources are properly cleaned up. The Sound class was cleaned up and now also allows SoundEffect resources to be unloaded. The Animation class now keeps its ImageSet loaded only as long as necessary. Previously, SimpleAnimation and ParticleEmitter would keep the ImageSet loaded indefinitely by never decreasing its reference count. Reduced duplicated animation loading code between SimpleAnimation and ParticleEmitter.
2025-02-21Replaced ImageSprite in Emote by plain ImageThorbjørn Lindeijer1-6/+8
Emotes just need an image to be represented in the UI, so we don't need to use ImageSprite.
2025-01-20Made client config statically typedThorbjørn Lindeijer1-2/+2
This makes accessing the config values much faster, since it no longer needs to do a lookup nor string conversion, which means we could remove some needless copying of the values. Overall it makes it easier to find out where settings are used and it puts the defaults along with the declaration. Options with default values are no longer saved to the config file. This does not include unrecognized options, which are kept around to provide some compatibility with older clients. While most basic options have kept the same name, more complicated settings like window geometry, shortcuts, outfits, etc. now have their own XML elements. Older clients will ignore these and erase them when saving the configuration.
2024-03-28Fixed size and child positions for various popupsThorbjørn Lindeijer1-2/+2
Most prominently, fixes the tooltips on the window buttons being clipped due to their position being slightly outside of the clipping children area. And fixes NPC tooltips from having a lot of empty space below the NPC name. Also reduced the space between texts in the item tooltip to match the padding rather than being an entire empty line.
2024-02-15Fix handling of non-consecutive emote IDsThorbjørn Lindeijer1-45/+51
Previous code was assuming there would be no gaps in the emote IDs. Also cleaned up some confusion where the "emote ID" being passed around in the code was often offset by 1. Now it is only offset in communication with tmwAthena and when saving the shortcuts.
2024-02-09C++11: Use default member initializersThorbjørn Lindeijer1-5/+1
This patch is not exhaustive.
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2010-11-07Convert the emote system to use particlesChuck Miller1-2/+2
Reviewed-by: Jared Adams
2010-08-03Move Theme and UserPalette to the resources folderJared Adams1-2/+1
Reviewed-by: Yohann Ferreira
2010-07-28Centralized configuration default values using the VariableData system.Yohann Ferreira1-1/+1
Please note that I didn't turned all the getValue() call into new ones, simply because I have to have config object initiated which is not forcefully the case the branding file. Resolves: Manasource Mantis #170.
2010-03-05Rename SkinLoader to ThemeJared Adams1-2/+2
Also merge the guialpha ConfigListener into Theme. Reviewed-by: Thorbjørn Lindeijer
2010-03-01Hide BeingPopup when mouseover WindowsJared Adams1-0/+2
Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Chuck Miller
2010-02-28Make the gui more themeable and distribute two themesJared Adams1-3/+3
The older gray theme and the new wood theme are available as themes. The gray theme needs some new graphics for hilights. Add a theme option for branding and add path/to/branding/data to the PhysFS search path. Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Chuck Miller
2010-02-21Do some more copyright header cleanupsJared Adams1-1/+1
Fix "(C) 2009-2009" to just "(C) 2009" Fix "(C) 2010 TMW" to "(C) 2010 Mana" Remove TMW compyright on (hopefully all) files added after 0.0.29.1
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-3/+2
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-01-10Change code styleAndrei Karas1-1/+2
2009-05-28Made two error strings untranslatableBjørn Lindeijer1-3/+1
They should never be seen by a user.
2009-05-04Replaced emote window with a new emote popupBjørn Lindeijer1-0/+191
The popup is meant to be temporary, showing the emote instantly when you click on it. It adapts nicely to show any number of emotes. I still need to add a better way of assigning emote shortcuts, since currently you can only change which emote is assigned to which shortcut by actually using it.