summaryrefslogtreecommitdiff
path: root/src/utils
AgeCommit message (Collapse)AuthorFilesLines
2011-04-30Merge branch '0.5'Yohann Ferreira1-8/+4
Conflicts: CMakeLists.txt po/fi.po po/fr.po src/gui/skilldialog.cpp src/localplayer.cpp src/net/manaserv/generalhandler.cpp src/net/tmwa/buysellhandler.cpp src/net/tmwa/generalhandler.cpp src/net/tmwa/playerhandler.cpp src/net/tmwa/specialhandler.cpp src/winver.h
2011-04-18Remove illegal macro names starting with underscore and capitalBen Longbons4-11/+11
2011-04-15Fix mkdir_r to not assume existence of PATH_MAXBen Longbons1-8/+4
Required to build on HURD, but good practice anyway. Reviewed-by: Thorbjørn Lindeijer
2011-02-01Merge branch '0.5'Thorbjørn Lindeijer1-3/+2
Conflicts: po/de.po src/game.cpp src/resources/wallpaper.cpp
2011-02-01Make it clear that our current sha256 code is GPLv2 onlyThorbjørn Lindeijer1-3/+2
Due to taking the version from InspIRCd, our version of the file is stuck on GPLv2 and can't legally be released as "GPLv2 or later". Fix the license header accordingly. We should probably consider replacing this code once again. Reviewed-by: Patrick Matthäi
2011-01-13Moved the normalize() function in strungUtils where it belongs.Yohann Ferreira2-0/+17
(Preparation for bringing a smaller item loading refactoring patch.) Trivial.
2010-09-27Centralized String to bool conversion into the client.Yohann Ferreira3-14/+20
The former XML::getBoolProperty() had a potential memleak and was unsafe when dealing with unknown values. Reviewed-by: CodyMartin. Resolves: Mana-Mantis #213.
2010-09-25Merge branch '1.0'Thorbjørn Lindeijer2-0/+39
Conflicts: src/actorspritemanager.h src/beingmanager.cpp src/game.cpp src/gui/beingpopup.cpp src/gui/chat.cpp src/gui/chat.h src/gui/inventorywindow.h src/gui/itempopup.cpp src/gui/socialwindow.cpp src/gui/statuswindow.cpp src/gui/widgets/chattab.cpp src/gui/widgets/chattab.h src/net/tmwa/inventoryhandler.cpp src/net/tmwa/partyhandler.cpp src/party.cpp src/sound.cpp src/utils/stringutils.cpp src/utils/stringutils.h
2010-08-29Move handling of autocomplete and input history into TextFieldJared Adams2-1/+40
Reviewed-by: Freeyorp
2010-08-15Remove the logToChat optionChuck Miller1-1/+1
This is a very old legacy option. Today its not very useful because the logger had become quite verbose that using it during run-time is not helpful. Reviewed-By: Jared Adams Reviewed-By: Freeyorp
2010-08-15Merge branch '1.0'Chuck Miller4-35/+288
Conflicts: mana.cbp mana.files src/CMakeLists.txt src/Makefile.am src/utils/xml.cpp
2010-08-13Simplify handling of compressed filesJared Adams3-22/+235
ResourceManager will now check for ".gz" and act appropriately (unless told not to). Compression handling functions are now in new utils/zlib files, along with a function to load a file from drive, uncompressing it if it ends in ".gz". Reviewed-by: Freeyorp
2010-08-05Add better XML error logging and do some related cleanupJared Adams2-14/+51
Error details from libxml2 are no longer ignored and are properly logged now. XML initialization code is now in the XML namespace. The XML::Document constructor that took a data pointer was removed because it wasn't being used and it would make the new logging less useful (no filename). Signed-off-by: Chuck Miller
2010-07-28Centralized configuration default values using the VariableData system.Yohann Ferreira2-2/+22
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-07-10Moved parsing of specials.xml from gui/specialswindow.cpp to separate source ↵Philipp Sehmisch2-4/+19
files. Restored functional recharge bars in specials window. Individual specials are only shown after the server informed the client about their status. Made level label, use button and progress bars optional. Their use is controlled through specials.xml. The special window button is again shown even when the player has no specials. This problem needs to be solved differently now for architecture reasons. Reviewed-by: Jaxad0127
2010-06-13Merge remote branch '1.0/1.0'Jared Adams2-0/+13
Conflicts: data/graphics/CMakeLists.txt data/graphics/Makefile.am src/client.cpp
2010-05-27Fix drawing incorrect utf8 strings issue.Andrei Karas2-0/+13
Reviewed-by: Bertram Resolve: Manasource Mantis #143
2010-05-21Remove some unneeded printfsJared Adams1-1/+0
2010-03-12Split Palette into Theme and UserPaletteJared Adams1-1/+7
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-03-03Fix possible memory corruption.Andrei Karas1-1/+1
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-03-01Handle cases properly where the path already exists, but not as directoryBernd Wachter1-6/+18
2010-02-25Fix the X11 paste code to actually return true on successThorbjørn Lindeijer1-0/+2
Reviewed-by: Jared Adams
2010-02-25Added paste facility from the Wormux projectThorbjørn Lindeijer2-0/+350
With CMakeLists.txt adaptions from the Aethyra project. Reviewed-by: Bernd Wachter Reviewed-by: Jared Adams
2010-02-25Add support for special folder lookup on Win32Bernd Wachter2-0/+108
Reviewed-by: Jared Adams
2010-02-25Don't support backslash as path separator for non-windows platformsBernd Wachter2-7/+15
Reviewed-by: Thorbjørn Lindeijer
2010-02-25Add a simple recursive mkdirBernd Wachter2-0/+119
Reviewed-by: Jared Adams
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 headersFreeyorp10-10/+20
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer10-40/+30
2010-02-07Updated Copyright year to 2010!Bertram10-10/+10
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-01-24Autocomplete names with quotes if the string begins with a / or @ (commands)Blue Sans Douze1-1/+1
2010-01-10Change code styleAndrei Karas2-18/+37
2010-01-08Small refactoring in chat auto completingAndrei Karas2-2/+2
2010-01-07Chat auto completingAndrei Karas2-0/+22
2010-01-07Fix a typoFreeyorp1-1/+1
2010-01-06Fixes so mapreader ignores the case of object typesChuck Miller2-0/+15
This will decrease warnings in the log file by a good bit
2009-12-20Fixed an uninitialized pointerPhilipp Sehmisch1-1/+1
2009-12-19Added support for resources.xml from update server... Also added option to ↵Chuck Miller2-4/+33
download music optionally I had to edit the XML wrapper a bit, basicilly its constructor can now take a optional thrid arguement which will tell it to use a resman or open the file directly Also I added fallback support for the old resouce2.txt so servers don't have to upgrade if they do not want to
2009-12-10Avoiding compiler warnings with gcc 4.4.0Stefan Dombrowski1-1/+1
With the changed __attribute__ it compiles now without warnings on gcc 4.4.0. For other compiler this should work too, because this format is already used for log() in log.h.
2009-11-03Remove more _SUPPORT ifdefs and do some cleanupJared Adams2-0/+27
2009-10-05Hide color codes from speech textAndrei Karas2-0/+20
2009-08-10Move libintl from localplayer to gettextJared Adams1-2/+2
Better for future use.
2009-05-12Don't unconditionally include config.hBjørn Lindeijer1-0/+2
Since it isn't generated on all platforms or by all build systems. Problem reported by Aard.
2009-05-07Fixed compile issue with gcc 4.4Bjørn Lindeijer1-3/+5
2009-05-03Moved strprintf into stringutils.{h,cpp}Bjørn Lindeijer4-82/+35
2009-04-29Changed palette colors to be once again stored in a human readableTametomo2-2/+17
format once again. This was originally reverted because it caused a regression on Windows, but not Linux, which was later found out to be because there's a Linux kernel function which will convert hex strings into an integer format, while Windows doesn't share the same luxury. So, to avoid any issues, this commit adds an atox (ascii to hex) string utility, and uses it when parsing hex strings for colors from the configuration file. Also ensured that people who have colors saved in the old, raw integer format can get their colors converted to hex values. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-16Make sure math functions are still inlinedBjørn Lindeijer2-61/+33
A function call could be quite a large overhead on top of a fast square root function.
2009-04-15HP Bar Gradual Changes Config (+ bugfixes)Falkreon1-1/+1
* Setup menu now has settings for the HP bar colors. * StatusWindow handles HP bar changes a little more consistently. * Fixed a bug that cut weightedAverage values in half, making the HP bar very dark.
2009-04-14Add misisng mathutils filesJared Adams2-0/+89
2009-04-14Start a MathUtils fileJared Adams1-24/+0
It has fast(inv)sqrt and weightedAverage. Also cleanup the last ocmmit a bit.