Commit Graph

4269 Commits

Author SHA1 Message Date
xapantu
a7c40fede7 Finish to fix the problem with the back and install button in the addons dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5960 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-10 18:58:23 +00:00
auria
a39d705b9a Added clarification to gui engine manual (xapantu was not able to make something work, thus I fix the docs :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5959 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-10 18:57:13 +00:00
xapantu
694a782caf Revert my last commit since it is useless now ^^
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5958 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-10 18:34:40 +00:00
auria
4df28afc80 Properly unload screens before exiting, correcting a FIXME
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5957 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-10 18:29:53 +00:00
xapantu
197f693943 Move the main menu screen thread canceling to tearDown because ~MainMenuScreen is never called
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5956 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-10 18:22:10 +00:00
auria
96d7bbf345 Fixed warning + removed hardcoded constant
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5955 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-10 13:51:40 +00:00
hikerstk
7f3f598193 Fixed crashes in grand_prix lose, win, feature animation etc.
KartModel instances come now in two different types:
master instances which are part of KartProperties and
should never call attachModel (or have wheels attached),
and copies of the master instances (which are used by karts
and other classes when the kart is actually displayed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5954 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-10 13:30:31 +00:00
hikerstk
ea7e1e2734 Applied jmimu's patch to fix icons in battle mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5953 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-10 05:16:52 +00:00
auria
963516e2fb Removed/fixed bogus/unneeded includes or forwards
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5952 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-10 00:05:56 +00:00
auria
3b6940f2a3 Removed unneeded widget copy
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5951 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 13:41:44 +00:00
hikerstk
c2e68deb6d Minor cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5950 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 12:28:24 +00:00
hikerstk
69144f8274 Fixed crash in new KartModel handling in unlocked features.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5949 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 12:26:36 +00:00
hikerstk
d1ba939b94 1) Fixed crash when exiting STK.
2) Added grab and drop, since now the order in which the kart node
   and wheel nodes are released does not matter anymore.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5948 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 12:19:06 +00:00
hikerstk
8b0bd83120 More NoCopy.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5947 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 06:05:16 +00:00
hikerstk
64d3476067 More NoCopy.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5946 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 05:53:22 +00:00
hikerstk
3e4cc2eab7 More NoCopy.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5945 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 05:36:40 +00:00
hikerstk
0084cd6a33 More NoCopy.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5944 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 05:28:18 +00:00
hikerstk
aef6a4024c Improved handling if default (i.e. previously selected) kart
can not be found. Now stk will only abort if no kart at all
can be found, otherwise use the first kart in the kart 
properties list.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5943 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 03:24:34 +00:00
hikerstk
5abf327e13 Make sure that karts that have already finished the race (and are
driven by the computer) do not generate any 'fastest lap' messages
anymore (see bug 3061466).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5942 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 01:46:05 +00:00
auria
18b7bd5068 Improve the Widget class documentation and organization so that the generated Doxygen doc is actually useful, and so that we stop getting lost in this class
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5941 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 01:37:48 +00:00
hikerstk
f031b0473a Removed debug output (since this code can now be executed
in case that people play with many many karts).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5940 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 01:10:11 +00:00
auria
d0896de07e Fixed bogus Doxygen comment
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5939 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 01:03:30 +00:00
auria
3f0c41fd78 Added missing Doxygen documentation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5938 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 01:02:01 +00:00
auria
4253e0d02b Improved GP lost screen by extracting a constant
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5937 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 00:54:55 +00:00
auria
93d412aec8 Removed the use of static that could cause problems on res switch
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5936 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 00:49:16 +00:00
hikerstk
2d4f2ad32f Each kart instance has now its own copy of kart_model instead of a shared
version of it. This avoids animation issues (in some circumstances e.g.
a win/lose animation could be shown for a kart still driving), and an
assert crash (bug 3058787) is also avoided.
Note that the animation issues are usually not easy to see since the
random AI kart selection makes usually sure that the player kart is 
not used more than once, so this issue can only be seen in AI karts.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5935 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 00:35:15 +00:00
hikerstk
39aa6528a0 Updated VS project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5934 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 00:31:47 +00:00
hikerstk
c1a239a7e6 More NoCopy - embarrassingly left out in previous commit :(
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5933 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 00:30:58 +00:00
hikerstk
42581e1719 Added more NoCopy.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5932 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 00:29:28 +00:00
auria
372e82374b Show confirm dialog before permanently erasing keyboard config (the confirm dialog I added is reusable, so should we ever need another confirm dialog we can reuse this one)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5931 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 23:06:54 +00:00
auria
bb659ba7c8 Fixed bogus include protection
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5930 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 22:45:08 +00:00
auria
244b40bfbf Added support for deleting added keyboard configurations
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5929 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 22:40:54 +00:00
auria
559c7bf0b2 Replaced the weird flying wheat in farm track with a static crop for now so it looks less weird
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5928 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 18:33:55 +00:00
xapantu
1394c1b6d9 minor code cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5927 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 18:27:16 +00:00
xapantu
ec063ef163 Adding a package-update.png image
Show 'update' instead of uninstall or install for addons which can be updated (maybe we need a third button)
Add a special icon in the addons lists if the addon can be updated

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

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


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


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


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


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


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


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


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5911 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 13:38:23 +00:00