Commit Graph

3261 Commits

Author SHA1 Message Date
auria
244b40bfbf Added support for deleting added keyboard configurations
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5929 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 22:40:54 +00:00
xapantu
1394c1b6d9 minor code cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5927 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 18:27:16 +00:00
xapantu
ec063ef163 Adding a package-update.png image
Show 'update' instead of uninstall or install for addons which can be updated (maybe we need a third button)
Add a special icon in the addons lists if the addon can be updated

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5926 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 18:19:05 +00:00
xapantu
96abb55c7d Change the name of the addons screen (from options to addons)
Use a single pointer for addons, it is now initialized in main()
Working on the update screen, we can now see which addons can be updated

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5925 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 18:02:48 +00:00
xapantu
5602c1663e Fix the segfault when going to the network or the kart selection screen after going to the addons menu
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5924 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 17:11:46 +00:00
auria
42565ba603 Removed NoCoy from UserConfigParam because it can (and is) copied
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5923 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 15:22:22 +00:00
hikerstk
c13933a792 Added more NoCopy.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5922 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 11:39:19 +00:00
hikerstk
e3be1c3bc8 Improved handling in case that not enough karts are available, and
they are all used by players - admittedly only happens in extreme
debugging environments ;)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5921 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 11:37:36 +00:00
hikerstk
0fd5c79b33 Fixed crash in case that the default kart can not be found, instead an error message
is printed (Auria, perhaps there is a better solution than the exit call??).
Also remove unnecessart 'this->'.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5920 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 11:19:21 +00:00
hikerstk
141b80b112 Started to add NoCopy as a base class to all objects to help detecting if an
object is actually copied.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5919 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 06:18:08 +00:00
hikerstk
91e86e83b8 Applied jmimu's patch, to fix the real problem with the disappearing
icons. Thanks for the patch!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5918 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 05:56:18 +00:00
hikerstk
8742b8e127 Added debug output in case that the bullet assertion crash (see
bug 3058932).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5917 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 23:44:33 +00:00
hikerstk
b223901f7a Added more debug output in case of an assert that was triggered.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5916 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 23:06:21 +00:00
hikerstk
460db043ea Improved race-result screen not to show the times in FTL mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5915 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 23:05:31 +00:00
xapantu
2d17e2c2b8 Change back button id in the addons dialog to have a proper cancel button
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5914 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 18:04:22 +00:00
xapantu
4fd864fc4b Comment useless variable to remove compiler warning (and optimize a little)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5913 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 17:58:51 +00:00
hikerstk
fb7cd0e161 Applied jmimu's patch to fix bug 3059574 "Race icons
disappearing", which is triggered when AI karts have
finished the race. Thanks a lot!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5912 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 13:46:51 +00:00
hikerstk
55d076768c Added an epsilon to test if a flyable is inside of the track. Hopefully this
avoids an assertion crash in bullet (triggered because a point is outside
of the AABB) - small floating point variation can cause bullet's AABB
to be slightly different from STK's AABB (=track size).
This should fix bug 3058932 (though I have not been able to reproduce
the problem).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5911 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 13:38:23 +00:00
hikerstk
707c440548 Fixed bug in bugfix ;) Non-debug mode would still crash.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5910 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 11:25:48 +00:00
hikerstk
01a3da7920 Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5909 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 06:19:37 +00:00
hikerstk
1d4471f7c4 Moved handling of kart elimination into emergency animation (since
it's closely related, i.e. removing and adding bullet bodies), and
fixed bug 3059830).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5908 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-06 23:08:27 +00:00
hikerstk
022464830c Added test for missing dimension to avoid assert in bullet
(though this does not fix bug 3058932).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5907 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-06 23:05:56 +00:00
auria
bc7f48d5e5 tweak text bubble widget so that the text cannot go too close to the right edge of the widget
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5906 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-06 17:50:29 +00:00
auria
381ac727b0 Fixed RTL credits + removed annoying debug print from there
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5905 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-06 17:41:05 +00:00
auria
3154a8c23b Fixed warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5904 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-06 17:01:06 +00:00
auria
e4b1d27aca Fixed compilation problem in non-debug mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-06 16:59:00 +00:00
hikerstk
1eb2aed0bf Fixed skipping of the first result table (see bug 3059531).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5902 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-06 11:11:38 +00:00
hikerstk
8b29d20866 Fixed missing stars animation, which is now moved completely into
EmergencyAnimation (see bug 3059588).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5901 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-06 11:07:41 +00:00
hikerstk
a9d0acef3e Bugfix in new animated icons: if the kart positions were not in the right order
when stk is started (i.e. kart with world id 8 is on position 10 instead of 9)
then the race gui would crash. While this situation should not happen (the 
incorrect position happens if a kart has an invalid start position and is 
therefore rescued when the 'go' happens), this patch avoids a crash, helping
tpo diagnose other problems.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5899 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-05 23:41:59 +00:00
hikerstk
ebf6f561a9 Completely removed getRaceResultOrder functions, added debug support
for duplicated ranks to world_with_rank.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5898 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-05 14:05:59 +00:00
hikerstk
442168e845 More bug fixes for FTL mode, and started some code simplification.
By now FTL should basically work (i.e. not crash and list karts 
in the right order at the end), though the reported times are
still not correct.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5897 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-05 01:07:44 +00:00
hikerstk
7688b613ec Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5896 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-05 01:05:52 +00:00
hikerstk
2f25be8333 Updated project file, removed compiler warnings, worked around
compilation problem on windows related to directory removal
for the add on server. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5895 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-05 01:04:50 +00:00
auria
aca58a4ddf Disabled clipping in our font. Welcome back the bottom of letter 'g' and other similar stuff that was getting cut off due to over-agressive clipping of letters
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5893 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-05 00:26:35 +00:00
auria
6ca4d0f642 Enlarged AddDeviceDialog so that hopefully clipping no more occurs on any resolution
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5892 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-05 00:13:41 +00:00
auria
ee2ffba374 Removed many abuses of the all-inclusive widgets.hpp header
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5891 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-05 00:10:31 +00:00
auria
0273249bad tweaked help bubbles after testing in various languages
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5890 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-04 23:55:32 +00:00
auria
93d2f49671 Fixed remaining issues with text bubbles by moving them to top of the hierarchy when focused
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5889 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-04 23:40:30 +00:00
auria
4a1a3df201 Improved look and behaviour of new bubble widget
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5885 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-04 21:51:01 +00:00
auria
431e65b745 Added bubble widget to work around clipped text in help menu .I'm not sure I like it, and it's especially ugly in the glass skin, but that can be worked on later.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5884 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-04 20:24:42 +00:00
auria
15523034da Applied icon outline patch by jmimu, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5883 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-04 18:29:04 +00:00
auria
5d631158db Reversed WIP icon background patch that I accidentally committed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5882 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-04 18:20:11 +00:00
auria
4263f9a373 Fixed the small icons in the race paused screen that looked weird
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5881 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-03 20:14:39 +00:00
auria
1ab4c71db2 Fixed bug with text not wrapping in small ribbon elements
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5880 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-03 20:06:51 +00:00
auria
bc490ef54e Added ability for setting some labels to a different color, to improve on the unreadable text on dark background issue. Colors may need to be tweaked.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5879 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-03 19:42:36 +00:00
auria
2171874f26 Implement silly hack to get whether the current language is RTL (but at least it works)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5877 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-03 18:57:44 +00:00
auria
94c13d95e5 Updated Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5876 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-03 12:46:06 +00:00
hikerstk
059a599e47 Bugfix: eliminated kart where not added back properly when restarting a race.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5875 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-03 02:12:57 +00:00
hikerstk
b1205821b2 Changed implementation of slipstream to make it less likely that AI
will form 'trains': you have to slipstream for a certain amount of 
time, then (indicated by blue nitro sparks appearing) you will get
a zipper boost. This avoids the previous issue that by getting a
bonus even after a single frame of slipstream that trains are build
(since an overtaken kart will become faster, it's easy for the 
overtaken kart to keep on getting slipstream bonus. Now the overtaking
kart gets a zipper and is therefore far enough ahead of the overtaken
kart as to not giving it a slipstream bonus).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5874 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 22:42:35 +00:00
hikerstk
73339a9510 Fixed problem with result screen in follow the leader moder.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5873 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 22:35:16 +00:00
xapantu
c6b5ba2e76 Adding a 's' to the addons type when removing it directory, it is data/kart, not data/karts ^^
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5872 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 16:41:10 +00:00
xapantu
58637fb82a Move removeDirectory to file_manager (for addons uninstall)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5871 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 16:30:17 +00:00
xapantu
6b977c1600 - Center the text which show 'Downloading...' in the addons manager
- Use 'uninstall' instead of 'install' when the addon is installed

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5870 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 15:53:10 +00:00
xapantu
53037c25e1 Fix a segfault problem with addons (the buttons are now loaded from a file, and the code still used some button pointer to desactivated them, but they was NULL)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5869 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 15:24:56 +00:00
xapantu
8af8d1ab69 Improve the 'download in progress code' to be less verbose
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5868 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 15:15:31 +00:00
xapantu
aa90e1daac Removing useless print int the credits screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5866 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 15:00:17 +00:00
hikerstk
1b3778ca6a Moved setting of the position of each kart into
setKartPosition, some simplifications to ftl.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5865 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 13:38:23 +00:00
hikerstk
3480562b78 Added a new object in the world hierarchy (WorldWithRank) which
contains all codes related to ranking the karts (which is used
to display the icons in the race gui and the end result table).
The battle mode should now be fixed, but follow-the-leader
has still issues and will most likely crash at the end.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5864 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 13:14:07 +00:00
hikerstk
509e8f24df Removed debug output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5863 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 13:10:31 +00:00
hikerstk
548ebab371 Fixed (at least one) bug in new race gui which caused battle mode not to
work anymore (battle modes don't have distance along track).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5862 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 12:47:28 +00:00
hikerstk
ebd72f318b 1) Fixed last lap sfx still being played when a race is restarted.
2) Fixed last_lap sfx not being played in the last lap of a restarted
   race.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 03:03:37 +00:00
