summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-01-09Hopefully fixed the crash related to player relations.Yohann Ferreira2-27/+48
I removed all the misuse of std::map::operator[] I could find, especially there: if (!(*container)[name]) where the [] was creating the entry while checking for its existence. This should avoid the memory corruption problem seen in the Mana-Mantis #400. Patch tested in game by: Ablu. Resolves: Mana Mantis #400 Reviewed-by: Ablu.
2012-01-09Made the chat text much more readable in every opacity case.Yohann Ferreira4-4/+94
I added text shadow and outline support to the browserbox, and made it adapt the text for the chattabs depending on the GUI opacity. Reviewed-by: Ablu.
2012-01-07Made the first choice item be selected at the beginningBen Longbons2-0/+11
Resolves Mana-Mantis: #432. Reviewed-by: Bertram, Ablu.
2012-01-07Changed German translation of Dexterity to Geschicklichkeit since Ausdauer ↵Erik Schilling1-3/+3
was misleading Resolves: Mana-manits #422. Reviewed-by: seeseekey.
2012-01-07Fixed minimap showing the right colors for npcs and monstersErik Schilling1-2/+2
Actually Bertram explained the fix in the bugtracker and I only did what he said there. Resolves: Mana-mantis #444. Reviewed-by: Bertram.
2012-01-06Made announcements spreading over all whispers and channelsErik Schilling2-0/+22
Resolves: Mana-mantis #430. Reviewed-by: Bertram.
2012-01-02Made the client capable of displaying gender of monsters and npcsErik Schilling2-2/+4
Reviewed-by: o11c, bjorn, Bertram.
2011-12-02Mac: Change to local SDL inclues.David Athay4-4/+4
2011-11-25Prevented circular include in sprite definitionsErik Schilling1-4/+15
When including a file that already is included the client won't try to load it again and end in an endless loop but stops parsing and logs and warning. Reviewed-by: bjorn.
2011-11-13Added background support to the equipment boxes.Yohann Ferreira15-0/+67
The background images are auto-centered. Also, for Manaserv, a new background parameter has been added in the box node of the equip.xml file to specify the background image. Note that the filename is relative to the gui theme folder. Reviewed-by: Thorbjorn Lindeijer Resolves: TMW-Mantis #769.
2011-11-12Removed hiding of button popup when setting the text to emptyYohann Ferreira2-8/+2
The text is never set to an empty string, especially not while the mouse is over the button. The popup will be updated or hidden by mouseMoved anyway. Reviewed-by: Thorbjorn Lindeijer
2011-11-12Removed some Channel and ChannelTab related sillinessThorbjørn Lindeijer3-14/+2
* Channel always has a ChannelTab, so need to check it for null * Removed duplicate handling of 'topic' command * No need to set Channel::mTab twice Reviewed-by: Yohann Ferreira
2011-11-12Fixed the button popup incorrectly shown when loading the window menu.Yohann Ferreira1-3/+1
This was due to a small logic error when setting the popup text. Reviewed-by: Erik Schilling
2011-11-12Prevent a potential crash when the chat channel is wrong.Yohann Ferreira1-1/+11
Reviewed-by: Erik Schilling
2011-11-01Merge github.com:mana/manaYohann Ferreira35-101/+98
Conflicts: src/localplayer.cpp src/net/manaserv/beinghandler.cpp src/net/manaserv/charhandler.cpp
2011-10-25Change the wrong, but mostly supported WIN32 macro to the correct _WIN32, ↵Bernd Wachter15-31/+30
enforced by -std=c++0x Reviewed-by: Thorbjørn Lindeijer
2011-10-23Fixed a certain class of Doxygen warningsThorbjørn Lindeijer17-60/+50
All cases of documentation for non-existing parameters are now fixed. Also marked a few getters as 'const', removed some superfluous 'inline' keywords and removed the unused 'forceQuantity' option from ItemContainer. Reviewed-by: Yohann Ferreira
2011-10-22Officially added the gender in the manaserv protocol.Yohann Ferreira3-4/+14
Reviewed-by: bjorn.
2011-09-30Fixed the negative XP notifications on levelups.Yohann Ferreira1-3/+20
This used to have an associated issue but I just can't find it anymore. Reviewed-by: Thorbjorn.
2011-09-30Merge github.com:mana/manaYohann Ferreira2-3/+12
2011-09-30Remove goto from dye.cppAndrei Karas1-2/+11
2011-09-30Fixed a typo in a default value.Yohann Ferreira1-1/+1
2011-09-30Revert "Made the first XP notification don't show anymore."Yohann Ferreira1-7/+1
This reverts commit 06fff57500242c37890459ceffdfff2bdf19f6d6. At least I tried :) I'd like to have a clear discussion about how we could initialize the skill and attributes values, without spamming the user.
2011-09-29Fixed the player direction update when picking up an item using the mouse.Yohann Ferreira1-0/+1
This also happened when trying to reach a monster. I didn't fix the pick up once the destination is reached as the fix will be a little more complex.
2011-09-29Fix negative XP on levelups.Yohann Ferreira1-3/+10
This used to have an issue but i just can't find it anymore.
2011-09-29Made the first XP notification don't show anymore.Yohann Ferreira1-1/+7
Resolves: Mana-Mantis #158.
2011-09-28Forgot to update the db version number in the client protocol file.Yohann Ferreira1-1/+1
2011-09-28Officially added the gender in the manaserv protocol - client part.Yohann Ferreira3-4/+16
2011-09-28Merge github.com:mana/manaYohann Ferreira5-1/+19
2011-09-29Fixed item popup still visible after closing inventory window.Erik Schilling5-1/+19
Reviewed-by: Bertram.
2011-09-28Small changes requested by o11c - part 2.Yohann Ferreira1-39/+38
Most noticeably I added the shortcut in a popup, even when there are no images to the image buttons in the windowmenu.
2011-09-28Small changes requested by o11c - part 1.Yohann Ferreira2-3/+8
2011-09-28Added true arrows graphics to tab area buttons.Yohann Ferreira5-3/+9
2011-09-28Made the shortcuts link actually use the plural in its caption.Yohann Ferreira1-4/+4
2011-09-28The shortcuts are now refreshed when reassigning keys.Yohann Ferreira5-10/+77
2011-09-28Added icons to the confirm and cancel button of the quit dialog.Yohann Ferreira5-2/+8
This a good example of use for the new graphics and button functionalities.
2011-09-28Fixed back the special window display in a basic but working way.Yohann Ferreira2-1/+4
This to avoid cluttering the gui until Crush has the time to fulfill his issue about those.
2011-09-28Added a naive way to display the window keyboard shortcut.Yohann Ferreira2-10/+31
This is not updated once the keys are reassigned but it will do the trick for now.
2011-09-28Reached the state where the menu bar is now using image buttons.Yohann Ferreira11-7/+15
I had to adapt a bit the images given by Enchilado to do that.
2011-09-28Made the button icon only shown when the icon file is valid.Yohann Ferreira3-9/+9
And falls back to the text based caption otherwise.
2011-09-28Added the setup button icon and optimized the image size.Yohann Ferreira3-1/+1
2011-09-28Changed the Social button to an image one.Yohann Ferreira6-12/+26
I also made the client able to keep the old behaviour, and i changed the button api to not require the icon frames size as it could easily guess them.
2011-09-28Added textpopup on mouse hovering support to buttons.Yohann Ferreira3-2/+74
I added a use of it to the menu buttons.
2011-09-28Small chages requested by o11c - part 2.Yohann Ferreira1-39/+38
Most noticeably i added the shortcut in a popup, even when there are no images to the image buttons in the windowmenu.
2011-09-28Small changes requested by o11c - part 1.Yohann Ferreira2-3/+8
2011-09-28Merge github.com:mana/manaYohann Ferreira0-0/+0
Conflicts: src/equipment.h src/net/tmwa/inventoryhandler.h
2011-09-28Got rid of the superfluous definition of the slot number for tA.Yohann Ferreira2-4/+4
2011-09-16Improve handling of packet lengths.Ben Longbons1-42/+46
* Use a symbol, VAR, instead of -1 for variable-length packets. * Also change it's value to 1, so the length can be properly unsigned. Note: A packet can't actually have length 1, since packet ID is 2 bytes. * Use correct type (uint16_t) for packet id and length in more places. * Avoid reading beyond the length of the array. * Immediately parse variable length packets with length 4 (i.e. no body) instead of waiting for another byte to arrive first. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2011-09-16Prevent copying of MutexLockerBen Longbons1-1/+11
There was a bug here, which wouldn't surface if the copy was elided. Fixed by using a move constructor. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2011-09-16Instead of SDL_mutex, use Mutex wrapper and MutexLocker for safetyBen Longbons2-23/+12
Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>