Commit Graph

214 Commits

Author SHA1 Message Date
hiker
eea9d6dbd8 Added FIXME and some comments so that we can look at this
strange call again when more networking code is added.
2014-06-02 16:30:53 +10:00
hiker
827286105e Fix #1347. 2014-06-02 15:54:23 +10:00
Marc Coll Carrillo
82cc7af4f6 Avoid the use of the new GP editor as a cheating aid 2014-04-13 21:34:28 +02:00
hiker
43593d6312 Made getCurrentUser() a static function. 2014-04-08 08:06:52 +10:00
Marianne Gagnon
fb90388e10 Apply patch by Marc Coll to improve upon his work on GP progress display 2014-03-28 19:16:56 -04:00
Marianne Gagnon
348a20288f Apply patch by Marc Coll to have better progress reports during long GPs, thanks! 2014-03-26 20:14:29 -04:00
hiker
4d6b110e56 Removed unnecessary #include of user_config.hpp in other hpp files
(to reduce the amount of recompilation when user_config.hpp is changed).
2014-02-26 12:52:16 +11:00
hiker
97be85777d Started to move current player info from unlock manager into
player_manager.
2014-02-09 23:22:45 +11:00
hiker
5474b5528f Removed unnecessary parameter from onUpdate calls. 2014-01-22 07:43:17 +11:00
vincentlj
6697a2d7af Another batch of conversion to draw2DImage
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15064 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-13 23:19:47 +00:00
hikerstk
c450c97472 Allowed the music directory to be external. Renamed
getMusicFile to searchMusic and getTextureFile to
searchTexture. Removed m_root_dir from file_manager.
Added convenience function getTexture to irr_driver
which takes an asset type, so now less code is needed
to load textures (though that's proably not used
everywhere yet).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-18 22:29:08 +00:00
hikerstk
73c498daf3 Start to support 'externa' data directories. Most directories
from data can now be moved out (except music). STK prints
an overview of which directory is taken from where. More 
cleanups and improvements will come.
Also moved skins into a separate directory under data (from
data/skins), since it's likely that skins will be part
of a binary package (i.e. changes to skins not really
related to code), while gui files will more likely stay
with the code.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-17 23:48:47 +00:00
deveee
ec13bcf802 Merge branch 'hilnius'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14638 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-05 17:28:55 +00:00
hikerstk
c5b8732087 Probably biggest commit (in terms of number of files) ever -
updated the (c) line of all files to -2013, added missing (c), 
changed format in some cases so that it will be easier in
the future to change them by script. No actualy code change.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-15 11:43:21 +00:00
deveee
b357de50c2 Stop finish sound while exit from race result gui
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14288 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-22 19:05:03 +00:00
deveee
612d53bfe7 Use smaller distance between rows if there is no place for all entries.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14278 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-18 07:33:18 +00:00
deveee
3da81e3c8d Minor improvements in race result screen - soccer mode
- move displaySoccerResult() from displayOneEntry loop
 - don't display more results than it fits in table
 - also set max number of goals to 10. playing game to 30 goals doesn't have sense and it's hard to display 30 entries in a half of 800x600 screen.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14276 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-17 20:15:12 +00:00
