Commit Graph

3325 Commits

Author SHA1 Message Date
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
hikerstk
468e059a94 Added last lap sfx, which is played once when the first kart
starts the last lap.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5656 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 00:11:42 +00:00
auria
f696772764 Fixed doubly-defined constructor that didn't compile
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5653 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 00:02:51 +00:00
hikerstk
6d3e1ebb06 Added missing initialisation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5652 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 23:06:11 +00:00
hikerstk
2bb985313d Fixed minor memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5651 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 23:03:19 +00:00
hikerstk
b84043f819 Fixed minor memory leak (minor=data structure that is used till the end
of the game is not freed, so memory usage does not increase over time).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5650 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 23:02:09 +00:00
hikerstk
9d467210c5 Fised memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5649 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 23:00:41 +00:00
xapantu
6a51351181 Adding a progress text to show the percent already downloaded of the addons inthe addons dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5648 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 17:47:05 +00:00
xapantu
8ea7b2d2b9 Improve error handling for network connexion (use a boolean now)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5647 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 14:21:14 +00:00
xapantu
29a5a265ee Adding a progress function for download, it is a bit too verbose...
Error handling

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5646 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 14:19:00 +00:00
xapantu
764c70a108 Uncomment the network code; it was commented and no files could be downloaded, it causes the crash when we started stk (I disabled it in commit 3861, it was an error :( )
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5645 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 12:34:59 +00:00
mbjornstk
baf23285e7 Make minimap be proportional to real track. Icon position needs fixes, tho.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5636 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 00:29:26 +00:00
mbjornstk
27c007a8fa Use float constants.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5635 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 00:24:09 +00:00
hikerstk
6c7cdb1b7b Fixed crash in end camera - hopefully the last problem.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5634 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 00:10:58 +00:00
hikerstk
a4d5c1056d Fixed end camera if a track has no specific end camera defined (previously
an existing end camera from a previous race would be re-used).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5632 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-04 23:40:37 +00:00
hikerstk
3416a54bfd Added support for a sequence of frame to be played in an animation before
the actual animation loop starts.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5629 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-04 22:51:45 +00:00
hikerstk
0243b12de9 Added missing variable initialisation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5628 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-04 22:49:13 +00:00
hikerstk
63d5f62cdb Removed unnecessary declaration.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5627 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-04 22:48:12 +00:00
auria
ada915c207 Fixed typo in Widget documentation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5626 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-04 19:54:33 +00:00
auria
a77405d53a Fixed potentially dangerous name clash between Widget members and SkinWidgetContainer members + added the proper m_ prefix as per our style guidelines along the way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5625 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-04 19:25:20 +00:00
auria
d68e299da0 Fixed annoying visibility warnings wen building with Xcode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5624 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-04 18:36:59 +00:00
auria
56956bf752 Fixed potential crash in add-ons code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5622 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-03 23:48:54 +00:00
auria
a8224ea937 Fixed a couple issues in race GUI
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5621 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-02 23:14:44 +00:00
xapantu
2a3854db6b improve the checkandcreatedirectory recursive function file_manager using the stringutils split function
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5619 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-02 17:14:09 +00:00
xapantu
079a25cbd8 Adding a mutex to avoid gui problem in the addons_loading dialog and desactive the next and previous button (and some code cleanup)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5618 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-02 16:54:08 +00:00
xapantu
088efbb96a code cleanup in addons_loading (remove the use of 'this' for the back button, I am going to remove all 'this')
move this->update_status to m_update_status in addons_screen
disable the focus on the image in the addon dialog

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5617 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-02 14:59:21 +00:00
xapantu
f4f78803b3 Adding a function (checkAndCreateDirectoryP) tp create directories recursively
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5616 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-02 09:35:55 +00:00
auria
e99d7592fb Fixed uglyness on OS X where directories called both SuperTuxKart and supertuxkart would be attempted to be created in App Support
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5615 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 18:11:22 +00:00
auria
58d8e91e20 Better error checking
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5614 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 18:06:18 +00:00
xapantu
3b1757449b Creating the directories for addons using file_manager
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5613 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 17:42:12 +00:00
xapantu
362abc0fc4 removing one of the two download functions
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5612 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 17:16:10 +00:00
auria
5b20361094 Implemented get addons dir for OS X
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5611 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 16:59:22 +00:00
auria
fb0bda3fe4 Added addons build config to Xcode project + added better error handling to the unzip function so it fails instead of crashing iun a couple places (xapantu: more work needed on error handling)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5610 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 16:50:34 +00:00
hikerstk
acf4092444 Added new VS configuration 'curl-debug' which adds support for libfribidi,
curl (and pthreads). Several functions could not be compiled under VS, for now
I have commented out the appropriate sections and added "FIXME_ADDON"
#ifdefs or comments.

NOTE: This will most likely break the addon manager on platforms on which it
is currently working!!!! It's mainly meant to show which parts of the code
need to be improved!!! Please grep for FIXME_ADDON, and if no easy fix exists,
just add #ifndef WIN32 for now.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5609 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 14:25:42 +00:00
hikerstk
61b411a6a7 Removed unused variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5607 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 13:58:22 +00:00
xapantu
b4d372489b A dirty hack to add addons direcotory support in kart loader and a fix for addons path
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5605 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 12:15:57 +00:00
xapantu
4669b7075b Working on the update screen: remove unneeded function and some code cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5604 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 10:02:57 +00:00
xapantu
5a2de08d45 code cleanup in addons.cpp:
move the function GetName, GetVersion... to the header file
some documentation
try to follow the code style guidelines

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5603 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 08:32:56 +00:00
auria
9476785986 Removed the include to pthread in the main screen, it's not used.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 00:34:59 +00:00
hikerstk
61cc735179 Fixed memory overwrite that happens when the in-game menu is
displayed during the end animations.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5601 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 00:16:09 +00:00
hikerstk
5fcd69554e Updated VS project file, fixed minor compilation and style
problems (note: atm addons are not compiled on VS).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5600 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 00:14:56 +00:00
hikerstk
9698b08b87 (Hopefully) fixed missing return value in w_gettext.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5599 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 00:13:31 +00:00
auria
b686bf524b Updated Xcode project + minor fixed to xapantu's code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5598 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-30 23:53:16 +00:00
xapantu
5a653e26e9 Adding the addons menu, I am going to write a mail to the ML
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5597 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-30 18:40:55 +00:00
xapantu
f0094304da Adding the '--with-addons' option in configure.ac
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5596 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-30 17:07:42 +00:00
hikerstk
6c10ceeeb4 Fixed uninitialised variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5595 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-30 05:29:56 +00:00
hikerstk
09fe1ea784 Fixed uninitialised variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5594 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-30 05:23:37 +00:00
hikerstk
e646b2e443 Switch win/lose animation off when restarting a race.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5593 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-29 22:58:20 +00:00
hikerstk
28f2b3742d 1) Fixed 'shaking' of kart, which happens esp. in end- and reverse camera
(reason was that camera used the previous kart position to adjust the camera
   settings, while the karts were shown at the new position. This becomes a 
   problem if bullet does more than one time step, since then the usually
   fixed offset is changes, which is visible).
