CinematicFadeCommonBJ
- Parameters
-
red realgreen realblue realduration realtex stringstartTrans realendTrans real - comment
- patch
-
1.00
- Source
- Blizzard.j (suggest an edit or discuss on Github)
- return type
-
nothing - Source code
-
function CinematicFadeCommonBJ takes real red, real green, real blue, real duration, string tex, real startTrans, real endTrans returns nothing if (duration == 0) then // If the fade is instant, use the same starting and ending values, // so that we effectively do a set rather than a fade. set startTrans = endTrans endif call EnableUserUI(false) call SetCineFilterTexture(tex) call SetCineFilterBlendMode(BLEND_MODE_BLEND) call SetCineFilterTexMapFlags(TEXMAP_FLAG_NONE) call SetCineFilterStartUV(0, 0, 1, 1) call SetCineFilterEndUV(0, 0, 1, 1) call SetCineFilterStartColor(PercentTo255(red), PercentTo255(green), PercentTo255(blue), PercentTo255(100.0-startTrans)) call SetCineFilterEndColor(PercentTo255(red), PercentTo255(green), PercentTo255(blue), PercentTo255(100.0-endTrans)) call SetCineFilterDuration(duration) call DisplayCineFilter(true) endfunction