hikerstk
1643701ff7 Applied jmimu's patch to remove 'new laps' etc. messages when a race is
restarted.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5859 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 02:59:52 +00:00
hikerstk
10616dab38 Applied jmimu's patch which shows players affected by attachments
and explosion in the player icon list, and 'animates' if a kart
is overtaken another kart. Thanks a lot for this patch!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5856 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 00:44:11 +00:00
hikerstk
0e84cdf091 Modified behaviour of startup boost: instead of giving it to the first
two karts, it is now given for all karts starting withint a certain
amount of time. These times and boost value are specified in
stk-config.xml.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5855 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 00:19:06 +00:00
auria
cdea5f6a72 Removed the need to specify an empty label on buttons/labels when a label needs to be set programatically at runtime, this avoids empty strings appearing in translation catalog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5853 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-01 16:09:09 +00:00
auria
1bfaf9d4f5 Update to translation script to pick up kart names + fixed many instances where gettext or the XML parser would complain
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5851 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-01 16:01:19 +00:00
auria
4f603d7dc1 Removed broken and unneeded reference from Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5850 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-01 15:31:03 +00:00
hikerstk
4f3c9c7772 Avoid unnecessary conversion from std::string to char *.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5848 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-01 03:24:47 +00:00
hikerstk
2a37d303fa Fixed compiler warning (unused variable).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5847 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-01 02:25:25 +00:00
hikerstk
2764edde6d Added error messages to stderr if there is a problem with a music files
(the original exceptions are silently ignored, so no message to the user
indicating that a problem was detected).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5838 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-31 23:08:57 +00:00
hikerstk
75bfa4946b Fixed crash in case that an invalid .music file is in a track directory.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5837 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-31 23:06:24 +00:00
hikerstk
c5cb36e8e7 Removed now unnecessary heading,pitch,roll variable m_hpr.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5836 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-31 13:04:04 +00:00
hikerstk
48e7b4542b Fixed auto-rescue when a kart is about to topple over.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5835 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-31 10:30:26 +00:00
xapantu
b69b719fcd Fix the problem with the thread that tried to access to a screen that could be deleted
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5834 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-31 09:12:18 +00:00
hikerstk
e97c486c77 1) Fixed .music XML files and reading code to be more in line
with our 'standard' way of using xml files.
2) Some code cleanup.
3) Added support for specifying tracks in .music files again.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5832 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-30 23:21:06 +00:00
hikerstk
e6075dc5d6 Fixed white spaces in source code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5831 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-30 23:17:52 +00:00
hikerstk
483479d556 When an explosion is triggered by driving on a banana with a bomb attached,
the banana will now be disabled long enough to drive away once the explosion
animation is finished (previously karts would get punished twice, since after
the explosion they would be hit by the banana again).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5830 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-30 22:38:50 +00:00
hikerstk
6392dd8e26 Removed debug code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-30 00:38:57 +00:00
hikerstk
73f7d795e7 Applied work around for a compiler bug, see 3014609 for details (one
bullet source file needs to be compiled with one additional flag to
avoid this bug causing STK to crash).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5820 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-30 00:30:18 +00:00
hikerstk
1ddb083b0e Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-30 00:21:04 +00:00
hikerstk
c779232681 As default the top button is now set to have to focus when the race
result buttons are being displayed. This avoids the problem that a
player might accidentally trigger 'abort GP' when pressing 'fire'
repeatedly to skip animations.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5816 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-29 23:17:56 +00:00
hikerstk
3890ee7a5d Fixed bug 3055452: crash at end of race (caused by displaying a
'new lap' message while the race result is being displayed). All
messages are now simply ignored (instead of causing an assertion
error).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5815 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-29 23:13:28 +00:00
auria
edc613ed10 Added license info regarding new font + removed debug prints
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5809 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-29 19:56:40 +00:00
auria
e79025b041 Fixed crash in font code, updated font loading code to allow splitting our huge XML file so that chinese can be in a separate file, switched to wqyMicroHei for chinese font (font not included in SVN because of size)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5808 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-29 19:28:57 +00:00
hikerstk
9b74339431 Fixed bug 3041526 - speedometer display was incorrect for higher speeds.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5806 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-29 12:56:08 +00:00
auria
cc92619d32 Removed old unused code that got in the way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5804 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-28 18:39:28 +00:00
auria
1ac59260eb Fixed broken music gain property in music files
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5803 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-28 18:38:10 +00:00
auria
045317ccd1 Fixed crash due to uninitialized variable in abstract top level container
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5795 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-28 01:02:13 +00:00
auria
d6256b3362 Added support for ambient light track-wide (Joerg: am I duplicating something that already exists somewhere else?)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5792 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-27 15:41:24 +00:00
hikerstk
6c28a366d3 Added support for skipping animations by pressing 'fire'.
Fixed some animations that were not skipped correctly.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5783 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-26 10:16:58 +00:00
hikerstk
891356f8eb Prevent karts from early starting by driving backwards (bug 3053199).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5782 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-26 04:23:05 +00:00
auria
8df52854fe Added way for GUI screens to receive all player actions
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5779 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-26 00:08:10 +00:00
hikerstk
f2080fcab4 Skip gp-table-resorting animation if the GP standings are unchanged,
reduced time between point-increase and gp-table-resorting.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5778 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-25 22:55:58 +00:00
hikerstk
4b37a6992a Fixed incorrect animation frame in GP win/lose animations (see bug
3041529).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5777 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-25 14:08:16 +00:00
hikerstk
a3dc17a7dd Fixed handling of ESC (which previously would close the screen, without removing the
actual race result gui). ESC now allows some skipping of animations.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5776 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-25 13:54:28 +00:00
hikerstk
d6ab91d14d Fixed crash when adding new players, see bug 3052858.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5775 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-25 12:30:28 +00:00
hikerstk
5c0a18747e Fixed comment, and removed debug code to test unlocking.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5774 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-25 00:58:45 +00:00
auria
cf7838db70 Removed accidentally committed debug prints
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5773 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-25 00:28:58 +00:00
hikerstk
7c6dc77365 Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5772 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-24 23:35:43 +00:00
hikerstk
18444e16e0 Bugfix (stupid windows caseless file system).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5771 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-24 23:33:30 +00:00
hikerstk
18b7bd7736 Added new race result gui, which is an actual screen now. This is still work in progress
(e.g. atm it's not possible to skip part of the result animations, so for now you have
to wait till the buttons appear before you can continue).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5770 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-24 23:19:14 +00:00
hikerstk
433e1f42e2 Made Widget::m_text private and provided setter/getter functions
instead. The setter will automatically also set the corresponding
text in an irrlicht widget (if the irrlicht widget exists at that time).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5769 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-24 23:07:13 +00:00
auria
58e0671f9f Removed debug print accidentally committed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5768 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-24 00:33:33 +00:00
auria
57b6375a85 Made invisible widgets non-triggerable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5767 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-24 00:32:03 +00:00
auria
580f36fd95 Added setVisible method to Widget. Unfortunately irrlicht allows hidden widgets to be navigated to so calling setVisible(false) doesn't disable widgets
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5766 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-24 00:15:10 +00:00
xapantu
0892f3004a Re-fix the credits code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5765 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-23 14:16:39 +00:00
xapantu
39281ee8a7 Cleaning up the translator-credits code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5763 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-23 14:10:36 +00:00
xapantu
0f7bb742ab Merge translations
Fix the Credits screen for Launchpad contributions

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5762 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-23 14:04:45 +00:00
xapantu
5605a4c864 Adding support for the translator-credits string, it will add automatically the name of the translators
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5760 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-22 18:13:49 +00:00
xapantu
9cfeac1ed4 Adding a mutex in the main_screen to avoid problem with the thread that loads the news
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5759 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-22 17:51:48 +00:00
hikerstk
bae43d78df Very minor layout changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5758 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-21 13:21:21 +00:00
hikerstk
1b1de55a20 Added some debug code to inform of incorrect removal of widgets.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5757 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-21 13:18:24 +00:00
auria
ca63182f5c Added FIXMEs to annotate a minor set of bugs in the layout code that Joerg just stumbled upon
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5756 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-18 23:59:05 +00:00
auria
eb52c1d4af Improved on previously committed GUI engine internals docs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5755 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-18 01:38:18 +00:00
auria
8c578b19a4 Documented some GUI engine topics that are admittedly not trivial (thanks Joerg for showing me that ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5754 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-18 01:27:13 +00:00
hikerstk
ae85e05390 Bugfix: uninitialised variable was used, which causes (at least on Windows) the camera
position to be completely wrong.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5753 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-17 04:01:17 +00:00
xapantu
9362dc13f4 Convert (partialy) the addons dialog in the new xml system
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5752 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-16 09:34:31 +00:00
mbjornstk
73c3ed302f Add missing include for typeid.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5750 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-16 01:05:41 +00:00
hikerstk
314cb2ec3f Updated VS project file, fixed compilation problem in layout_manager.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-16 01:01:46 +00:00
auria
e3fa74187d Added YET more files I forgot in earlier commits xD
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5748 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-16 00:54:39 +00:00
auria
4e48bbd66b Extracted the new common base for Screen and ModalDialog out of the temporary location where it was put in previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5747 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-16 00:46:17 +00:00
auria
021dea1829 Reconciliated Screen and ModalDialog by extracting their common funcitonality into a common base class
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5746 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-16 00:39:53 +00:00
auria
ce0f923623 Cleaned out outdated code and no more relvant TODO
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5745 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-16 00:13:10 +00:00
auria
d2399b76a6 Converted 'confirm resolution' dialog to use XML files
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5744 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-16 00:10:09 +00:00
auria
b7fe74141e Converted the 'new player' dialog to use XML files
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5742 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-15 23:51:34 +00:00
auria
f43d9d4d35 Ported race paused dialog to XML files + fixed many small things with dialogs-from-xml on the way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5741 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-15 23:24:08 +00:00
auria
f03c8b94fe Fixed error in GUI engine doc
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5740 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-15 22:23:11 +00:00
auria
975451c7ec Dialogs may now be specified in XML files. Ported the 'press a key' dialog to a XML file as a test and example
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5739 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-15 22:12:58 +00:00
auria
ee1f67b19d Converted back CREDITS to UTF-16 (why was it converted back to UTF-8? STK expects UTF-16, since that's the format our font object can handle) - fixing crash when trying to see credits in-game. Also addded better error handling in the code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5738 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-15 20:42:18 +00:00
auria
b1f7012cbd Moved layout code out of Widget and Screen classes; not only is it cleaner this way, it also paves the way for eventually making Dialog classes also use the XML layout code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5737 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-15 20:24:51 +00:00
hikerstk
e034082a2b 1) Moved calls to World::(un)pause from state_manager into
the menus. This simplifies the state manager (no more
   hidden side effects of pushScreen), less parameter
   to onGameStateChange, easier extend for new RaceResultGUI
   (which must not have calls to pause). Now the calls
   are done in the Screen base class (and can be disabled
   in the constructor).
2) Many cosmetic changes to make the code follow our
   coding standards.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-15 01:15:19 +00:00
