140 Commits

Author SHA1 Message Date
Mark de Wever
33f2b572a2 Remove unneeded includes. 2010-12-05 18:08:45 +00:00
Guillaume Melquiond
427e5c4938 Removed unused function get_new_storyscreen_status. 2010-10-30 09:02:14 +00:00
Ali El Gariani
3a085f75b6 Move all calls to SDL_FillRect into one place (sdl_fill_rect) 2010-09-24 18:45:19 +00:00
Guillaume Melquiond
eeb047de55 Fixed file headers so that they match the content of the COPYING file. 2010-09-01 21:12:38 +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
9af4c11072 Make Wesnoth more compatible with C++0x (g++-4.5). 2010-06-12 16:03:50 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Eugen Jiresch
3199a9d64d removed some unneeded includes of gamestatus.hpp 2009-06-25 08:42:51 +00:00
Ignacio R. Morelle
4bf50066ff Add code that uses Pango for rendering storyscreen text...
...instead of SDL_ttf. It is enabled at run-time only if the
--shadowm-storyscreens switch is passed in the command line.

At the moment, this code is pretty much untested and messy, and doesn't
implement any visual effects.
2009-06-09 14:05:09 +00:00
Guillaume Melquiond
14abb2f0f4 The dependency graph of Wesnoth is plain idiotic.
As if pathfind.cpp needed to depend on font.hpp...
2009-05-01 16:14:33 +00:00
Ignacio R. Morelle
28ecafc930 Get rid of the show_intro() stub procedure, replaced with show_storyscreen(). 2009-04-30 02:00:48 +00:00
Ignacio R. Morelle
82338fe026 Enable the experimental storyscreen code.
The --shadow-storyscreen switch is left for experimental features that
will follow soon (including a new idiom for end-of-campaign text
screens).

Note that the new storyscreen code causes a noticeable delay on startup
for HttT as it caches scaled down versions of the background graphics.
We should probably do loadscreen calls there...
2009-04-28 01:45:20 +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
Mark de Wever
104aec7df1 Fix a compiler warning. 2009-03-31 17:13:25 +00:00
Ignacio R. Morelle
aa6b0a82b7 Enabled compilation of the experimental storyscreen code by default.
* It is disabled at runtime unless the (purposefully undocumented)
  switch --shadowm-storyscreen is passed to the game's command line.

* Doxygen.
2009-03-31 16:51:39 +00:00
Ignacio R. Morelle
089f42d488 More stuff for the storyscreen code refactoring.
The code at the moment is sketchy and messy; this will change later.
2009-03-31 16:06:04 +00:00
Ignacio R. Morelle
7a501d60e7 Began refactoring of story screens,
...which will also change their WML structures in the future.

For now there is only a minimal set of stubs in the new code, which is
also disabled for normal builds unless -DSHADOWM_STORYSCREEN is used.
If you find "bugs" in the new code in storyscreen.?pp, talk with me first,
I may be aware of them already...
2009-03-30 23:06:12 +00:00
Mark de Wever
7806c08378 Fix indention. 2009-03-29 10:07:05 +00:00
Mark de Wever
59d31d03d6 Remove an unused variable. 2009-03-29 10:06:58 +00:00
Ignacio R. Morelle
bf42c068e9 [switch] and its children, [else] and [case],
...may be used in story WML ([story]) from now on.

Fulfills FR / bug #13170.