deveee
a0ea14b20c Minor changes in race result gui - soccer mode.
On some resolutions longer (translated) title was drawn on ball image.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14275 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-17 11:24:50 +00:00
deveee
c452bf9d97 Tabs into spaces
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14255 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-14 20:25:30 +00:00
deveee
b16973dd8f Read localized names of the karts in race result gui - soccer mode.
Also use one standard color for both cases when red and blue team wins. It looks IMO better, I hope it's not a problem for others.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14254 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-14 20:19:49 +00:00
deveee
a7d62553f1 Fixed crash in new race result gui in soccer mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-14 19:40:10 +00:00
yasin-ghannam
1d1b5c20c5 Soccer fixes. Icon fetching and placement.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14251 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-14 13:27:42 +00:00
yasin-ghannam
70ef7966e1 Modified Soccer Mode results screen.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14249 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-14 00:23:20 +00:00
deveee
829656d1d7 Move getting team icons to avoid getting it in every refresh.
I'm not sure where it should be to keep order.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13698 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-16 10:15:29 +00:00
deveee
d4a224cd4e Place team icon in the same position as kart icon in soccer mode result race.
Visually now everything looks good for me :-P

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13695 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-15 20:09:21 +00:00
deveee
402799a460 Draw team icon in race result
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13691 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-15 13:34:23 +00:00
hilnius
262f70205c merging trunk and fixing compilation issues
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-15 10:05:34 +00:00
deveee
ecc27f9d03 First version of race result gui in soccer mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-14 19:20:08 +00:00
hilnius
71fb252654 removed some useless files + improvements in end-race GUI interaction
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13592 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-29 17:57:56 +00:00
hilnius
93ec81f309 now to know the public ip address, the GetPublicAddress protocol uses randomly selected STUN servers from the UserConfig file. If the server doesn't answer after two seconds, the protocol will reset and pick a random server again.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13574 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-26 14:14:52 +00:00
curaga
b56bf4dc53 Remove trailing space, git doesn't like it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12797 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-29 22:04:35 +00:00
hikerstk
f3e9520339 Renamed 'back to track selectin' to 'back to challenge selection',
which (imho) describes a bit better where this goes to. Removed
"Setup New race" when selecting a challenge from the overworld, since
it is confusing to come from the overworld and end up on the game
mode selection screen.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12774 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-16 06:53:01 +00:00
auria
61bcdffb64 Show confir dialog before aborting GP
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12492 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-17 00:20:40 +00:00
auria
5446021d08 Fix build in previous build
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12449 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-03 23:00:59 +00:00
auria
9d09e69b69 Add check to not crash when a kart has a null icon
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12397 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-20 20:28:47 +00:00
hikerstk
9c0e002f0a Fixed 'No newline at end of file' warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12362 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-15 06:28:41 +00:00
auria
4838a1eb2f Clear AI-override when appropriate, fixing #829
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12198 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-07 00:24:20 +00:00
hikerstk
6ebf8b6565 Added Fort Magma to last Grand Prix once the game
is completely unlocked (before only 4 tracks will
be in the last GP).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12095 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-27 12:09:16 +00:00
auria
9c59842db9 Show what was unlocked
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12092 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-27 00:41:38 +00:00
auria
6aa15502a4 Fix going back to overworld if needed when aborting GP from race over screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12014 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-20 01:01:53 +00:00
hikerstk
8d05b69494 Fixed crash at end of a demo-mode race (for one frame the
race result gui is active while there is no world).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11961 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-16 12:51:26 +00:00
hikerstk
e6ce0c80ac iFixed #747: missing points in FTL GP.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11925 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-12 06:26:37 +00:00
auria
40dc6ceba8 try to fix crash in outro cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11914 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-11 00:15:03 +00:00
auria
d9fd492d50 Play some music on feature unlocked screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11812 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-29 23:07:22 +00:00
auria
7195131d14 Apply patch by Steel to make sure giving up a race can't give you a highscore or challenge
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11762 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-25 23:17:10 +00:00
hikerstk
3a6133f6d6 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-21 22:49:08 +00:00
auria
c174368274 Apply patch by Steel_ to display hgihscores at the end of a race, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11725 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-20 19:01:45 +00:00
auria
30d75a957a Improve Nolok'as special abilities a little, and switch to the end cutscene after beating him, then after that go to credits. This gives a reasonable ending i think :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11580 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-14 00:03:38 +00:00
hikerstk
c15528f903 First version of demo mode. Use --demo-mode T to start
a demo after T seconds of idle time, --demo-tracks a,b,c
to specify a list of tracks to use for demo mode, --demo-karts
to specify the number of karts.
This is WIP, esp. it crashes if ESC is pressed during a race
(other keys will successfully return to main menu).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11189 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-07 00:10:33 +00:00
auria
6f58350098 Return to overworld when exiting a race if race was started from overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11065 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-01 15:42:44 +00:00
auria
b6dac0b50b Update the number of points are list of locked tracks after winning a trophy
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11053 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-31 18:34:59 +00:00
hikerstk
ebbc1a71d8 Introduced an 'abstract kart' class, which is used to
de-couple kart implementation and its interface. This
significantly reduces compile time when changing kart.hpp,
but is at this stage still work in progress.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-19 20:21:11 +00:00
hikerstk
629f9a27e2 Removed dependencies on controller.hpp from kart.hpp (to
reduce compile time on controller changes).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10952 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-08 22:56:33 +00:00
auria
2d926bbfcd massive update : more work to support several challenge difficulties; remove a huge lot of code that is no more needed thanks to the new points system; start work on the challenge-solved cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10848 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-15 01:58:24 +00:00
auria
92eb0ebd2a Ran a small bash script to remove all of those annoying strings. The only thing they gave us were the need to rebuild after committing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 18:43:36 +00:00
auria
0455efd20d Massive refactor in challenge code to allow having more than 1 progression
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10349 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-05 22:00:42 +00:00
auria
83527e9146 Apply patch by Wardje to fix displaying GP progress when there are too many tracks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10275 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-29 18:24:04 +00:00
auria
16f9237b62 Fix non-translatable stirng
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10226 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-18 19:53:18 +00:00
auria
b2fe74e0c2 Show GP progress even if something is unlocked
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10136 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-08 01:50:31 +00:00
hikerstk
3f73183228 Cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10042 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 05:01:51 +00:00
auria
5ac65a28d8 Silence silly warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9987 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-15 23:46:43 +00:00
auria
0fa8d27eff Apply updated version of Termina1's patch, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9958 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-08 20:50:07 +00:00
auria
823d7ca94e Apply a slightly modified version of termina1's patch to see GP progress, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9957 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-07 23:25:02 +00:00
auria
fdb020016a Better defaults for focusd button in race end screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9585 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-21 16:54:50 +00:00
auria
f9920633ae Fixed highscore display in GPs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9235 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-10 20:46:10 +00:00
hikerstk
5bb1a133cb Applied computerfreak97's patch to fix #286.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9114 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-30 13:14:21 +00:00
auria
d56a729041 Better error handling
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8811 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-04 00:17:22 +00:00
auria
63d224dc62 Fixed overlapping of highscore message in GP mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8750 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 21:00:31 +00:00
hikerstk
4ccf633289 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 11:47:43 +00:00
auria
fb26130a3c Improve highscores message
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-26 01:02:16 +00:00
auria
6103921a51 Show highscores in a reasonably visible way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8712 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-26 00:44:17 +00:00
auria
624d050571 Display when you get a highscore (it's a little subtle for now but at least the infrastructure is there)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8707 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-25 01:53:15 +00:00
auria
da85204faf Partial work towards showing highscores when they are made
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8697 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 01:34:02 +00:00
auria
357af5a27d More work on 'thou shalt not include irrlicht.h everywhere carelessly'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 19:29:52 +00:00
auria
c5ddfb1d6d Add nice little race end fanfare and race summary song by Dundersylt
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8648 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-21 01:07:06 +00:00
auria
15cdaf04bd For ticket #82 : start adding the infrastructure to show in the UI which gamepad is which
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8566 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-14 00:30:30 +00:00
auria
9a1beab185 More RTl fixes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8388 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-19 23:32:27 +00:00
auria
c727e0e647 Fix RTL issue
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8387 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-19 23:24:16 +00:00
auria
a580f413e3 Fix kart names not being translated on live language switch + correct more RTL issues I found on the way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7632 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-06 02:49:45 +00:00
hikerstk
7b09afcb24 Added version number to challenges (I replaced all Challenge
declarations with ChallengeData - I don't see a good
reason to keep both classes).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7610 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-04 10:53:58 +00:00
mbjornstk
015443f582 Set props as per SVN-CONFIG for .[ch]pp, AKA SVN props clean up day. :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-21 01:54:38 +00:00
auria
30e6f2323e Fixed a few displays for RTL
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7397 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 00:19:40 +00:00
auria
6ad54434e0 Correct a few FIXMEs + minor style improvements
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7227 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 18:23:52 +00:00
hikerstk
503723967f Fixed more hard coded paths. Icon path in KartProperties now
stores the absolute path (and getKartIconFile is now called
getAbsoluteKartIconFile).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7223 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 10:45:31 +00:00
auria
04fd8df730 Don't allow restartign a race in GP mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7115 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 17:52:39 +00:00
hikerstk
fd3895b45f Fixed severals problems with FTL GP: GP rank od the leader must be -1
(some GP ranks were not set at all).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7098 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 01:16:03 +00:00
hikerstk
d84ff3f7eb Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6662 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-20 12:15:13 +00:00
hikerstk
92d18a7a25 Definitions for GP points is now independent of the maximum number of karts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6021 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-16 02:31:20 +00:00
hikerstk
79b0471b01 Added experimental code to give a background per line for the race
result. Too much is hardcoded atm, so it needs some work should
we want this look. Check for #ifdef USE_PER_LINE_BACKGROUND
to see what was done.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5991 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-14 01:28:19 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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