2) Removed debug output.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5591 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-29 11:15:00 +00:00
hikerstk
0d527829ef Fixed VS compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5590 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-29 11:11:03 +00:00
auria
6cb51e2492 More work on scalable race GUI : race GUI will now be not so small on high resolutions (we need higher-definition weapon icons\!)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5588 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-29 01:23:56 +00:00
auria
536bce6aa9 Started implementing scalable race GUI : race GUI will now be not so small on high resolutions
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5587 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-29 00:59:20 +00:00
hikerstk
c1c7daf2fa 1) Added support for new camera mode: end camera positions and types
can now be specified in the scene file. Currently supported are:
   - normal 'ahead of kart' camera (which is what we used so far)
   - fixed camera: camera is at a fixed position, always looking
     at the kart.
2) Removed camera.hpp dependency from kart.hpp.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5585 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-28 23:33:07 +00:00
hikerstk
f1c187d5d5 Fixed VS compilation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5584 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-28 23:24:04 +00:00
auria
ee514b08a7 Hopefully fixed bug where camera hanged
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5577 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-28 00:39:45 +00:00
auria
9c4940abdb Fixed AI count spinner being disabled when it shouldn't
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5576 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-27 23:56:59 +00:00
auria
c19280e6d1 Added assertions to Camera so that we can catch the camera getting stuck bug
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5575 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-27 23:18:52 +00:00
auria
41dbc1311d Fixed badges wrongly remaining on empty ribbon items
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5571 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-27 17:40:00 +00:00
auria
3f0e2b8d74 Don't show 'random kart' button when no karts are available in the current group, or if there is only one kart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5570 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-27 17:21:41 +00:00
xapantu
d336617eaf Fix a bug with fribidi
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5569 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-27 17:19:28 +00:00
auria
f43a3da3ad Improvement to fribidi code : if fribidi says it failed to convert the string, don't read the output buffer
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5568 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-27 16:46:30 +00:00
xapantu
be70408b38 Fix a bug with fribidi
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5567 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-27 10:26:47 +00:00
auria
2275ecaa2b Corrected other FIXME
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5566 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-26 19:36:59 +00:00
auria
b9fcde4826 Removed outdated TODO
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5565 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-26 19:35:48 +00:00
auria
7db06e27e1 Fixed memory leak
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5564 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-26 19:33:03 +00:00
auria
5f18162c25 Simplified and cleaned up kart selection focus dispatcher logic; also corrected warp-around to work properly there
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5563 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-26 17:19:12 +00:00
auria
0350423907 Fixed issue with duplicated resolutions + resolutions not always greyed out when the options menu is viewed in-game
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5562 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-26 15:00:13 +00:00
hikerstk
bc22ee6df5 Fixed rouding error in time handling, e.g. 0:0:996 was displayed
as 0:0:100 and not as 0:1:0.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5559 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-25 13:48:13 +00:00
auria
81282e3464 Modified several screens that used absolute positions and sizes to use the full power of the layout managers
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5558 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-25 01:29:10 +00:00
auria
b0b3faf53a Fixed focus navigations with missing widget IDs. For now up to 10 IDs may be missing and navigation will still work, I don't think we need more than 10
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5557 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-25 01:13:15 +00:00
hikerstk
0502408d60 Terrain-specific sfx will now not be cut off when the terrain is left, instead
the sfx will finish.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5556 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 23:10:25 +00:00
auria
bef7ae34a8 Always give the mouse game master privileges, less confusing for players
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5555 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 18:56:27 +00:00
auria
9bfbcc40c1 Fixed rendering of disabled tabs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5554 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 18:44:07 +00:00
auria
48e1f98209 Improved skin render when several players are selecting the same kart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5553 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 18:40:44 +00:00
auria
dcc4d54365 Handle exceptional situation in kart selection screen by just printing to stderr... it shouldn't happen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 18:34:41 +00:00
auria
3b617a95a1 Started fixing kart selections being messed up when a player quit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5551 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 18:28:20 +00:00
auria
3a15458079 Fixed leaving game in multiplayer kart selection screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5550 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 18:18:30 +00:00
auria
237d1c2883 Fixed music being changed in in-game menus
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5549 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 17:26:57 +00:00
auria
a1ebd4fc36 Make a hack around irrlicht limitations even more hackish to correct a crash when a list widget is the first in the screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5544 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 00:45:39 +00:00
hikerstk
07ac6f5c76 Added separate camera mode for end camera, added experimental new end camera
(which atm has hardcoded values for lighthouse track only and is disabled).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5542 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-23 22:37:48 +00:00
hikerstk
fca5de3e7d Bugfix: at the time the check sphere is created world does not
have the karts created, and therefore an invalid number of karts
was used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5539 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-22 12:48:11 +00:00
hikerstk
c672b8d2df Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5537 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-22 06:56:37 +00:00
hikerstk
e22d03d4bd Bugfix: incorrect parameter in warning message.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5536 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-22 06:50:15 +00:00
hikerstk
e3452035e4 Bugfix: battle mode would not work correctly, removed unused variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5535 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-22 06:47:26 +00:00
hikerstk
cc336fb007 Minor bugfix.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5534 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-22 06:34:37 +00:00
hikerstk
d3020e44ce Fixed incorrect position of terrain-specific sfx (though
I still do not get positional sfx atm, but that might be
a different issue??).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5533 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-22 06:17:29 +00:00
auria
167257c4f4 Fixed crash with in-game menus
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5531 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-21 00:10:50 +00:00
hikerstk
c5d56b90a2 Bugfix: terrain specific sfx was still played when the race was over.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5529 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-20 23:42:58 +00:00
hikerstk
f1438d6354 Added support for terrain specific sfx. As an example
this has been used for the wooden terrain in snowtuxpeak.
Note that atm changing the pitch is used to make the sfx
depend on speed, but since I am not too happy with this
I might add support for a customisable pause between
looping the sfx.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5527 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-20 23:01:23 +00:00
auria
b297ef72de Corrected a FIXME by moving a constant where it belongs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5525 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-19 01:10:41 +00:00
auria
11e3877945 Removed outdated FIXME
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5524 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-19 01:05:58 +00:00
auria
2f10e0177c Removed unnecessary FIXME
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5523 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-19 01:03:53 +00:00
hikerstk
df1985dab8 Removed VS compiler warnings (double to float conversion, loss of precision).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5522 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-18 02:03:36 +00:00
auria
8c85b0a6ee Updated Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5519 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-16 00:40:26 +00:00
hikerstk
8efe0fff20 Performance improvement: the b3d exporter does not sort/combine meshes by texture, so this
is (for now) done by a special Batching Mesh.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5518 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-16 00:18:51 +00:00
auria
b2ce57c840 Don't rely on OpenAL to know if a music is playing or not, it will say 'no' when the music is playing but couldn't be updated recently because of lagging
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5516 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-13 18:39:07 +00:00
mbjornstk
041c528a9f Change engine sound, while on air, to a less squeeky one (1.4 -> 0.9).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5515 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-13 18:31:55 +00:00
auria
c7ff68c1ab Modified my recent checks in highscores : on failure, ignore bogus entries instead of aborting
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5514 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-13 18:30:07 +00:00
auria
4afb71659f Modified music handling, fixing the music heard during GP lost/won
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5513 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-13 18:25:49 +00:00
auria
c496a82654 Removed debug asserts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5512 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-13 18:08:08 +00:00
auria
582db98e0f Fixed animated ribbon widgets to work more than once
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5510 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-12 23:48:38 +00:00
auria
9681fa3940 Fixed incorrect string in highscore loading code that caused kart name of highscores to be lost + added assertions to detect similar problems should they ever creep back in someday
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5509 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-12 23:24:15 +00:00
auria
5536b4a0b9 Removed debug print
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5508 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-12 23:06:24 +00:00
auria
c97361058a Fixed empty highscore entries being written to the hgihscore file
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5507 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-12 23:03:55 +00:00
auria
ab6e93f4d8 Bugfix: initially shown highscores were wrong
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5505 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-12 22:41:37 +00:00
auria
87a10e9ddb Made sky speed configurable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5502 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-12 20:49:55 +00:00
auria
2bcb1d4c17 Added autotools support for fribidi (hopefully it works, please folks help me test with and without\!)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5501 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-12 17:18:28 +00:00
hikerstk
3c335d4d0a Applied Lilian Gimenez's patch which allows the nitro consumption to
vary from kart to kart. While this is atm not used, it will be useful
once we have different physics parameters for karts. Thanks for the
patch!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5497 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-11 01:19:15 +00:00
auria
154a733725 Applied patch by Lilian Gimenez to correct input mode in dialogs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5496 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-10 23:45:14 +00:00
hikerstk
afa305e34b Re-enabled sfx when collecting a banana.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5495 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-10 22:54:31 +00:00
hikerstk
8eab00d6d7 Changed the culling algorithm to use the frustum and not the
camera box. This results in better culling of items, which
can give a good performance benefit.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5494 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-10 06:19:22 +00:00
hikerstk
7c0ff2772a Added option to disable kart animations in the user config file.
For now it also disables win/lose animations, but if it's worth
keeping non-animated karts (for performance on lower end graphics
card) this will be added.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5492 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-09 23:33:06 +00:00
hikerstk
744d9dd0fb The default start positions are now transformed/rotated if the lap
counting line is not centered around 0,0,0 or not parallel to the
X axis.
Note that this requires all lap counting line in the scene.xml files
to be 'oriented', i.e. the first point must be the left point, and
the second one the right point (r5488 updated this for all current
tracks, and r5487 updated the track exporter to do this automatically).
As a result of this the start positions might now be a bit too close
to the starting line (depending on where the chess-pattern is on the
track), and that might need some additional adjustments.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5490 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-08 23:30:45 +00:00
hikerstk
b9a63ebb0d Added rouding to time display, since otherwise the
1/100-th seconds can be incorrect.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5489 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-08 23:06:54 +00:00
mbjornstk
5fc4473bd5 Disable AI cheat when skidding. All AI levels lose power now, like humans.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5484 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 23:43:04 +00:00
hikerstk
79641e7f88 Support added for 'coneX' and 'coneZ' shapes as physical objects
(previously only as animated objects). Both 'cone' and 'coneY' is
now accepted, too.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5483 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 22:08:15 +00:00
hikerstk
dc301c1726 Removed unused code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5482 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 21:50:14 +00:00
hikerstk
ca66768c9e Removed unused code, updated docs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5481 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 21:49:14 +00:00
hikerstk
c74d9dae5f Removed more compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5480 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 21:48:22 +00:00
hikerstk
dc0405cb3e Removed VS compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5479 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 21:47:34 +00:00
hikerstk
9bf9dea62c Bugfix: karts which had their arrival time estimated would not get the appropriate
points displayed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5478 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 21:40:45 +00:00
hikerstk
e0328642f1 Added new 'UNDEFINED_PHASE' to catch incorrect pause/unpause
sequences (instead of re-using SETUP_PHASE as was done previously).



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5477 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 03:31:41 +00:00
hikerstk
c6727bfc01 Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5476 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 03:16:02 +00:00
hikerstk
f2a3dff4d2 Updated VS project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5475 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 03:12:16 +00:00
auria
e7fbf9f73d better error reporting if XML file contains a wrong object shape, don't silently continue...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5466 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-06 00:03:41 +00:00
auria
f9f4346df9 Better OpenAL error messages
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5464 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-01 01:16:28 +00:00
auria
39ccf7dfb9 Play lose music upon losing GP
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5463 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-01 00:14:24 +00:00
auria
d26a2daa68 Actually show the GP lost scene when losing a GP
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5460 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-30 23:20:32 +00:00
auria
45b60e948d Improved GP lose
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5458 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-30 19:38:29 +00:00
auria
a2825c4b36 Added support for Hebrew (and, more generally, RTL languages). fribidi must be available and ENABLE_BIDI must be defined (however the autotools build system currently does not check for fribidi presence so if you build with autotools it will always be off)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5457 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-30 19:11:39 +00:00
xapantu
4917872611 Fixing the file names in makefile.am
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5456 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-30 16:13:33 +00:00
auria
759cbff2b7 Added files forgotten in previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5455 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-30 15:48:24 +00:00
auria
1bdca718cb Added GP lose animation (not yet shown when actually playing, for now click on the 'network' button to see it as usual)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5454 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-30 15:45:44 +00:00
auria
bc29666749 Fixed invalid spinner max value in kart screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5449 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-16 16:55:15 +00:00
auria
db52b6907d Fixed fallback to default skin
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5448 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-16 01:36:18 +00:00
auria
0f32d738b4 Fixed reference counting problems with skin
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-16 01:26:53 +00:00
auria
2cd92bb6af Fixed issues with press a key dialog - the keypress was considered after the dialog had been closed. fixed that by closing dialog only when key is released
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5446 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-15 19:49:59 +00:00