Difference between revisions of "MDE Scripting: FaderFadeIn"

From Nomad DB
(Created page with "{| class="wikitable" !Syntax |<syntaxhighlight lang="lua">game.hud:FaderFadeIn(number duration)</syntaxhighlight> |- !Module |HUD |- !Libra...")
 
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Page_MDE}}
 
{| class="wikitable"
 
{| class="wikitable"
 
!Syntax
 
!Syntax
Line 4: Line 5:
 
|-
 
|-
 
!Module
 
!Module
|[[MDE_Scripting:_Game_Library#HUD|HUD]]
+
|[[MDE Scripting: Game Library#HUD|HUD]]
 
|-
 
|-
 
!Library
 
!Library
|[[MDE_Scripting:_Game_Library|Game]]
+
|[[MDE Scripting: Game Library|Game]]
 
|-
 
|-
 
!Game
 
!Game
|[[MDE_Scripting|Mafia: Definitive Edition]]
+
|[[MDE Scripting|Mafia: Definitive Edition]]
 
|}
 
|}
  
Line 17: Line 18:
 
Fade-in effect (from black to image)
 
Fade-in effect (from black to image)
  
See [[MDE_Scripting:_FaderFadeOut]] to invert.
+
See [[MDE Scripting: FaderFadeOut|FaderFadeOut]] for fade-out effect.
  
  
Line 38: Line 39:
 
!Description
 
!Description
 
|-
 
|-
|1
+
| style="font-weight: bold; text-align:center;" | 1
|nil
+
|[[MDE Scripting: C_SyncObject|C_SyncObject]]
|Nothing
+
|Sync Object
 
|}
 
|}
  
  
== Example ==
 
{| class="wikitable"
 
|<syntaxhighlight lang="lua">
 
game.hud:FaderFadeIn(3000)
 
  
-- Fade in during 3 seconds
+
== Examples ==
 +
<syntaxhighlight lang="lua">
 +
local so = game.hud:FaderFadeIn(3000) -- Fade-in during 3 seconds
 
</syntaxhighlight>
 
</syntaxhighlight>
|}
+
 
  
  

Latest revision as of 02:25, 20 November 2020

Syntax
game.hud:FaderFadeIn(number duration)
Module HUD
Library Game
Game Mafia: Definitive Edition


Description

Fade-in effect (from black to image)

See FaderFadeOut for fade-out effect.


Parameters

Name Type Description
duration number Time in milliseconds


Returns

# Type Description
1 C_SyncObject Sync Object


Examples

local so = game.hud:FaderFadeIn(3000) -- Fade-in during 3 seconds