Commit Graph

33 Commits

Author SHA1 Message Date
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