Commit Graph

354 Commits

Author SHA1 Message Date
auria
f03c8b94fe Fixed error in GUI engine doc
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5740 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-15 22:23:11 +00:00
auria
975451c7ec Dialogs may now be specified in XML files. Ported the 'press a key' dialog to a XML file as a test and example
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5739 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-15 22:12:58 +00:00
auria
b1f7012cbd Moved layout code out of Widget and Screen classes; not only is it cleaner this way, it also paves the way for eventually making Dialog classes also use the XML layout code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5737 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-15 20:24:51 +00:00
hikerstk
e034082a2b 1) Moved calls to World::(un)pause from state_manager into
the menus. This simplifies the state manager (no more
   hidden side effects of pushScreen), less parameter
   to onGameStateChange, easier extend for new RaceResultGUI
   (which must not have calls to pause). Now the calls
   are done in the Screen base class (and can be disabled
   in the constructor).
2) Many cosmetic changes to make the code follow our
   coding standards.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-15 01:15:19 +00:00
hikerstk
a28ed20d9e Only cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-11 22:53:42 +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
8e48d227b8 Added support for mono-spaced digits (which makes tables with
numbers look better): all digits and the space character have
the same width.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5698 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-20 22:39:54 +00:00
hikerstk
03c6500265 Replaced tabs with spaces.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5697 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-19 03:36:59 +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
86715b59c1 Updated VS project file, fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-07 23:51:15 +00:00
auria
862e5f6310 Minor update to new progress bar control : made non-focusable. Update Xcode project.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5662 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 22:26:17 +00:00
xapantu
ad9eb86671 Adding a progress bar to download addons.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 14:39:45 +00:00
auria
ada915c207 Fixed typo in Widget documentation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5626 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-04 19:54:33 +00:00
auria
a77405d53a Fixed potentially dangerous name clash between Widget members and SkinWidgetContainer members + added the proper m_ prefix as per our style guidelines along the way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5625 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-04 19:25:20 +00:00
auria
41dbc1311d Fixed badges wrongly remaining on empty ribbon items
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5571 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-27 17:40:00 +00:00
auria
b9fcde4826 Removed outdated TODO
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5565 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-26 19:35:48 +00:00
auria
7db06e27e1 Fixed memory leak
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5564 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-26 19:33:03 +00:00
auria
5f18162c25 Simplified and cleaned up kart selection focus dispatcher logic; also corrected warp-around to work properly there
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5563 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-26 17:19:12 +00:00
auria
0350423907 Fixed issue with duplicated resolutions + resolutions not always greyed out when the options menu is viewed in-game
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5562 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-26 15:00:13 +00:00
auria
81282e3464 Modified several screens that used absolute positions and sizes to use the full power of the layout managers
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5558 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-25 01:29:10 +00:00
auria
b0b3faf53a Fixed focus navigations with missing widget IDs. For now up to 10 IDs may be missing and navigation will still work, I don't think we need more than 10
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5557 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-25 01:13:15 +00:00
auria
bef7ae34a8 Always give the mouse game master privileges, less confusing for players
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5555 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 18:56:27 +00:00
auria
9bfbcc40c1 Fixed rendering of disabled tabs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5554 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 18:44:07 +00:00
auria
48e1f98209 Improved skin render when several players are selecting the same kart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5553 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 18:40:44 +00:00
auria
a1ebd4fc36 Make a hack around irrlicht limitations even more hackish to correct a crash when a list widget is the first in the screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5544 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 00:45:39 +00:00
auria
b297ef72de Corrected a FIXME by moving a constant where it belongs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5525 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-19 01:10:41 +00:00
auria
11e3877945 Removed outdated FIXME
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5524 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-19 01:05:58 +00:00
auria
2f10e0177c Removed unnecessary FIXME
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5523 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-19 01:03:53 +00:00
auria
4afb71659f Modified music handling, fixing the music heard during GP lost/won
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5513 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-13 18:25:49 +00:00
auria
582db98e0f Fixed animated ribbon widgets to work more than once
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5510 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-12 23:48:38 +00:00
auria
5536b4a0b9 Removed debug print
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5508 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-12 23:06:24 +00:00
auria
154a733725 Applied patch by Lilian Gimenez to correct input mode in dialogs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5496 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-10 23:45:14 +00:00
hikerstk
c6727bfc01 Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5476 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 03:16:02 +00:00
auria
a2825c4b36 Added support for Hebrew (and, more generally, RTL languages). fribidi must be available and ENABLE_BIDI must be defined (however the autotools build system currently does not check for fribidi presence so if you build with autotools it will always be off)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5457 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-30 19:11:39 +00:00
auria
1bdca718cb Added GP lose animation (not yet shown when actually playing, for now click on the 'network' button to see it as usual)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5454 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-30 15:45:44 +00:00
auria
db52b6907d Fixed fallback to default skin
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5448 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-16 01:36:18 +00:00
auria
0f32d738b4 Fixed reference counting problems with skin
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-16 01:26:53 +00:00
auria
ed0064bcff Forbid changing resolution in-game
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5443 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-15 18:51:29 +00:00
auria
5cddb8ffb6 Added support for selecting GUI skin through user interface; aded skins by Dakal as a proof it works
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5442 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-15 18:10:55 +00:00
auria
1556b60bdc Removed irrlicht 1.6 support code, since we don't support building with irrlicht 1.6 anymore
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5440 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-15 15:28:32 +00:00
auria
8bb6ca6ac6 Fixed left/right ribbon arrows
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5414 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-08 18:41:26 +00:00
auria
798c458ac5 More improvements to dynamica ribbon, fixing annoyance when items don't take all space allowed, fixing an empty space appearing in challenges screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5413 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-08 18:24:26 +00:00
auria
dbce446f81 Minor refactoring
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5412 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-08 17:47:12 +00:00
auria
6187f3a132 Fixed crash when backing to kart selection screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5407 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-07 17:31:57 +00:00
auria
bcc7b047b3 Made ribbon side arrows non-focusable, so that warp-around code does not erroneously pick them
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5402 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-07 15:59:58 +00:00
auria
e0ed3291e0 Added basic input conflict reporting (conflicting bindings)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5399 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-07 01:06:03 +00:00
auria
16e3988ddd Another major update to the input configuration screen. There are now separate configurable keys for menu navigations. Conflictm detection was not implemented back yet; multiplayer gameplay seems broken too. To be continued
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5371 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-03 23:37:38 +00:00
auria
c5b50e5a5c Major update to input handling code to support our #1 feature request : menu navigation should not be tied to accelerate/brake/steer, there should be keys especially for menu navigation. Note that the code is not yet complete, namely you cannot configure the menu keys
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5369 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-03 18:56:55 +00:00
auria
abab119b6d Fixed wrong (potentially old code) that was returning an enum item from a method returning bool (and the compiler doesn't tell, stupid C++)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5368 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-03 17:41:36 +00:00
auria
0930521e6b Minor cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5367 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-03 17:40:00 +00:00