Silene or Sapient may want to check the usage of
vconfig::all_children_iterator in this commit, however.
2009-03-24 12:20:22 +00:00
Ignacio R. Morelle
89ce94ce96 Writing through the lg::wml log domain isn't equivalent to putting stuff...
...at the end of the lg::wml_error stringstream... why label a commit
like part of a different refactoring task if it also has these
unrelated side-effects?
2009-03-24 12:19:57 +00:00
Guillaume Melquiond
c4f1eabdb2 Removed config::child_list. 2009-03-20 07:06:59 +00:00
Ali El Gariani
54ed6fd54f Mainly revert 2009-02-20T16:40:51Z!alinkmaze@gmail.com...
...(problem with fake screen) but keep the small optimization
2009-02-21 15:48:02 +00:00
Ali El Gariani
6bbbb275c3 Also update the last get_surface_portion() to get_screen_portion()
(in story's text background)
2009-02-20 16:54:03 +00:00
Karol Nowak
bbca9942cd Removed intro screen updates to stop textbox flickering.
Since the text box is drawn in the helper, it would flicker
if the screen got updated just after drawing the background.
It was very visible in the TRoW intro sequence.
The new condition is there to keep animation functionality.
2009-02-08 23:20:42 +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
Ignacio R. Morelle
6030945f3a Per ESR's request, deprecation_message tags are scanned for in StoryWML now.
(I assume they may be found under [story] and [part], to be specific; no
scanning is done under [image] or other future tags.)
2008-12-31 18:30:01 +00:00
Ignacio R. Morelle
4cf4b2f68e Fix unintended double-blurring pass on story screens' text background 2008-11-28 18:46:41 +00:00
Ignacio R. Morelle
5bb94acd7f Add blurring to story screens
Fixed a possible reference-to-temporary issue (symptom might be
mordante's memory corruption)

Removed flickering when redrawing the text area's background.
2008-11-24 14:43:05 +00:00
Ignacio R. Morelle
3bd65af570 Added a border to story screens 2008-11-24 14:41:38 +00:00
Ignacio R. Morelle
32fc05ab01 [[Story-screen tweaks]]
* Removed text wrapping around background image in story screens; it is
  better to always use the whole screen width if possible (fixes the
  first story screens in Descent into Darkness and Under the Burning Suns).

* Tweaked the algorithm that extends the darkened area below long
  story texts so that it gives a more consistent appearance.
2008-11-23 17:20:10 +00:00
Ignacio R. Morelle
980eb1d4dd Changed Doxygen comments a bit 2008-11-23 17:15:52 +00:00
Ignacio R. Morelle
33d2dfdbc2 Remove transitional the_end() overload...
...that was used only temporarily in my working copy.
2008-11-19 15:52:25 +00:00
Ignacio R. Morelle
dfe93dd3c2 Fix some serious memory corruption/SIGABRT/SIGSEGV...
...that occurred at random after expanding the story WML vconfig for
the [image] tag. It occurred in UMC "Invasion from the Unknown",
particularly due to a variable-expanded [image] file= attribute.

This was caused by a mess of reference-to-temporary
issues that aren't compatible with vconfig's model of
attribute values.
2008-11-19 15:12:09 +00:00
Ignacio R. Morelle
d421e7e6dd [[Fixes for end-of-campaign screen]]
* Added the basic C++ interfaces for custom end-of-campaign texts.
  We still need a WML interface. (feature/bug #10449 - not finished)

* Fixed unresponsiveness of color cursors on end-of-campaign screen.

* Changed EoC timeout from 4 secs. to 3.5.
2008-11-19 02:42:11 +00:00
Ignacio R. Morelle
0448a9f9a5 WML variable expansion can be used in story [part]s
(feature / bug #10398).
2008-11-13 19:22:20 +00:00
Ignacio R. Morelle
9bfc7dce61 Fix the story parts with show_title=yes and story text...
...not having the black rectangle drawn behind.

(This affected A Tale of Two Brothers in mainline.)
2008-11-13 18:19:42 +00:00
Ignacio R. Morelle
f4d4d564e5 Remove unnecessary code lines. 2008-11-13 18:17:45 +00:00
Mark de Wever
693fb83868 Add missing foo.hpp in foo.cpp. 2008-11-09 10:23:17 +00:00
Eric S. Raymond
9223460daa Remove unused headers. 2008-11-09 04:35:13 +00:00
Mark de Wever
615e4d48de Update doxygen comment style. 2008-10-30 16:36:50 +00:00
Alexander van Gessel
2ca1adb0b3 Simplified + constified scale_background code. 2008-09-19 08:13:10 +01:00
Alexander van Gessel
380c341e24 Adress bug #10738 (Add 'scale_background' key to [story]) 2008-09-18 09:18:01 +01: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
Ali El Gariani
e9a7b01344 Continue to replace SDL_CreateRGBSurface by create_neutral_surface() 2008-06-16 15:25:04 +00:00
Bruno Wolff III
e69da57722 Silence gcc 4.3 warning by adding parens around && clause near ||. 2008-03-19 17:09:25 +00:00
Ignacio R. Morelle
0f95c05c1c Solve once and for all issues with scenario title readability...
...on Intro screen  when a story map is used
2008-03-14 11:06:35 +00:00
Ignacio R. Morelle
93b26eba79 Most boolean WML attribute probes use the standard util::string_bool() now
[set_variable] accepts string_length=

[variable] accepts boolean_not_equals=

[modify_side] can set a side's AI parameters now, using the [ai]
syntax as side declarations do (patch #984)
2008-03-06 11:14:52 +00:00
Dimitar Ilccov
ef907c83eb Changed the color of the scenario titles on the bigmap to green.
This will have to do for now for the problem of the title letters
sometimes being indistinguishable from the background because of lack
of contrast against the background image. Hopefully someday someone
will fix this problem in a better way.
2008-02-21 08:15:14 +00:00