Commit Graph

2373 Commits

Author SHA1 Message Date
auria
9016d02b7e More mammoth cleanup in GUI code. Modal dialogs are now each is a separate file, and are in the now STK-specific paackage, not in the generic engine
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3765 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 18:13:42 +00:00
auria
85266dfe10 Started mammoth cleanup of GUI code. Separated the generic GUI engine and the STK-specific bits (still work to do on this side)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3764 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 17:48:36 +00:00
auria
b71d1c4557 cleanup in GUI module (moved event handling out of Screen)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3763 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 16:04:45 +00:00
auria
fbc3119dbc Continued cleaning up references to Player & ActivePlayer and docs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3762 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 15:32:54 +00:00
auria
2c0a322b61 Started cleaning up references to Player to use ActivePlayer where relevant
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3761 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 15:21:16 +00:00
auria
60f988f6a6 Updated Xcode project + fixed warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3760 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 14:45:14 +00:00
auria
4f588c3dd8 Applied patches to improve items and plunger by david. Thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3759 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 14:23:37 +00:00
auria
b6c5f07471 Applied cake improvements patch by David (thanks\!)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3758 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 00:02:16 +00:00
hikerstk
75d301417c Minor fix for previous commit (debug track was shown in
kart selection screen).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3757 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-17 01:08:00 +00:00
hikerstk
6706e72311 1) Quad meshes are now easier to use generally
(though still backwards compatible with e.g.
   rubber band and shadow)
2) More scene cleanups.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3756 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-17 00:22:58 +00:00
hikerstk
5f4b474e77 Fixed some memory leaks, code cleanup, started adding
mini map creation.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3755 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-16 12:09:15 +00:00
hikerstk
9563b78500 1) Added general messages (fastest lap etc) and plunger-in-face
2) Removed unused plib font objects - hooray :)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3754 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-16 03:24:17 +00:00
hikerstk
9920c72415 Added display of the current music (work on speed display started, but not finished).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3753 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-15 13:40:22 +00:00
hikerstk
1ef58fce9a Very first version of irrlicht energy meter.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3752 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-14 12:57:04 +00:00
hikerstk
f978c25cf4 Added number of laps and powerup display to racegui.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3747 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-14 00:26:18 +00:00
hikerstk
e7d17ad201 Added kart icons and time display.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3746 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-13 12:25:38 +00:00
hikerstk
f51aa12fc0 Bugfix: length along track was incorrect (only computed length along
current quad).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3745 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-13 12:24:34 +00:00
hikerstk
5b42fb9f12 Bugfix: avoid crash in case of a kart not being on top of a terrain.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3744 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-13 12:23:16 +00:00
hikerstk
45713083c7 1) Removed unnecessary (and by now incorrect) special handling of 'pre first
lap'.
2) Bugfix: number of laps were not updated.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3743 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-13 12:22:27 +00:00
hikerstk
ad799ed990 Bugfix: non-active checklines did not save the previous position, resulting in
incorrect triggering later.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3742 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-13 12:21:12 +00:00
mbjornstk
5f7d9db5c3 Add minimum and maximum FPS reporting.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3741 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-12 20:47:01 +00:00
hikerstk
88b4b3b041 1) Added calls to new render functions which are
called during the irrlicht rendering, so calls
   to directly print etc. to the screen are possible.
2) Time and ready/set/go of the race gui now work.
3) Code cleanup.
4) Removed compiler warnings.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3740 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-12 11:54:21 +00:00
hikerstk
be331b0ed5 Updated VS project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3739 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-12 11:52:16 +00:00
mbjornstk
2898c025ad Add new file config/player.cpp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3738 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-12 00:50:37 +00:00
auria
dd95352fe2 Added file forgotten in previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3737 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-12 00:34:40 +00:00
auria
a44b531525 Replaced usage of some confusing IDs with more explicit pointers
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-12 00:18:37 +00:00
auria
d1c5c449f9 Improved sizing code + shriking effect in kart selection screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 19:38:27 +00:00
auria
ab4787f884 Fixed in bug in the device manager that could cause crashes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3734 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 19:29:33 +00:00
auria
ab4cdcae00 A player can now remove himself by pressing rescue at the kart selection screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3733 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 19:24:42 +00:00
auria
0e890dc5cc Work on associating a player to its device in the kart selection screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3732 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 17:32:05 +00:00
auria
f987fff348 more work on multiplayer kart selection screen & multioplayer input
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 16:50:57 +00:00
auria
c92c33ccb8 more work on multiplayer kart selection screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3730 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 15:47:07 +00:00
auria
e088c97939 Fixed resizing spinners
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3729 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 15:34:30 +00:00
auria
71a2083819 Pressing fire on another devices in the kart selection screen will now cause new players to appear
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3728 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 15:20:18 +00:00
auria
d9cdb5415a removed old ugly unused code from ptr_vector [so hiker can't complain about it anymore ;)]
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3727 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 02:04:20 +00:00
auria
8eaef3f63b Better player detection. Still getting some problems with irrlicht widgets : they internally catch some events without asking me. For instance, in 'press fire to join', if player has 'fire' assiged to the spacebar, pressing the spacebar results in irrlicht pressing the currently button - not sure how to get around this.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3726 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 01:56:07 +00:00
auria
3c6ba08857 Fixed ambient light not present when starting race with -N
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3725 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 00:14:04 +00:00
hikerstk
54c3c08558 Bugfix: incorrect name in #ifdef.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3724 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-10 01:08:57 +00:00
hikerstk
2474e7a164 Fixed steering direction for animation, and made animation smoother
(i.e. when steering left and then start turning right, the animation
started only after the 'straight ahead' point was reached, now the
animation will start immediately).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3723 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-09 04:25:38 +00:00
hikerstk
0340a352fb Added Xapantu's kart exporter.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3722 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-09 03:22:12 +00:00
auria
d1e805ad78 dynamic casts are only used in debug builds
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3721 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-09 01:37:10 +00:00
auria
ae33627515 Added widget cast helper method to widget to accomodate windows not having RTTI
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3720 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-09 01:29:23 +00:00
hikerstk
18f898f34e Added missing file from previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3719 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-09 01:13:01 +00:00
mbjornstk
d9d9cc13e8 Smooth bomb.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3718 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 23:27:32 +00:00
hikerstk
10f3541177 Bugfix: using char[128] for filenames is not long enough. Replaced with
std::string so there is no more length restriction.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3717 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 23:26:07 +00:00
mbjornstk
0e90316a99 Smooth box. Loop has correct reflection effect.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3716 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 23:17:22 +00:00
mbjornstk
3c50808965 Smooth tanks. Blue, cyan and green parts need something like EMT_SPHERE_MAP.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3715 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 23:09:00 +00:00
mbjornstk
412b1e9d58 Smooth cake.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 22:52:26 +00:00
mbjornstk
31fb2f971f Anchor is smooth too. Change naming a bit (but still some "anvils" around).
Bonus hack: temporarily using anchor as rescue model (avoids crashes).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3713 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 22:40:54 +00:00
mbjornstk
c6c561c387 Smooth model (enable "Normals" in B3D export options).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3712 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 22:17:27 +00:00