summaryrefslogtreecommitdiff
path: root/src/gui/minimap.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-01-09Removed close button from minimap windows. While this was a nice idea atIra Rice1-1/+0
the time (and it might be added back in the future), it requires a bit of a change to the window code to fix (not too hard) and its own custom click handler (again, not that hard). Done for the sake of avoiding too much redundancy. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-09Fixed minimap state saving.Ira Rice1-1/+16
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-06Added support for internationalizationIra Rice1-2/+4
Merged from the mainline client. Originally implemented by Guillaume Melquiond, starting with commit 1828eee6a6d91fd385ad1e69d93044516493aa91. Conflicts: INSTALL configure.ac src/Makefile.am src/gui/buy.cpp src/gui/confirm_dialog.cpp src/gui/inventorywindow.cpp src/gui/login.cpp src/gui/menuwindow.cpp src/gui/minimap.cpp src/gui/ok_dialog.cpp src/gui/popupmenu.cpp src/gui/register.cpp src/gui/sell.cpp src/gui/setup.cpp src/gui/setup_video.cpp Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-06Fixed the windows cbp file, deleted some files which we don't use, andIra Rice1-2/+2
fixed a few compiler warnings noticed from building in windows. Signed-off-by: Ira Rice <irarice@gmail.com>
2008-12-17Reintroduced window name propertyBjørn Lindeijer1-2/+3
Still used in the eAthena client and it seems saner to me to have it.
2008-12-13Center large minimaps on playerBjørn Lindeijer1-20/+21
Based on a patch by QOAL. (cherry picked from eAthena client) Conflicts: src/gui/minimap.cpp
2008-12-09Make the window shortcuts configurableJared Adams1-6/+6
2008-12-08Small maps used to scroll as well as big maps. Fixed.Ira Rice1-2/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2008-12-08Clip the minimap image to within its windowBjørn Lindeijer1-10/+14
The image wasn't clipped so it would draw beneath the map name and on top of the window border.
2008-12-08Don't scroll past the edges of the minimapBjørn Lindeijer1-0/+12
When centering the minimap on the player, it would often happen that the minimap scrolled past its edge. Based on a patch by QOAL.
2008-12-07Merge commit 'a7c21e6f8add37af7412449742ec55c8daa8571a'Ira Rice1-4/+0
Conflicts: AUTHORS CMakeLists.txt ChangeLog INSTALL README aethyra.cbp configure.ac data/help/changes.txt data/help/commands.txt data/help/header.txt data/help/support.txt src/Makefile.am src/aethyra.rc src/being.cpp src/being.h src/equipment.cpp src/equipment.h src/floor_item.h src/game.cpp src/gui/buddywindow.cpp src/gui/char_select.cpp src/gui/char_server.cpp src/gui/chat.cpp src/gui/chat.h src/gui/equipmentwindow.cpp src/gui/equipmentwindow.h src/gui/gui.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/itemcontainer.cpp src/gui/itemcontainer.h src/gui/minimap.cpp src/gui/ministatus.cpp src/gui/newskill.cpp src/gui/npc_text.cpp src/gui/npclistdialog.h src/gui/ok_dialog.cpp src/gui/setup_video.cpp src/gui/skill.cpp src/gui/skill.h src/gui/status.h src/gui/table_model.h src/gui/updatewindow.cpp src/gui/viewport.cpp src/inventory.cpp src/inventory.h src/keyboardconfig.cpp src/keyboardconfig.h src/localplayer.cpp src/localplayer.h src/logindata.h src/main.cpp src/map.cpp src/monster.cpp src/monster.h src/net/beinghandler.cpp src/net/beinghandler.h src/net/buysellhandler.cpp src/net/equipmenthandler.cpp src/net/loginhandler.cpp src/net/loginhandler.h src/net/network.h src/net/npchandler.cpp src/net/playerhandler.cpp src/net/protocol.h src/net/tradehandler.cpp src/npc.cpp src/npc.h src/particleemitter.cpp src/particleemitterprop.h src/player.cpp src/player.h src/player_relations.cpp src/resources/imageset.cpp src/resources/imageset.h src/resources/itemdb.cpp src/resources/mapreader.cpp src/resources/monsterinfo.h src/text.cpp src/text.h src/textmanager.cpp src/textmanager.h src/tileset.h src/utils/fastsqrt.h src/utils/strprintf.cpp src/winver.h tools/tmxcopy/Makefile tools/tmxcopy/base64.cpp tools/tmxcopy/base64.h tools/tmxcopy/tostring.h Signed-off-by: Ira Rice <irarice@gmail.com>
2008-11-30Fixed map origin formula so that it will work on any map proportion. IIra Rice1-2/+2
accidently screwed this up earlier to make it work on our minimaps that I forgot to check it on a different sized map. Signed-off-by: Ira Rice <irarice@gmail.com>
2008-11-30Fixed a problem noticed by Jarvellis. Apparently a while ago, toIra Rice1-3/+3
suppress a compiler warning, I added in some typecasts, but did them in the wrong spot, so it broke TMW's minimaps, but still worked on whole number proportions. This fixes that. Signed-off-by: Ira Rice <irarice@gmail.com>
2008-11-30Fixed up Minimap scrolling so that it actually scrolls (I forgot thatIra Rice1-3/+10
we resized the minimap width by the map's actual width) as well as fixed the centering code so that it works. TODO: Determine a decent way to have the map scroll, but not draw the map below the map area's name. Signed-off-by: Ira Rice <irarice@gmail.com>
2008-11-25Miscellaneous TMW change commits. Missed these changes before because of Ira Rice1-8/+19
a confusion on git.
2008-11-21Center large minimaps on playerBjørn Lindeijer1-15/+19
Based on a patch by QOAL.
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-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
I don't know why we dealt with these things for so long. Did we ever get anything out of it?
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
I don't know why we dealt with these things for so long. Did we ever get anything out of it?
2008-11-01Merged revisions 4110-4111,4116 via svnmerge from Bjørn Lindeijer1-3/+4
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/branches/0.0 ........ r4110 | peaveydk | 2008-04-17 00:57:49 +0200 (Thu, 17 Apr 2008) | 1 line Fix shop list not to scroll to top when selling. Redo of revision 3801 due to changes in guichan 0.8.0. ........ r4111 | peaveydk | 2008-04-17 02:08:28 +0200 (Thu, 17 Apr 2008) | 1 line fixes for r4110, have to account for index value and add 1 to get the right scroll position. ........ r4116 | peaveydk | 2008-04-17 14:48:43 +0200 (Thu, 17 Apr 2008) | 1 line Draw NPCs in yellow on minimap and skip drawing of warps. Based on idea by leeor_net. ........
2008-11-01Added a close button to the minimap so that it matches the other windows Ira Rice1-0/+1
better.
2008-10-23A few more compiler warnings fixed.Ira Rice1-3/+3
2008-10-13Changed minimap code so that it allows us to have larger minimaps, while Ira Rice1-5/+10
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-09Merged the movement branch into trunkBjørn Lindeijer1-3/+4
I consider this the only way forward. In my tests this code isn't actually doing worse than what was there before. Of course some cases are a bit broken, and I'm open to any kind of feedback so that we can fix those issues.
2008-10-04Changed minimap code to take minimaps twice the TMW size, added map Ira Rice1-5/+5
names on all of the maps, and redid minimaps to fit the new minimap code.
2008-07-18Import of client treeLloyd Bryant1-1/+1
2008-07-01Ported some GUI improvements from Legend of Mazeroth (GUI skinning via XML ↵Philipp Sehmisch1-3/+16
files, item descriptions on mouse-over, map names in minimap window, speech bubbles)
2008-04-17Draw NPCs in yellow on minimap and skip drawing of warps. Based on idea by ↵Dennis Friis1-1/+5
leeor_net.
2008-04-13Merged revisions 3915-3939,3941-3953 via svnmerge from Bjørn Lindeijer1-5/+0
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/branches/0.0 ........ r3915 | crush_tmw | 2008-02-23 18:18:34 +0100 (za, 23 feb 2008) | 1 line Assorted content updates by QOAL. ........ r3920 | crush_tmw | 2008-02-26 02:23:15 +0100 (di, 26 feb 2008) | 1 line Fixed some monster traps on southwest woodland. ........ r3923 | umperio | 2008-02-26 22:35:37 +0100 (di, 26 feb 2008) | 1 line Keep minimap status. Based on a patch by Knivey. ........ r3924 | umperio | 2008-02-26 22:47:07 +0100 (di, 26 feb 2008) | 1 line Added Modanung's mud tileset and applyed to some houses in Tulimshar. ........ r3938 | crush_tmw | 2008-03-02 00:32:44 +0100 (zo, 02 mrt 2008) | 1 line fixed transparency issue. ........ r3952 | umperio | 2008-03-07 10:47:40 +0100 (vr, 07 mrt 2008) | 1 line Added new items by Black Don, new xml definitions by Peavey. ........ r3953 | umperio | 2008-03-07 12:13:20 +0100 (vr, 07 mrt 2008) | 1 line Corrected names. ........
2008-02-26Keep minimap status. Based on a patch by Knivey.Eugenio Favalli1-5/+0
2007-11-20Merged revisions 3629-3630 via svnmerge from Bjørn Lindeijer1-6/+8
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk (but kept looks in Being class, since eAthena works that way) ........ r3629 | gmelquio | 2007-10-18 21:00:38 +0200 (Thu, 18 Oct 2007) | 1 line Removed player looks from generic beings. Prevented client termination on missing sprites. Merged weapon-type and attack-type fields for items. ........ r3630 | gmelquio | 2007-10-18 21:30:57 +0200 (Thu, 18 Oct 2007) | 1 line Fixed changelog message. ........
2007-10-18Removed player looks from generic beings. Prevented client termination on ↵Guillaume Melquiond1-5/+7
missing sprites. Merged weapon-type and attack-type fields for items.
2007-09-27Merged another bunch of changes from trunk to 0.0 to reduce the difference.Bjørn Lindeijer1-2/+2
2007-09-10Fixed minimap coordinates and improved look.Eugenio Favalli1-4/+4
2007-08-07Fixed my breakage of persistent window dimensions. Cleaned a few things ↵Guillaume Melquiond1-1/+1
along the way.
2007-08-07Marked most of the GUI as translatable.Guillaume Melquiond1-2/+3
2007-07-27Removed useless yet costly dynamic casts.Guillaume Melquiond1-2/+2
2006-08-29Updated NEWS file and made getAll return a reference instead of a pointer.Bjørn Lindeijer1-2/+2
2006-07-19Fixed radar dot size of local player and the color of the [TARGET] string.Bjørn Lindeijer1-1/+2
2006-03-09Made all class members named like mClassMember.Björn Steinbrink1-2/+2
2006-02-24Another bunch of cosmetic cleanups, ie mostly typedefs...Björn Steinbrink1-1/+1
2006-02-23A bunch of mostly cosmetic cleanups.Björn Steinbrink1-17/+6
2006-01-22Merged NETWORK branch (includes BEING_OVERHAUL).Björn Steinbrink1-28/+27
2005-09-29Improved a lot windows reset to default size and pos. Also corrected a few ↵Yohann Ferreira1-2/+2
the default win position. And moved the setposition from game to each win, to clarify the code.
2005-09-28Save and load X, Y, Height, and Width to useful wins.Yohann Ferreira1-1/+1
2005-09-28Added window internal name to every window. Useful to later get and save X, ↵Yohann Ferreira1-0/+1
Y, Height, and Width of these wins.
2005-09-17Only shows the minimap window if there's an minimap to the current map.Yohann Ferreira1-0/+6
2005-08-25Made our drawImage() method respect the clip area from the guichan graphics ↵Björn Steinbrink1-4/+1
part. Removed some (now) obsolete code. Fixed compilation errors.
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-1/+5
2005-08-10Moved knowledge about whether we use OpenGL into the Graphics class. Added ↵Björn Steinbrink1-10/+1
helper function for being creation to reduce code duplication. Some code simplifications.