mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 03:25:37 +00:00
DiD: Use the FADE macros just moved into core,
...rather than hand-rolled equivalents.
This commit is contained in:
parent
93ead85e99
commit
50b729ce29
@ -235,25 +235,7 @@
|
||||
fire_event=no
|
||||
[/kill]
|
||||
|
||||
# this is used for fading the screen to black and back
|
||||
|
||||
#define FADE_STEP LIGHTNESS DELAY
|
||||
[colour_adjust]
|
||||
red,green,blue={LIGHTNESS},{LIGHTNESS},{LIGHTNESS}
|
||||
[/colour_adjust]
|
||||
|
||||
[redraw]
|
||||
[/redraw]
|
||||
#enddef
|
||||
|
||||
{FADE_STEP -32 5}
|
||||
{FADE_STEP -64 5}
|
||||
{FADE_STEP -96 5}
|
||||
{FADE_STEP -128 5}
|
||||
{FADE_STEP -160 5}
|
||||
{FADE_STEP -192 5}
|
||||
{FADE_STEP -224 5}
|
||||
{FADE_STEP -255 5}
|
||||
{FADE_TO_BLACK}
|
||||
|
||||
[redraw]
|
||||
[/redraw]
|
||||
@ -262,16 +244,7 @@
|
||||
|
||||
{DIALOGUE_DID_LICH1}
|
||||
|
||||
{FADE_STEP -224 5}
|
||||
{FADE_STEP -192 5}
|
||||
{FADE_STEP -160 5}
|
||||
{FADE_STEP -128 5}
|
||||
{FADE_STEP -96 5}
|
||||
{FADE_STEP -64 5}
|
||||
{FADE_STEP -32 5}
|
||||
{FADE_STEP 0 5}
|
||||
|
||||
#undef FADE_STEP
|
||||
{FADE_IN}
|
||||
|
||||
# and is reborn as a lich
|
||||
[unit]
|
||||
|
@ -486,8 +486,8 @@
|
||||
#enddef
|
||||
|
||||
#The macro that the following fade to black macros rely on
|
||||
#define FADE_STEP LIGHTNESS DELAY
|
||||
{FADE_STEP_RGB LIGHTNESS LIGHTNESS LIGHTNESS DELAY}
|
||||
#define FADE_STEP NUMBER DELAY
|
||||
{FADE_STEP_RGB {NUMBER} {NUMBER} {NUMBER} {DELAY}}
|
||||
#enddef
|
||||
|
||||
#define FADE_TO_BLACK
|
||||
|
Loading…
x
Reference in New Issue
Block a user