hikerstk
a28ed20d9e Only cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-11 22:53:42 +00:00
hikerstk
426cedcacb Fixed rare bug in which stk aborts (because it receives a WM_QUIT message)
immediately after start (after closing the null device and opening the actual
screen).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5734 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-10 01:15:53 +00:00
hikerstk
ab92817eb6 Removed unnecessary variable (which was actually declared and used in
WorldStatus).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5733 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-10 00:25:38 +00:00
hikerstk
dc0d97ed1c More names for scene nodes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5732 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-08 23:01:25 +00:00
hikerstk
41f69b89bd Added names to scene nodes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-08 22:54:04 +00:00
auria
9dfa90beed Decide smarter who won and who lost in a GP, depending on number of players
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5730 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-08 01:02:26 +00:00
auria
35d2456800 Documented problem
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5729 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-08 00:59:19 +00:00
auria
e940cccc36 Started implementing the 'max number of karts' track parameter as per the todo ticket in the tracker. The count is read but not yet enforced. The values I added in the track files are very approximative and not tested. Ideally the track exporter should generate this field
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5728 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-07 01:59:44 +00:00
hikerstk
856d59fc76 1) Worked around bug of 'continue' text not being shown when a kart is unlocked.
2) Minor style cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5727 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-06 13:59:03 +00:00
hikerstk
25b2d48a2a Minor coding style changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5726 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-06 05:12:50 +00:00
hikerstk
fd8e85e2eb Simplified code by reusing existing function.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5725 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-05 13:16:32 +00:00
hikerstk
32a7186320 Bugfix: avoid crash if any of the special debug keys (F1, F2, ...) is
pressed when no race is on.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5724 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-04 22:47:36 +00:00
hikerstk
5c00d7044a Simplified code somewhat.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5723 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-04 13:10:20 +00:00
hikerstk
7d5f69cf32 Fixed incorrect display of karts in mini-map.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5722 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-04 10:33:32 +00:00
hikerstk
80dfb0baca Added debug output if a check line is crossed in 2d, but the kart
does not have the right height. This helps debugging cases when
a check line is too low or too high.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5721 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-02 23:25:35 +00:00
hikerstk
4b50bc250a Fixed gcc compiler warning (incorrect order of initialisation).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5718 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-02 00:18:07 +00:00
hikerstk
3d7f706cfc Removed debug print statement.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5717 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-02 00:16:39 +00:00
hikerstk
a27ab81982 1) Fixed incorrect colours for rows (player karts should be in red).
2) Removed unnecessary type casts.
3) When increasing the GP points, the 'recently earned' points are now
   decreased.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5716 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-01 23:37:39 +00:00
