80977 Commits

Author SHA1 Message Date
Celtic Minstrel
11e5700848 Events are now a Lua function instead of WML
The function is specified by [event]code= and will be passed the entire contents of the [event] tag (including the code itself).

If code= is omitted, a default is supplied which runs ActionWML; however, internally it is still a function rather than a list of ActionWML commands.
2022-07-18 21:56:42 -04:00
Pentarctagon
30df6fe4ff
Remove another stderr usage. 2022-07-18 16:59:54 -05:00
doofus-01
bc94f37f76
Update changelog.md 2022-07-17 14:14:58 -07:00
doofus-01
58403574d5
ghost sprite updates (#6881)
* base image for ghost that is not part of standing anim

* nightgaunt animations
2022-07-17 14:13:28 -07:00
Pentarctagon
a24ad70c21
Update macOS minimum OS and SDL2 versions. 2022-07-17 15:26:28 -05:00
Martin Hrubý (hrubymar10)
698f93f68e
Update Xcode project for new MCS 2022-07-17 19:58:45 +02:00
Nils Kneuper
a589941ccd updated Arabic translation 2022-07-17 10:50:52 +02:00
Steve Cotton
f2ef939352 Fix whitespace 2022-07-16 18:32:03 +02:00
Pentarctagon
265d3972da
Well clearly this doesn't do anything... 2022-07-16 09:59:55 -05:00
Tommy
8238a1d8d5 Update changelog for rendering engine changes, and a few other things
I put a longer-than-usual description of rendering engine changes,
with a list of closed issues tacked on the end.

I also added items for screen_fade and a couple other things that were
resolved since 1.17.5.
2022-07-16 22:11:38 +12:00
Nils Kneuper
fbdeb679cb updated Swedish translation 2022-07-16 10:59:10 +02:00
Nils Kneuper
5ba363ca2b updated Japanese translation 2022-07-16 10:57:44 +02:00
Nils Kneuper
322dd7a345 updated Italian translation 2022-07-16 10:56:30 +02:00
Tommy
7b9474d89f Disable some floating label errors until they can be addressed
They don't seem to cause any visible problems, but still shouldn't
be happening.
2022-07-16 14:41:38 +12:00
Tommy
269f0c4f5b story_viewer: Hide the game display when shown mid-scenario
Prevents some buggy behaviour similar to #3421.
2022-07-16 12:45:10 +12:00
Descacharrado
91983c8c87 TSG S4 Fixed replay OOS on victory event 2022-07-15 11:52:36 -05:00
Tommy
8144c06389
Add new [screen_fade] WML action (#6864)
* Add new [screen_fade] WML action

It takes (for now) the arguments:
 * red, green, blue = values between 0 and 255
 * alpha = value between 0 and 255
 * duration = time in ms over which to fade

The game display is faded to the given colour over the duration.
It will be left with an overlay of that colour and alpha until
a screen_fade to 0 alpha is performed.
2022-07-15 09:32:19 -04:00
Tommy
2ad0a2f297 Prevent the game from displaying until story screen has finished
Should fix #6867 and #3421.
2022-07-16 01:24:25 +12:00
Tommy
0d8612bb4f Fix listbox order-by selection 2022-07-15 13:39:31 +12:00
Tommy
90224728c1 Fix "def" label width in default theme
Fixes #6872
2022-07-15 13:38:51 +12:00
Tommy
0c49dff30e Fix CI unit test failure 2022-07-14 20:30:20 +12:00
Tommy
29204418db Fix Load Map dialog in the editor 2022-07-14 19:16:39 +12:00
Celtic Minstrel
bd05566de0 Don't include <iostream> in every single file
We don't want std::cerr to be used at all, and std::cout is only for certain special
cases such as command-line responses.

Therefore, log.hpp should not include <iostream>.
2022-07-14 02:13:33 -04:00
Tommy
a7d1e8e03c draw: Rename set_clip to override_clip to make usage clear
Also fixed a couple incorrect usages.
2022-07-14 17:56:54 +12:00
Tommy
5c3d959ae0 help: Properly clip text area when drawing 2022-07-14 17:38:07 +12:00
Tommy
76c7a83dab display: Initialize render textures to black, just in case
Fixes #4210
2022-07-14 15:33:34 +12:00
Pentarctagon
e1f15234a4
Check whether the unit is valid before using it.
Fixes #6863.
2022-07-13 09:58:35 -05:00
newfrenchy83
8cb73a4231 update codeblocks projectfiles 2022-07-13 14:15:05 +02:00
Tommy
5c3ae68ba0 Fix map screenshots 2022-07-13 22:58:41 +12:00
Tommy
33def270d8 editor: Stop drawing the palette during callbacks 2022-07-13 22:58:34 +12:00
Tommy
caa8619898 widgets/menu: Don't draw during layout 2022-07-13 22:58:27 +12:00
Tommy
bb05eee11e display: Allow redraw_everything() to be called outside draw phase
It still needs a refactor, but this is a quick fix.
2022-07-13 19:26:18 +12:00
Tommy
f48a469dd1 display: Update the off-map area on both buffer textures, not just one
Fixes a potential glitch after zooming.
2022-07-13 18:31:09 +12:00
Tommy
cf828f1c81 Don't show the window until the renderer has been created
Fixes brief window flicker when starting the game.
2022-07-13 17:36:16 +12:00
Tommy
26ae5a6fb0 Make blue fires in test scenario more obviously blue 2022-07-13 16:33:09 +12:00
Tommy
fd8068ddc9 Remove comment about fire animation in test scenario
This method of item animation is unsupported. Ref GH#1219
2022-07-13 16:32:25 +12:00
Tommy
efa9946bbb Fix some display issues for themes with no background or minimap
Mostly affects the cutscene theme.
2022-07-13 16:31:08 +12:00
Wedge009
a6c57d014d Test scenario: Use progressive syntax for fire animation
[ci skip]
2022-07-13 13:11:00 +10:00
mattsc
2424d5705f Micro AI CAs: add handle_user_interact calls 2022-07-12 22:57:16 -04:00
mattsc
c7b3393a9d ai_helper: add handle_user_interact calls 2022-07-12 22:57:16 -04:00
mattsc
b1b521f582 Lua AI CAs: add handle_user_interact calls
Insert these calls in loops that do expensive calculations for the CAs of the default and experimental AIs.
2022-07-12 22:57:16 -04:00
mattsc
d7ecfa2744 Add wesnoth.interface.handle_user_interact Lua function 2022-07-12 22:57:16 -04:00
Tommy
7370ef62cb Disable other mouse motion events while scrolling via middle mouse
Fixes stuttering while scrolling, and also various other distracting
effects such as showing reach map of units when passed over.
2022-07-13 13:34:01 +12:00
Tommy
2279ec99eb Fix crash when resizing window in map editor
Something is processing events during render, but finding it is
more difficult than just aborting drawing when the vector of
drawables gets invalidated.

Once that is fixed nothing will be changing the drawable vector,
so this will then have no effect. Until then it will cause some
flickering when resizing, but it won't crash.
2022-07-13 13:34:01 +12:00
Tommy
f967007511 display: Fill render buffers with background texture when created
Fixes possible missing bg texture at the start of a scenario, when
the map doesn't fill the whole display area.
2022-07-13 13:34:01 +12:00
Tommy
d95a154a59 Do not block everything when fading music in and out.
Fixes #4460.

Also fixes the seconds-long UI block at the start of a scenario and
when beginning story view at the start of a campaign.

And thus, also fixes the new visual fade-in effect which was completely
broken by music fade-in blocking everything.

Note that this fix does cause fades to happen in a non-blocking manner.
Old music will fade out in the background, then the new music will
fade in once the old music has finished fading out.
2022-07-13 13:34:01 +12:00
Tommy
96ebc1b531 Disable minimap generation when display is faked 2022-07-13 13:34:01 +12:00
Tommy
efffe284b8 Begin single-player scenarios with a smooth fade-in effect
Currently it fades from black over half a second.
2022-07-13 13:34:01 +12:00
Tommy
859f10a232 display: Add the capability to fade the game display to a solid colour
Currently this is simply display.fade_to(colour, fade_time).
2022-07-13 13:34:01 +12:00
Tommy
d9acaf3c71 color_t: Add functions for proportional blending
color_t::smooth_blend(other, proportion) and color_blend(v1, v2, p).
2022-07-13 13:34:01 +12:00