summaryrefslogtreecommitdiff
path: root/src/gui/minimap.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-09-13Avoid loading non-existing music and minimapsStefan Dombrowski1-1/+2
Reviewed-by: Thorbjorn
2010-06-05Fix memory leak in minimapAndrei Karas1-3/+1
Reviewed-by: Thorbjørn Lindeijer
2010-03-12Split Palette into Theme and UserPaletteJared Adams1-8/+8
Themes can now control the colors they use. Colors in the Viewport (being names, particles, etc) can still be changed by the user. Also make ProgressBars more easily colored. DyePalette was made more flexible in the process. Also fixes comparing strings of different lengths insensitively. Reviewed-by: Thorbjørn Lindeijer
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-15Revert "Attempt to fix Minimap caption again..."Chuck Miller1-1/+4
This reverts commit 20d2a17c8c0fa9220c257d61641a6459e154de26. Going to try to remove this fix, people have still been reporting crashes with minimap caption. Maybe if more people report it, we can get more information.
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-02-01Attempt to fix Minimap caption again...Jared Adams1-4/+1
2010-01-23Chaning the method name Map::getMapId() to map::getFilename()Blue Sans Douze1-3/+5
2010-01-23Autoload a minimap is no minimap info is givenBlue Sans Douze1-1/+10
Looks for "graphics/minimap/MAPID.png"
2010-01-05Fix a crash when maps don't have namesJared Adams1-1/+1
2009-07-26Gettext fixesKess Vargavind1-1/+1
And a Swedish translation of the desktop file.
2009-07-23Clear some more support ifdefsJared Adams1-0/+2
2009-05-25Handle map not found gracefullyBjørn Lindeijer1-7/+12
Instead of shutting down, the client will now draw a gray background. This allows the player to still contact a GM in order to be helped out of the situation. It also helps me warp out of the non-existing map I accidentally warped myself onto. ;)
2009-05-12Some small cleanups and fixed compile with tmwserv supportBjørn Lindeijer1-1/+1
2009-05-12Handle in party status in a much saner wayJared Adams1-5/+7
2009-05-11Fix a few states on minimap that I missed. mShow now replaces the visibility ↵peavey1-8/+7
setting since this is only saved on manually setting visibility. go back to saving visibility and use sticky bit to decide if minimap should be turned off or not.
2009-05-10nuke a tab indent I put in by mistakepeavey1-1/+1
2009-05-10Fix visibility and stickyness so its saved correctlypeavey1-5/+10
2009-05-10Color party members differently in the minimapJared Adams1-0/+5
2009-05-03Moved mIsGM from Being to Player and made isGM() constBjørn Lindeijer1-2/+2
2009-05-03De-hardcoded the color values for the minimap, and set them to theirTametomo1-10/+20
equivalent Palette color type. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-28Made map non-resizable. Stopped emote spamming.David Athay1-3/+6
2009-04-26Moved minimap title setting into the Minimap classBjørn Lindeijer1-15/+21
Also cleaned up some debug log statements, fixed initialization order, removed an unused member variable and added some documentation.
2009-04-26Minimap ratio adaptBlue1-9/+28
Now the minimap can adapt every image ratio, not only 0.5 (even images with differents width and height)
2009-04-20Fix up window visibility saving/restoringJared Adams1-0/+2
2009-04-13Some cleanup of the Configuration interfaceBjørn Lindeijer1-9/+9
Mainly avoid all the convertions from integer to float and then to string and also back from string to float and then to integer.
2009-04-09Made BeingManager methods const where appropriateBjørn Lindeijer1-2/+2
2009-03-28Add a sticky button to the Window classJared Adams1-2/+4
The Minimap window uses this so you can froce it to always be open. The Minimap toggle button can be used to show or hide it temporarily, as warping will reset it's visibility based on the sticky state and weather the 'new' map has a minimap.
2009-03-28Removed a lot of useless isVisible() checksBjørn Lindeijer1-9/+2
The draw() method of a widget isn't called when a widget is not visible.
2009-03-27Fixed position of dots on minimapBjørn Lindeijer1-6/+1
Also made mPx and mPy private and synchronize with mPos on setPosition(). The side effects of setting destination and clearing the path have been removed from setPosition(). Only the tmwserv PlayerHandler seemed to rely on that feature. Mantis-issue: 672
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer1-13/+3
Conflicts: A lot of files.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-13/+0
Conflicts: Many files.
2009-03-22Merged the tmwserv client with the eAthena clientBjørn Lindeijer1-2/+9
This merge involved major changes on both sides, and as such took several weeks. Lots of things are expected to be broken now, however, we now have a single code base to improve and extend, which can be compiled to support either eAthena or tmwserv. In the coming months, the plan is to work towards a client that supports both eAthena and tmwserv, without needing to be recompiled. Conflicts: Everywhere!
2009-03-10Reverted last commit (since I confused it with something else) as wellIra Rice1-1/+0
as removed a redundant call for sizing in the minimap class. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Moved enforcement of minimum widths and heights to the Window class.Ira Rice1-12/+0
This was needed in the Minimap class, but not migrated out to the Window class until now. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-06Merge branch 'aethyra/master'Bjørn Lindeijer1-0/+3
Conflicts: src/being.cpp src/being.h src/floor_item.cpp src/floor_item.h src/flooritemmanager.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/itemcontainer.cpp src/gui/popupmenu.cpp src/net/beinghandler.cpp src/npc.cpp
2009-03-05Made some optimizations based on some profiling done by Octalot, as wellIra Rice1-0/+3
as some other optimizations that I could see that cut down on some unneeded redraws, which in turn improved frame rates slightly. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-15Don't make window name translatableBjørn Lindeijer1-1/+1
The window name is used in the configuration file, in contrast to the window title.
2009-02-10Whitespace fixesBjørn Lindeijer1-1/+1
Mainly removed trailing whitespace. Also small fix in header of recorder.cpp.
2009-02-10Fixed header files, as well as removed the unused buddy list class (notIra Rice1-2/+3
useful since buddy lists are tracked through the player relation interface instead) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-10Whitespace fixesBjørn Lindeijer1-1/+1
Mainly removed trailing whitespace. Also small fix in header of recorder.cpp.
2009-02-09Mostly whitespace fixesBjørn Lindeijer1-2/+2
Removed tab characters and trailing spaces and added spaces between "if(", "for(", "while(" and "switch(".
2009-02-09Merged with Aethyra master as of 2009-02-09Bjørn Lindeijer1-11/+17
Conflicts: A lot of files...
2009-02-09Mostly whitespace fixesBjørn Lindeijer1-2/+2
Removed tab characters and trailing spaces and added spaces between "if(", "for(", "while(" and "switch(".
2009-01-30Exposed most gui elements to take alpha values. There are still a fewIra Rice1-2/+0
spots that could also be fixed up as well, but require other methods to fix them (the filled color rectangles on the progress bars, as well as the text on them as well, as an example). Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Changed the minimap to remember whether the minimap was toggled or notIra Rice1-2/+3
when the client was last exited. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Fixed the last freestanding minimap bug. Now minimaps behave perfectlyIra Rice1-1/+2
even when there's already a saved window configuration. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-29Fixed up minimap resizing code so that the minimum width is always longIra Rice1-6/+12
enough to contain the map's name. Also fixed an unnoticed logic flip that was done unintentionally. This class now manages to work perfectly when the config file has no previous dimensional influences, but still won't resize properly without removing the ability to resize or getting rid of those stored configs. TODO: Find out why loading window configuration for the default minimum width or height overrides the Minimap's supplied dimensions it wants. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Slight bit of code cleanup, as well as minor fixes to logic. For someIra Rice1-9/+19
reason, the windows will gladly shrink when resizeable, but not grow. This will need to get resolved some time later. Signed-off-by: Ira Rice <irarice@gmail.com>