hikerstk
14e41122a8 Replaced _DEBUG_PRINTS_LIKE_MAD_ with code that will only print
this information when a race position changes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5715 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-01 23:30:13 +00:00
hikerstk
b13ba3ac37 Changed direction in which the GP entries are resorted: karts going up towards
the top will be moving to the left side, karts going down to the right side.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5712 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-30 00:31:52 +00:00
hikerstk
ec0ec1ea64 Fixed crash in case that a kart does not have an icon.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5711 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-30 00:11:28 +00:00
hikerstk
0b35249b43 Improved new race result gui - it now consists of two parts: first
the results of the just finished race, then an animated display
of the GP standings (to test this please change the #undef
USE_NEW_RACE_RESULT in race_result_gui.cpp).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5710 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-29 23:03:20 +00:00
xapantu
57b5c788ea Adding chinese language in gen-mo (not added yet), tab system in the addons menu and some others very little things
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5709 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-28 17:46:48 +00:00
hikerstk
a68a70003c Added animated display of current GP standings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5708 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-25 22:37:11 +00:00
hikerstk
47070a2f5a Added --gp option to start a GP from the command line.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5707 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-25 22:35:53 +00:00
hikerstk
ebc4754717 Update to new race result GUI: it now handles GP and non-GP,
and 'animates' increasing the points.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5705 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-22 22:51:14 +00:00
hikerstk
e291ce56ff Keep the race going (with end race controller) while the race
results are shown.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5704 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-22 22:49:56 +00:00
hikerstk
9de958aa17 Bugfix: tried to read incorrect keyword from config file, and as a result
GP start positions were reversed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5703 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-22 22:33:53 +00:00
auria
e9ad44ea3a Updated Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5702 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-22 00:02:07 +00:00
hikerstk
c6d8b5908f Disabled new (and unfinished) race result gui again, which was
accidentally enabled in previous commit.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5701 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-21 01:09:12 +00:00
hikerstk
2ad6b0a027 Renamed CGUIFont.{h,cpp} to scalable_font.{hc}pp, removed all
references to CGUIFont (so that the new mono-space-digits functions
can be used everywhere); some code cleanup. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5700 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-21 00:01:22 +00:00
hikerstk
7557d4be8b Updated new race result gui (which by default is not shown atm).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5699 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-20 23:01:47 +00:00
hikerstk
8e48d227b8 Added support for mono-spaced digits (which makes tables with
numbers look better): all digits and the space character have
the same width.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5698 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-20 22:39:54 +00:00
hikerstk
03c6500265 Replaced tabs with spaces.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5697 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-19 03:36:59 +00:00
hikerstk
9549138017 Missing file from previous 'fix race restarting' patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5696 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-19 00:14:06 +00:00
hikerstk
969314e1f0 Fixed race restarting.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5695 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-19 00:11:03 +00:00
auria
b1c970684c Fixed warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5694 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-18 15:49:52 +00:00
auria
2a4570f6c6 Fixed warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5693 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-18 15:47:47 +00:00
hikerstk
c4797d6dd7 Added FIXME to indicate why restarting a race is currently broken.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5692 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-18 13:55:55 +00:00
hikerstk
ddf7175ee1 Fixed bug 3030981: no more in-game dialog when pressing escape.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5691 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-18 10:58:35 +00:00
auria
992115a9d9 Started performing API changes to support multiple GP losers eventually
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5690 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-17 18:17:15 +00:00
auria
b636214371 Allow assigning key bindings to ESC
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-17 17:40:09 +00:00
auria
13a6e76c13 Make sure the right camera is used in 3D cutscenes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5688 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-17 17:23:33 +00:00
auria
a4796313b5 Improved error message shown when a music fails to load + fixed the new snowy song file
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5687 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-17 17:11:41 +00:00
auria
02e65f4943 Updated Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5685 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-17 15:20:00 +00:00
auria
e53c1e64b1 Explicitely tell irrlicht that we do not support resizing the frame
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5684 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-17 15:18:23 +00:00
auria
ccb306d4bd Updated mac info.plist file to be more correct
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5683 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-16 22:48:31 +00:00
hikerstk
04f2bd7190 1) Started adding new race result screen, which is for now disabled in the game.
2) Replaced int* with std::vector<int> in raceResultOrder.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-15 22:41:41 +00:00
hikerstk
626f83087a Added new base class for race gui (in prepration for improved
result gui).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5680 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-11 23:03:54 +00:00
hikerstk
87256f58e8 1) Finally fixed (hopefully) all crashes related to HW buffers (replaced two
more deletes with drop).
2) Simplified skidmarks by completely removing the saved meshes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5679 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-11 22:54:35 +00:00
hikerstk
d0b96f462e Simplified skid structure by removing pointer to mesh
(which is not needed at all).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5678 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-11 13:26:26 +00:00
hikerstk
949f6380ba Fixed incorrect delete (which can cause a crash if long skidmarks
are used that will utilise hardware buffer). The crash could actually
happen in another race or when ending stk (since then hw buffers are
deleted).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5677 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-11 13:14:09 +00:00
hikerstk
db9bf099e5 Fixed incorrect assignment to unsigned variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5676 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-11 13:11:05 +00:00
auria
d1bfdd7546 Moved mutex from header to .cpp file, since defining one instance of the mutex for each fiel that includes the download manager is almost certainly not what was intended
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5675 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-09 00:41:46 +00:00
hikerstk
09fbb5f0ff Fixed more memory leaks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5674 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-08 23:03:45 +00:00
hikerstk
e8d97d035d Fixed delete being inconsistent with new.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5673 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-08 05:14:42 +00:00
hikerstk
dee6536f14 Fixed g++ compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5672 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-08 02:32:50 +00:00
hikerstk
8833ca6bcd 1) Added false starts for Ai karts.
2) Adjusted the AI reaction time to be more in synch with what humans
do.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5671 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-08 01:56:52 +00:00
hikerstk
534404d154 Added the penalty time (when starting too early) to stk_config.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5670 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-08 01:34:46 +00:00
hikerstk
e9837ca8fc Added some startup speed boost, mainly for testing. The first two
karts to press 'accelerate' after 'go' will receive a boost. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5669 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-07 23:53:27 +00:00
hikerstk
86715b59c1 Updated VS project file, fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-07 23:51:15 +00:00
hikerstk
2b3eac1746 Fixed memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5667 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-07 21:50:32 +00:00
xapantu
1f7d07a3ae Redirection system to use another addons server
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5666 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-07 19:31:54 +00:00
xapantu
ad6785a2b2 Start a class for the network; use sample functions is getting dirty.
Starting to implement the 'redirection' system (e.g. if we want to change the server

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5665 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-07 17:02:08 +00:00
auria
5efcf2fd90 Updated ocean and peach skins to also include scrollbars + fixed invalid pointer usage in addons that caused crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5664 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 23:56:58 +00:00
hikerstk
396db5ae2b Added intro sfx to be played before ready-set-go.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 23:10:47 +00:00
auria
862e5f6310 Minor update to new progress bar control : made non-focusable. Update Xcode project.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5662 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 22:26:17 +00:00
xapantu
93624d154c Fix a crash caused by a uninitialized mutex and remove the 'setText' call from the thread because it can caused a crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5661 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 16:06:43 +00:00
xapantu
ad9eb86671 Adding a progress bar to download addons.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 14:39:45 +00:00