Commit Graph

230 Commits

Author SHA1 Message Date
coug36
b85ea2ce9a Added message dialog to reload button on Addons screen. Added callback functionality to the OK dialog by adding a message dialog type enum and requiring it in the constructor. See #266
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9532 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-16 08:13:43 +00:00
hikerstk
d26bc30c9c Added destructor for addons_manager that saves the installed
addons file (and therefore saves the information about cached
icons and prevents them from being re-downloaded next time
STK is started). Fixed #382.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9509 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-15 22:04:07 +00:00
hikerstk
5edbdca4e7 Renamed cleanTuxKart into cleanSuperTuxKart.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9508 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-15 21:59:57 +00:00
hikerstk
2172f1c4df Applied changes from statistics branch to trunk (r9413 - r9484).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9503 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-15 02:00:50 +00:00
hikerstk
209237a0c8 Bugfix - incorrect &.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9414 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-03 02:19:01 +00:00
hikerstk
b33c10a369 Fixed missing newline (thanks coug36).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9410 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-03 00:23:04 +00:00
hikerstk
2fe73a6deb Removed commented out code (that doesn't work anymore).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9398 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-01 00:04:48 +00:00
auria
b669180ea9 Rename the messages about internet to mention add-ons and not only news
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9395 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-31 01:26:31 +00:00
hikerstk
83680f4637 Added --ai=a,b,... command line option to allow specification
of which AI karts to use.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9381 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-28 22:56:49 +00:00
hikerstk
a62e0f86d3 1) Added new --no-graphics option for fast batch testing.
Renamed --profile=+-n options to --profile-laps=n
   and --profile-time=n.
2) Fixed averaging in case of --profile-time.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9372 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-27 12:11:11 +00:00
funto66
d26b406780 Starting the merge with the swatter branch. Now it should be automatic with karts, but doesn't work with items (yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9275 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-15 23:38:40 +00:00
funto66
a8919a8252 Added experimental and buggy hardware skinning support + removed a useless loop in the material manager
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-14 00:59:00 +00:00
funto66
1c2795f0c8 Added a debug option to skip the ready-set-go phase
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9168 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-05 21:22:50 +00:00
auria
2d824186fd Fixed crash when starting into an arena from command-line
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9095 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-26 22:49:09 +00:00
auria
6c3bb3d12e Fixed a few typos in main.cpp found by Crendgrim and KroArtem
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9077 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-26 14:41:09 +00:00
hikerstk
da8ec214ce Added a very first version of a swatter (or inflatable hammer).
Details are in the wiki (http://supertuxkart.sourceforge.net/Items).
Note that the model is _obviously_ a placeholder, and I  used
the icon for the bomb (which isn't used in game atm) for the
swatter. I hope someone can provide a better model and icon.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9011 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-22 12:27:48 +00:00
hikerstk
cdb2a7dab6 Removed support for explicit setting of verbosity flag using -v
(which clashed with -v usage for version number). Use
--debug={memory,addons,gui,misc,all}.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8815 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-04 14:06:06 +00:00
auria
6e4cee9341 Includes cleanup; especially avoid including in headers, creating implicit dependencies and horrible chains of recursive includes. Avoid iostream when possible because this header is not small
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 19:52:24 +00:00
auria
1671a445b1 Remove leftover check for ADDONS_MANAGER
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8723 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-27 01:06:31 +00:00
auria
d501753ef2 Clean up irrlicht includes; avoiding including the huge irrlicht.h when we only need one specific class, especially in header files; use forwards when possible
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 18:03:28 +00:00
hikerstk
c52fa8ceff 1) Fixed race condition: the network thread could access network_http
before it is assigned.
2) The network thread is now signalled to quit earlier, giving it more
   time to quit cleanly.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8563 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-13 06:29:12 +00:00
auria
1ad86ccf55 Allow escaping from gamepad visualisation screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8554 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-13 00:03:12 +00:00
hikerstk
498a0a104e 1) Moved news message handling into a separate object.
2) Added prioritised request list to network manager.
3) Fixed ticket 217 (crash at shutdown), which happens if 
   the background thread downloading the icons is still
   active when STK is quit (and then accessing managers
   that have been deleted).
4) Handled partial downloads correctly: files are now
   downloaded with ".part" appended to the filename,
   and only upon a successful download renamed to 
   the original name.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-12 23:51:00 +00:00
