summaryrefslogtreecommitdiff
path: root/src/resources
AgeCommit message (Collapse)AuthorFilesLines
2011-04-28Fixing endless loop if the xml promises too many imagesStefan Dombrowski1-1/+1
Reviewed-by: Bertram
2011-02-19Minor code formatting and fixed a comment.Yohann Ferreira1-2/+4
Trivial fix.
2011-02-10Add support for CSV map dataJared Adams1-1/+34
Reviewed-by: Freeyorp
2011-02-10Add support for zlib map layer compression.Andrei Karas1-2/+2
Reviewed-by: Bertram
2011-01-19Fix the wallpapers loading broken logic.Yohann Ferreira1-5/+3
Trivial.
2010-12-22Remove ambientoverlay class and filesChuck Miller2-164/+0
It was renamed and duplicated to "ambientlayer"
2010-10-22Turned the OpenGL and disable transparency options as static members.Yohann Ferreira4-41/+56
- Now OpenGL and the transparency disabling are set at startup and not read again for displaying graphics, preventing graphic errors before startup. - We also agreed long time ago that SDL specific functions should have a SDL prefix. The header has been rearranged a bit to do so. - Also fixed a possible discrepancy in the hasAlphaChannel() function. Reviewed-by: CodyMartin. Resolves: Mana-Mantis: #260.
2010-10-17Added Low CPU Mode toggle in video setup. Defaults to On.madcamel@gmail.com1-0/+4
This disables the Image::setAlpha() function, which uses 60% of the client's CPU cycles. When enabled, visual quality is slightly decreased, especially with the particle system. Toggling this setting On from an Off state requires a client restart or the graphics look quite funny. Bertram's addition: - Renamed 'Low CPU' to 'Disable transparency (Low CPU)' in the gui for better understanding. - Removed the sprite display with 30% opacity when disabling transparency since it made monsters and drops be drawn above all layers at full opacity. - Made the OpenGL mode disable the 'low CPU mode'. - Fixed the GUI logic as much as possible. Please note that the GUI opacity slider stays enabled when transparency is disabled even if told to be disabled in that case. Reviewed-by: CodyMartin, 4144, MadCamel.
2010-10-16Implement opacity cache for SDL surfaces.Andrei Karas4-10/+130
Enabled by default. Can be disabled in configuration option "alphaCache" if set it to 0. Reviewed-by: Bertram
2010-09-05Unloading mNamedItemInfosStefan Dombrowski1-0/+1
How to reproduce the bug: Switch login, then for every item there is this warning in the log file: "ItemDB: Duplicate name of item found". Reviewed-by: thorbjorn
2010-08-13Simplify handling of compressed filesJared Adams3-152/+44
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-03Improve OpenGL speed.Andrei Karas1-1/+6
Use batch commands and not selecting already selected texture. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-07-11Made the different hard-coded paths and files be now taken from theYohann Ferreira10-21/+74
data/paths.xml configuration file. Also added default gui theme path in branding and default wallpaper path and file searched respectively in the branding and paths.xml files. Hard-coded values are still used as fallbacks. Resolves: Manasource Mantis #148. Reviewed-by: jaxad0127.
2010-06-03Unload loaded DBs before loading them againJared Adams5-5/+5
This greatly simplifies handling DBs when changing states. No more need to manage unloading in Client (except when exiting). Reviewed-by: Thorbjørn Lindeijer
2010-05-21Fix a crash dealing with rescaled overlays under SDLJared Adams1-0/+1
Reviewed-by: Philipp Sehmisch
2010-05-21Fix some issues found by CppcheckJared Adams1-1/+5
2010-05-06Make the logic for collision tiles more strictThorbjørn Lindeijer1-1/+1
Only recognize the collision tile as colliding, since having everything except the empty non-collision tile collide is confusing. Should also be changed on the server and in the tmwAthena exporter of Tiled. Reviewed-by: Dennis Friis
2010-04-17Changed eAthena protocol name to TmwAthena and changed the config files ↵Bertram1-2/+2
accordingly. This makes room for the actual eAthena protocol future inclusion.
2010-04-16Remove an unneeded monster job offset in eAthena netcodeJared Adams1-2/+4
2010-04-16Add race support for eAthenaJared Adams3-13/+28
The job/class field is used to select the race. If the given race isn't defined, it falls back on the first race (so servers can use jobs/classes without races). Also rename job to subtype for Being and subclasses, and begin support for changing monster and NPC subtypes on the fly (particle effects still need to be reset when they change). Reviewed-by: Bertram
2010-04-08Fix handling of "../" and fix a bug in TSX handlingJared Adams2-12/+36
2010-03-21Make the Dye class more flexible and fix an issue in itJared Adams2-23/+68
After the last change, it could go over the end of the colors array. Reviewed-by: Chuck Miller Reviewed-by: Freeyorp
2010-03-20Fix default offset in monster db for old servers.Andrei Karas1-1/+4
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-03-20Add some defaults for MonsterInfoJared Adams2-2/+4
2010-03-12Add an optional offset property to monsters.xmlJared Adams1-1/+3
And remove the hardcoded offset from eAthena's BeingHandler. Reviewed-by: Freeyorp
2010-03-12Split Palette into Theme and UserPaletteJared Adams2-15/+38
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-08Fix crash with incorrect wallpaper names. (From 4144)Bertram1-11/+16
Reviewed-by: Bertram
2010-03-07Added config option for disabling particle effects on map warps.Philipp Sehmisch1-2/+7
Reviewed-by: Jared Adams
2010-03-04Implemented markers for warp portals defined in map files in form of ↵Philipp Sehmisch1-3/+12
particle effects. Reviewed-by: Jared Adams <jaxad0127@gmail.com>
2010-02-28Make the gui more themeable and distribute two themesJared Adams1-1/+2
The older gray theme and the new wood theme are available as themes. The gray theme needs some new graphics for hilights. Add a theme option for branding and add path/to/branding/data to the PhysFS search path. Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Chuck Miller
2010-02-21Do some more copyright header cleanupsJared Adams4-4/+2
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 headersFreeyorp42-42/+84
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer46-180/+134
2010-02-14Don't quit the client on invalid decRefThorbjørn Lindeijer1-3/+5
It's not a fatal error.
2010-02-14Give more meaningful error messages when decRef() fails.Tametomo1-2/+5
Signed-off-by: Tametomo <irarice@gmail.com>
2010-02-10Adds missile-particle attribute to items and monster attacksChuck Miller5-3/+29
To use simply add something like: missile-particle="graphics/particles/arrow.particle.xml" to the item's or monster's xml entry This will only work on equipped weapons, and on specified monster attacks. This patch also fixes a memory leak with target particles
2010-02-09Don't translate the logThorbjørn Lindeijer1-11/+11
It's not meant for the user, translating it only burdens both us and our translators unnecessarily.
2010-02-09Got successfully rid of tile width/height fallback values as asked by Jaxad.Bertram1-9/+18
But I added some logs when speed and other actions where refused due to game/map uninitialized. This could help.
2010-02-09Separated fallback defaults for tile width and height.Bertram1-3/+0
2010-02-07Nicer way of indicating that we're waiting on the serverThorbjørn Lindeijer2-4/+2
No longer a dialog with an annoying progress bar (due to going back and forth), but rather a progress indicator that integrates better with the background.
2010-02-07Updated Copyright year to 2010!Bertram42-42/+42
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-02-01Moved from SDLrescalefacility to SDL_gfx.Bertram3-571/+3
2010-01-17Fix equiping charm itemsChuck Miller2-1/+3
2010-01-12Standardize header orderJared Adams17-29/+38
Also remove some extra new lines and fix eAthena's PartyTab define guards.
2010-01-10Change code styleAndrei Karas6-139/+158
2010-01-06Fixes so mapreader ignores the case of object typesChuck Miller1-4/+3
This will decrease warnings in the log file by a good bit
2009-12-25Added support for map background images which work exactly like overlays, ↵Philipp Sehmisch3-1/+164
just that they are drawn before the tiles instead of afterwards. Renamed overlays to foregrounds (but kept backward compatibility intact)
2009-10-14Add more detail to DebugWindowJared Adams1-0/+2
2009-10-03Added support for the "too fast" login errorThorbjørn Lindeijer1-4/+2
So that next time somebody encounters it, it doesn't turn up as "unknown error".
2009-10-02Updating Code::Blocks project and adding header to fix compiler error.Stefan Dombrowski1-0/+1