| 05-15-2006, 12:15 PM | #1 |
If I use a fadefilter, does it disable player controll or can I still move the camera/control units? Can I have a fadefilter with alpha channels so I can see through it? Does Fadefilters leak? If not does anything else in the function to create one leak? |
| 05-15-2006, 12:25 PM | #2 |
Yes, you can still control everything. All that you should take care off is that using GUI functions will disable all tooltips&stuff. This can be fixed by doing some jass tho. Yes No: JASS: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-startTrans)) call SetCineFilterEndColor(PercentTo255(red), PercentTo255(green), PercentTo255(blue), PercentTo255(100-endTrans)) call SetCineFilterDuration(duration) call DisplayCineFilter(true) endfunction |
| 05-16-2006, 01:25 PM | #3 |
Ok thx :) just what I hoped for |
