Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
A function call could be quite a large overhead on top of a fast square
root function.
|
|
And remove an unneeded variable
|
|
|
|
* Defaults for hp bar are more reasonable
* Code::Blocks project file updated to include Desktop.cpp and Desktop.h
|
|
Fixes crash on closing login dialog...
|
|
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.
|
|
It's a natural better fit. The SkinLoader was changed into a singleton,
since it's used by both Window and Popup classes.
|
|
|
|
|
|
|
|
|
|
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>
|
|
bound to be useful to users.
Signed-off-by: Tametomo <irarice@gmail.com>
Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
|
|
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>
|
|
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>
|
|
as moving the delay slider down.
Signed-off-by: Tametomo <irarice@gmail.com>
Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
|
|
Signed-off-by: Tametomo <irarice@gmail.com>
Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
|
|
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>
|
|
|
|
|
|
* 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.
|
|
|
|
It has fast(inv)sqrt and weightedAverage.
Also cleanup the last ocmmit a bit.
|
|
Makes HP Bars gradually fade from green to orange to red as HP goes down (or up). It looks pretty :)~
|
|
Plus some tweaks and cleanups.
|
|
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
|
|
|
|
Also fixed some initialization order warnings when compiling with
tmwserv support and made two getters const.
|
|
Shouldn't affect performance.
|
|
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.
|
|
Mainly avoid all the convertions from integer to float and then to
string and also back from string to float and then to integer.
|
|
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.
|
|
|
|
|
|
|
|
(cf. 5cf18a062ffca03196b83fe6fda8ea3e54079c57; apparently the change
was lost later)
|
|
|
|
|
|
Removed methods updateColors, getItemName and getNumRows. The last one
was also removed from some other classes.
|
|
|
|
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.
|
|
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.
|
|
Abstracts it away and out of main.cpp and register.cpp.
|
|
|
|
|
|
Now you can register new accounts on tmwserv again. The email field
apparently gots lost during the merge somewhere.
|
|
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.
|
|
Also removed some unnecessary delete statements, since the Popup class
already deletes its children and the ScrollArea already deletes its
content.
|
|
Cleans up main.cpp a little.
|