hikerstk
9c127322f2 Added assert to material_manager to catch if unintentionally
temporary materials are made permanent (while this is not
a memory leak, the code should use the right functions to
indicate which materials will stay around). Fixed some
materials that became permanently even though the code
called 'pushTempMaterial' (but the materials stayed
permanent). Moved icons_frame into commong race gui
base class, and made race gui textures permanent (so
that they don't cause any false texture-leaked messasges,
and also to avoid loading them again at each race).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8514 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-04 00:15:46 +00:00
hikerstk
6f765cb95f Added --debug=all as a shortcut if all debug output should be enabled.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8482 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-29 03:42:47 +00:00
hikerstk
84badc0eeb Added --debug={memory,gui,addons,misc} command line
option (so far only memory debug is actually supported
by debug code).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8478 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-28 10:56:13 +00:00
hikerstk
af2476c6e0 The verbosity was set too late, so many messages where not shown.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8466 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-27 00:11:16 +00:00
hikerstk
ea64332130 Accept both American and Britain spelling for -gamepad-visuali{s,z}ation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8294 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-12 01:23:27 +00:00
auria
6c71c30b8c Undo test modification I accidentally committed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8234 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-06 23:45:34 +00:00
auria
0c30bfbf53 Tweak RTL : should only happen when a stirng is actually translated, if no translation is provided and the string stays in English keep it LTR
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8232 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-06 23:43:17 +00:00
hikerstk
5a43a98286 Fixed incorrect function for setting environment variable in windows, which
resulted in the saved language not being used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8203 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-03 23:20:17 +00:00
auria
05a2ee825c Print irrlicht version on terminal as per suggestion by Joerg (but I realize this isn't really needed since irrlicht logs it anyway)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8153 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 22:27:04 +00:00
hikerstk
a074268876 Fixed hang when STK ends the first time internet news is enabled.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8151 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 21:13:40 +00:00
auria
4a8c7c05e0 Change popup message now that we have yes/no
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8149 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 16:25:08 +00:00
auria
b056d06ea9 ops, forgot to close the dialog once the user gave their answer
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8148 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 16:20:04 +00:00
auria
da46fe21cb Add a IConfirmDialogListener to the 'can I access iternet' popup + while we're at it, modify the Dialog class a bit to simplify memory management in some cases
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8147 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 16:17:51 +00:00
hikerstk
64411d616f Fixed typo in previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8145 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 10:25:05 +00:00
hikerstk
542aabf0a5 Added a popup window to inform the user about STK accessing a server
on the internet. 
Auria: I couldn't easily find (or remember) the class to use which allows the
user to select yes/no - could you fix that?  


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8144 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 10:15:09 +00:00
auria
b548b1bc93 Rename VERSIOn to STKVERSION
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8132 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 23:41:25 +00:00
auria
1c270cde1f Add VERSION to constants.hpp, please remove that define from Visual Studio file and autotools
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8131 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 23:31:29 +00:00
hikerstk
ca651b37b3 Removed all #ifdef VERSION, since VERSION is necessary to set the user-agent
for the news server, so we detect any problems with VERSION at compile time.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8106 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-29 22:25:20 +00:00
hikerstk
6867018d52 Enabled news (but not addons) in normal debug mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8086 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-27 12:10:07 +00:00
hikerstk
28aaaf4f5b Added --ftl-debug command line option, to print some debug information for
FTL (esp. GP) races.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8018 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-21 06:15:39 +00:00
auria
94015c38cd Fixed kart/track confusion in command-line output
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7800 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-03 21:56:30 +00:00
auria
3a3619750a Artist debug features are now enabled even in release builds, but disabled in config by default
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7780 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-02 00:04:13 +00:00
auria
230de5728d Forbid selecting locked kart when starting from command-line
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7779 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-01 19:23:23 +00:00
mbjornstk
b8a0ab32b4 Apply camera changes provided by Jesse Smith to have v0.6 camera option.
Feel free to fix any C++ style issues, this saves you fighting with patch or
can be undone quickly by reverting this single commit.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7739 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-20 05:11:26 +00:00
auria
83049114db Change way language from config is set in the environment, should hopefully work under Linux now
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7722 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-18 01:21:50 +00:00
mbjornstk
42cd443a54 Add --rendering-debug to allow testing material settings or anisotrophy speed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7700 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-14 02:07:04 +00:00
auria
896e2664fc Fixed track names not being translated on live language switch
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7633 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-06 02:59:19 +00:00