summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-04-16Fixed TMWServ compilationPhilipp Sehmisch1-4/+0
2009-04-16Make sure math functions are still inlinedBjørn Lindeijer5-68/+33
A function call could be quite a large overhead on top of a fast square root function.
2009-04-15Clean up some more memory leaksJared Adams6-5/+15
And remove an unneeded variable
2009-04-15Merge the trade dialogJared Adams3-95/+47
2009-04-15Non-neon-colored HP barsunknown1-3/+3
* Defaults for hp bar are more reasonable * Code::Blocks project file updated to include Desktop.cpp and Desktop.h
2009-04-15Right, our ScrollArea deletes its contentBjørn Lindeijer1-1/+0
Fixes crash on closing login dialog...
2009-04-15Have the DropDown create its ScrollArea and ListBoxBjørn Lindeijer7-80/+21
And also clean them up again. Fixes some memory leaks and simplifies the code. Also got rid of the basically unused "opaque" setting of DropDown.
2009-04-15Made the PopupMenu a Popup subclassBjørn Lindeijer9-29/+33
It's a natural better fit. The SkinLoader was changed into a singleton, since it's used by both Window and Popup classes.
2009-04-15Assorted random cleanupsBjørn Lindeijer7-13/+18
2009-04-15Fix some memory problemsJared Adams3-0/+3
2009-04-15Add a config option to always use whipser tabsJared Adams4-7/+27
2009-04-15Merge branch 'master' of git@gitorious.org:tmw/mainlineJared Adams17-103/+218
2009-04-15Trim out (npc) tag from NPC names in PopupMenuTametomo1-2/+8
Generally, it's good to tack on this tag onto nearly everything, but for popup options, it looks a tad tacky. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-15Reduced maximum gradient delay to 100. 400 was just too high of an upperTametomo1-2/+2
bound to be useful to users. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-15Only notify the user that they will need to change maps for changingTametomo1-3/+6
whether or not to display particle effects when in game, since they don't need to see it beforehand. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-15Moved tile animations outside of the clock time polling loop. There's noTametomo4-12/+12
need to poll the CPU for them, when they already can compensate for missed clock ticks. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-15Fixed the width of the gradient type label for the Setup Color tab, as wellTametomo1-19/+32
as moving the delay slider down. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-15Some PopupMenu cleanups/fixes and additions.Tametomo8-31/+63
Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-15Exposed delay values to the user, but made it so that the delay is colorIra Rice5-63/+124
based, instead of global, so that the user can specify different delays for different types of actions. Signed-off-by: Ira Rice <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-15Rename the whisper tab creation commandsJared Adams2-11/+9
2009-04-15Make whisper tabs optionalJared Adams5-12/+71
2009-04-15HP Bar Gradual Changes Config (+ bugfixes)Falkreon5-23/+57
* 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 Adams6-51/+18
It has fast(inv)sqrt and weightedAverage. Also cleanup the last ocmmit a bit.
2009-04-14HP Bar Gradual ColorationFalkreon2-5/+55
Makes HP Bars gradually fade from green to orange to red as HP goes down (or up). It looks pretty :)~
2009-04-15Also hardcode the bold font, we ship it after allBjørn Lindeijer4-25/+14
Plus some tweaks and cleanups.
2009-04-14Cleanup of Sound class, fixing restoring of volumes and musicBjørn Lindeijer5-85/+89
While a previous commit fixed the restoring of music of the current map in the setup window, this commit makes sure that the Sound class itself will resume a previously playing song when it is re-initialized. Other fixes: * Restore the correct volumes when enabling sound * Play the right audio track during login * Specify which font to use for bold text
2009-04-14Add a default login music file nameJared Adams1-1/+1
2009-04-14Put the remaining unnamespaced handlers in a namespaceBjørn Lindeijer24-18/+98
Also fixed some initialization order warnings when compiling with tmwserv support and made two getters const.
2009-04-14Unduplicated the code that draws a quadBjørn Lindeijer3-59/+41
Shouldn't affect performance.
2009-04-13Some cleanup of the SkinLoaderBjørn Lindeijer5-152/+156
Mainly stopped it from parsing the skin XML files over and over again, but also fixed Skin leaking sticky button images and made some optimizations. The Skin class still has an 'instances' member which could be used for cleanup in theory, but is unused at the moment.
2009-04-13Some cleanup of the Configuration interfaceBjørn Lindeijer11-107/+121
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-13Revert forced FPS limitBjørn Lindeijer5-11/+8
Don't force an FPS limit when people don't want it. Just default to limit on 60 fps instead, but do allow it to be disabled. This reverts part of commit 4b7755fcae0de15951c508ec034158007c8b6cf3.
2009-04-13Fixed broken linksDavid Athay2-7/+7
2009-04-13Fixed @'s in a user's nickDavid Athay3-0/+24
2009-04-13Fix an input bugJared Adams1-1/+1
2009-04-12Properly interpret `PC is dead' information from eAthena serverFate1-0/+4
(cf. 5cf18a062ffca03196b83fe6fda8ea3e54079c57; apparently the change was lost later)
2009-04-12Remove remaining references to versionLabelJared Adams1-4/+0
2009-04-12Moved client version string creation to preprocessorBjørn7-41/+34
2009-04-12Cleaned up the ItemPopup class a bitBjørn12-78/+15
Removed methods updateColors, getItemName and getNumRows. The last one was also removed from some other classes.
2009-04-12Fix ChatTab changing to need alt when chattingJared Adams1-9/+13
2009-04-12Merge version strings, add version to setup, etcJared Adams5-31/+46
All instances of version strings should now use the same text. The version label was moved from main.cpp to Desktop. A new version label was added to SetupDialog to make it easier to get the version if you are already in game.
2009-04-12Removed a wrong ParticleEngine::clear callBjørn1-1/+0
This line must have gotten there during a merge, since the clearing of the particles was supposed to only happen after the player's map is reset (see 208d5a6c0523079ea1b2a2e69fd3e76804ada037). This fixes crashes on changing maps. Thanks to Bernd Wachter for finding the problem and providing useful valgrind output.
2009-04-12Append _F or _M to username in eAthena network layerBjørn Lindeijer12-74/+76
Abstracts it away and out of main.cpp and register.cpp.
2009-04-11Remove more support #ifdefsJared Adams12-94/+81
2009-04-10Fix popup to prevent an item from showing on warpsJared Adams1-1/+2
2009-04-10Revived the email field to fix registration crashBjørn Lindeijer4-3/+10
Now you can register new accounts on tmwserv again. The email field apparently gots lost during the merge somewhere.
2009-04-10Reduced the GCContainer to be even more trivialBjørn Lindeijer14-92/+25
A container that deletes all its children on destruction doesn't have to be so complicated. Also renamed it to simply Container, since I think it should simply be default behavior. WindowContainer and Popup classes now inherit from this Container.
2009-04-10Some cleanup of the equipment window codeBjørn Lindeijer6-86/+53
Also removed some unnecessary delete statements, since the Popup class already deletes its children and the ScrollArea already deletes its content.
2009-04-10Introduced a Desktop widget to handle the wallpaperBjørn Lindeijer12-101/+201
Cleans up main.cpp a little.