summaryrefslogtreecommitdiff
path: root/src/gui/minimap.h
AgeCommit message (Collapse)AuthorFilesLines
2024-04-08Use ResourceRef<Image> in more placesThorbjørn Lindeijer1-1/+3
Automatic reference counting of images is now used by Item, Icon, AnimatedSprite, ImageSprite, ParticleEmitter, Minimap, Desktop and Emote. Since ResourceManager::get automatically adds a reference, it needs to be explicitly subtracted when the resource is managed by ResourceRef. This is taken care of by the new ResourceManager::getImageRef. Also removed the apprently unused and duplicate "mDrawImage" from Item (which also didn't get decRef called on it). Fixes cleanup of emote ImageSet and ImageSprite instances, as well as particle images.
2024-02-09C++11: Use default member initializersThorbjørn Lindeijer1-4/+4
This patch is not exhaustive.
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-2/+2
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2011-06-17First pass on removing tile hard coded values.Yohann Ferreira1-0/+1
Every files has been checked against the hard coded 32 values except the map.cpp file. I also added convenience functions in the Game class, centralized the default item icon size, and removed two unused defines in being.cpp.
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
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 )
2009-04-26Moved minimap title setting into the Minimap classBjørn Lindeijer1-11/+7
Also cleaned up some debug log statements, fixed initialization order, removed an unused member variable and added some documentation.
2009-04-26Minimap ratio adaptBlue1-8/+6
Now the minimap can adapt every image ratio, not only 0.5 (even images with differents width and height)
2009-04-07Moved basic widgets into the gui/widgets directoryBjørn Lindeijer1-1/+1
In an attempt to make the GUI code a little more structured, basic widgets are now put in gui/widgets. Many includes were also cleaned up.
2009-02-04Went through the gui folder and revised the include statements to notIra Rice1-2/+0
include anything not needed by that specific widget or window. This appears to have cleaned up system performance a bit on my current setup, where it went from idling on 45% in game with opengl down to 30% now. Also moved iptostring to the tostring header, as importing all of network.h is a little overkill to use that function, and it goes along with the basic functions that are in that header file anyways. TODO: find out a way to get rid of warnings when a class doesn't use this function. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-25Removed the TMW branding from header guardsBjørn Lindeijer1-2/+2
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2009-01-09Fixed minimap state saving.Ira Rice1-0/+6
Signed-off-by: Ira Rice <irarice@gmail.com>
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-2/+0
statements, as well as removing the new skill dialog, which we do not, nor will we use (if we do, it'd be a new one that we'd make). WARNING!!! This, and all other previous builds have a linker error for the Gnome libraries version 4.3.2 on my setup. It's assumed that this is also the case for other users of this library as well. I'm currently assuming that there's a bug in the compiler itself, and will look into reporting this, but in the mean time, it doesn't build for these users, unfortunately. Sorry about this.
2008-10-13Changed minimap code so that it allows us to have larger minimaps, while Ira Rice1-0/+6
putting back in backwards compatibility with TMW style minimaps. While this might seem like a big deal, it also allows us to make minimaps as big as we'd like, which is a huge perk for really large maps or really small ones.
2008-10-03Made a new Windows binary, as well as fix some files to make the Windows Ira Rice1-0/+2
build work (although there might be a bit too many guichanfwd.h references. But that's ok. I'm too lazy to track down which ones are necessary and which ones aren't at the moment).
2008-07-18Import of client treeLloyd Bryant1-1/+1
2006-07-19Merged new_animation branch until r2415 into trunk. Eugenio Favalli1-1/+1
2006-02-23A bunch of mostly cosmetic cleanups.Björn Steinbrink1-3/+2
2005-09-28Added a Reset Win Positions to Default in the Setup win.Yohann Ferreira1-0/+2
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-2/+3
2005-07-11Committed header dependencies reducing patch by DoenerBjørn Lindeijer1-2/+2
2005-06-14Added background to minimap. Only used in Tonori Desert map for now, and itsBjørn Lindeijer1-1/+16
style is up for discussion.
2005-05-14Mainly separating core GUI classes from game interface.Bjørn Lindeijer1-1/+1
2005-05-13Fixed minimap transparent background to work in both SDL and OpenGL by usingBjørn Lindeijer1-4/+0
Guichan.
2005-02-06Mostly making map tile data dynamically allocated.Bjørn Lindeijer1-2/+3
2005-02-06Added minimal minimapEugenio Favalli1-0/+51