161 Commits

Author SHA1 Message Date
Guillaume Melquiond
f472a7d67a Fixed segfault when using up and down keys.
Fixed keys not making it possible to go to the tip buttons.

Fixed useless and missing translatable strings.
2010-08-09 10:43:04 +00:00
Ali El Gariani
52bccc12fa Move all game_config foo_image into sub-namespace images...
...(as we do for sounds).

Drop the _image suffix and reorganize order.
2010-08-04 03:22:00 +00:00
Mark de Wever
a99c78e0d8 Update doxygen comment.
The filename after the @file comment is optional (spotted by alink).
2010-07-26 21:32:18 +00:00
Mark de Wever
804e425530 Make Wesnoth more compatible with C++0x (g++-4.5). 2010-06-12 16:03:07 +00:00
Ali El Gariani
f6fab3788f Rename all SDL_Color font::FOO_COLOUR as font::FOO_COLOR 2010-06-02 22:14:44 +00:00
Ali El Gariani
bf226a9412 Activate pango markup for Tips of the Day texts 2010-05-16 13:02:35 +00:00
Guillaume Melquiond
df3728b8ef Scaled titlescreen logo according to the available space.
(Fix for bug #15501.)
2010-02-28 08:04:55 +00:00
Guillaume Melquiond
d8a68aebb8 Fixed position of tip source for RTL languages. 2010-02-20 22:39:44 +00:00
Mark de Wever
6e5e09ae9f Make a member function a const member function.
Issue found by cppcheck.
2010-01-23 19:43:38 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Guillaume Melquiond
a317fcc93a Converted tips of day to Pango rendering. (Fix for bug #14957.) 2009-12-23 15:24:24 +00:00
Guillaume Melquiond
61f5727523 Partly fixed compilation issues with ICC,
...including some real bugs in the code.
2009-12-18 08:08:48 +00:00
Mark de Wever
87ea0c373d Pre instead of post increment a variable.
Issue found by cppcheck.
2009-11-27 22:59:36 +00:00
Chusslove Illich
fdd9184259 Logo coordinates on title screen are now relative to center of the logo.
This way localized logos of different widths can be accomodated.
2009-11-22 20:50:57 +00:00
Gunter Labes
a7989e3ab8 made tip buttons work right with the keyboard 2009-10-23 02:10:06 +00:00
Tomasz Śniatowski
1a934ac94b rename editor2 -> editor. Old editor is long dead, long live the new editor! 2009-08-08 12:14:58 +01:00
Mark de Wever
0633b7a5d3 Removed the option to disable the tips of the day.
The option was hidden and not even sure anybody is/was aware of the
feature.
2009-06-13 17:04:04 +00:00
Mark de Wever
f39da12fd5 Expose a bit of the tips of day implementation.
This is needed to share the code between to old an new titlescreen code.
2009-06-13 17:03:56 +00:00
Guillaume Melquiond
789736ac91 Removed specialized domains from log.hpp,
...so that adding a new domain no longer forces to recompile the whole
game.
2009-04-24 23:18:31 +00:00
Guillaume Melquiond
60808a88ba Got rid of pointers to config objects. Removed code duplication along the way. 2009-04-04 17:51:20 +00:00
Guillaume Melquiond
a0d961c8c9 Removed config::get_children. 2009-03-20 07:08:31 +00:00
Guillaume Melquiond
5c41645a0f Removed config::child_range_bak. 2009-03-20 07:07:40 +00:00
Guillaume Melquiond
bee7ad1385 Modified config::child_range so that it returns opaque iterators. 2009-03-20 07:06:27 +00:00
Tomasz Śniatowski
6c150e2301 clarify previous commit about a msvc warning 2009-03-07 15:53:43 +01:00
Tomasz Śniatowski
29fb7c2c1d fix a msvc warning 2009-03-07 14:16:33 +01:00
Ali El Gariani
c421154d5c An optimized version of scale_surface for opaque surfaces
(no difference, just skip alpha but ~2x faster)

Currently only used for the titlescreen. But may also be used for story images.
2009-03-07 02:43:01 +00:00
Guillaume Melquiond
79f5e8aefa Changed to proper WML lookup. 2009-03-03 17:44:21 +00:00
Mark de Wever
973a0a7d5c Remove trailing whitespace. 2009-01-01 10:28:26 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Alexander van Gessel
cdc48f25df Add some comments about 2008-12-27T13:07:37Z!ai0867@gmail.com. 2008-12-27 14:55:04 +01:00
Alexander van Gessel
611e541b44 Apply patch #1116 by dlr365 with a few modifications,
...this fixes bug #12747 (holding escape in a titlescreen dialog exits
the game)
2008-12-27 14:07:37 +01:00
Gunter Labes
02e2689794 renamed Editor to Map Editor in the titlescreen 2008-12-07 11:25:55 +00:00
David White
a7115785f5 fixed gcc warning 2008-11-11 16:00:03 +00:00
David White
ee8ee9c413 make the game upload stats by default 2008-11-11 06:08:47 +00:00
Tomasz Śniatowski
81c1110fdb add basic keyboard control in main menu, happens to be fr / bug #3835 2008-10-04 22:43:38 +01:00
Tomasz Śniatowski
d553c9d313 change #ifdef USE_EDITOR2 to #ifndef DISABLE_EDITOR2...
...and update buildsystems accordingly. This will force people using
custom builds (e.g. devcpp, codeblocks) to either add editor2 sources
or consciously disable it.
2008-09-05 14:32:24 +01:00
Mark de Wever
71a66eaf11 Fix the assumption the TITLE_RESULT starts at 0.
After committing 2008-08-24T12:28:35Z!koraq@xs4all.nl some other problems got noticed and fixed in
this commit.
2008-08-24 19:16:03 +00:00
Mark de Wever
81c6a850ab MSVC 6 cleanup.
Now that MSVC 6 is no longer supported start to remove some helper code
to work around problems in that compiler. The first step is to comment
out the code and replace it with new helper code that uses the standard.
The second step is to remove the helper code and fix all callers.

Patch 2/3 for step 2: Remove minimum and maximum and fix all callers.
2008-08-24 16:12:13 +00:00
Mark de Wever
4edf713f60 Fix the assumption the TITLE_RESULT starts at 0.
We now do the assumption TUTORIAL is the first item, but that's
documented. The change is needed as prerequisites to change the title
screen to the new widget code. Also change a C-style cast to
static_cast.
2008-08-24 12:28:35 +00:00
Pauli Nieminen
927ceb8610 Made titlescreen reload game configs when F5 is pressed
Fixed titlescreen loop tohave event::pump() at top
2008-06-28 21:20:40 +00:00
Ignacio R. Morelle
c6233bb1e5 Allow titlescreen startup effect to be disabled in adv. preferences 2008-06-17 20:15:05 +00:00
Tomasz Śniatowski
fd0d601740 change editor2 define to USE_EDITOR2 for consistency 2008-06-07 14:34:05 +01:00
Ali El Gariani
60aa8b662c Cleaner fix for the previous commit about refreshing titlescreen 2008-05-28 21:39:24 +00:00
Mark de Wever
a7f9b87644 Update doxygen comment style. 2008-05-23 19:05:31 +00:00
Ali El Gariani
2b3c59b5d3 Fix slow refresh of the titlescreen after closing simple dialogs.
(caused by the redraw + scaling of background when resolution is not
1024x768)

PS: still need to fix an useless redraw after the multiplayer dialogs
2008-05-22 00:43:18 +00:00
Tomasz Śniatowski
d17e98ea18 Some map editor project stubs.
Nothing usable, but contains a take on editor actions. Should not
affect other devs -- changes outside map_editor dir are surounded by
#ifdef MAP_EDITOR.
2008-05-08 22:00:39 +01:00
Mark de Wever
06b32747ae Add the option to have multiple title screens...
...and load one at random (patch #1061).
2008-04-30 16:59:27 +00:00
Ignacio R. Morelle
c95882b5df Added padding to the version text and its shade, as Ivanovic suggested 2008-04-28 21:47:00 +00:00
Ignacio R. Morelle
1e974801f9 RFC - placing a 75% opaque shade below version text...
...seems to be better than 50% on 2008-04-28T20:16:14Z!shadowm@wesnoth.org
2008-04-28 20:22:56 +00:00
Ignacio R. Morelle
e34a2dd43d RFC - Version text more readable now? 2008-04-28 20:16:14 +00:00