Ролик

Добавлен
После создания ролика на карте исчезло описание предметов и способностей, в чем заключается проблема?

Принятый ответ

call EnableUserUI(false)
Это, насколько я помню.
0
6
12 лет назад
0
Что у тебя там за проблемы?Сам с таким не когда не встречался, ошибка в коде, или расплытые глаза возле экрана.
0
11
12 лет назад
0
Просто исчезло описание способностей, юнитов, предметов, всех иконок в общем (когда наводишь).
1
29
12 лет назад
1
Это из-за фильтра на экране.
0
11
12 лет назад
0
Исправить как? Я его скрываю и все.
0
29
12 лет назад
0
Не знаю, надо уничтожать вроде.
Это только из-за гуи, если жассом фильтр правильно применить - все будет ок.
0
22
12 лет назад
0
Я встречал в одной карте такую проблему, но не думал что это из-за фильтра. Doc, можно по-конкретнее?
0
29
12 лет назад
0
Предоставьте мне раскрытую БЖ функцию установки фильтра и я скажу, где проблема.
0
11
12 лет назад
0
xgm.ru/p/wc3/hdrolik ссылка на ролик если вам это чем-нибудь поможет =)
0
22
12 лет назад
Отредактирован Zahanc
0
Ф-я довольно массивная.
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

function AbortCinematicFadeBJ takes nothing returns nothing
    if (bj_cineFadeContinueTimer != null) then
        call DestroyTimer(bj_cineFadeContinueTimer)
    endif

    if (bj_cineFadeFinishTimer != null) then
        call DestroyTimer(bj_cineFadeFinishTimer)
    endif
endfunction

function CinematicFadeBJ takes integer fadetype, real duration, string tex, real red, real green, real blue, real trans returns nothing
    if (fadetype == bj_CINEFADETYPE_FADEOUT) then
        // Fade out to the requested color.
        call AbortCinematicFadeBJ()
        call CinematicFadeCommonBJ(red, green, blue, duration, tex, 100, trans)
    elseif (fadetype == bj_CINEFADETYPE_FADEIN) then
        // Fade in from the requested color.
        call AbortCinematicFadeBJ()
        call CinematicFadeCommonBJ(red, green, blue, duration, tex, trans, 100)
        call FinishCinematicFadeAfterBJ(duration)
    elseif (fadetype == bj_CINEFADETYPE_FADEOUTIN) then
        // Fade out to the requested color, and then fade back in from it.
        if (duration > 0) then
            call AbortCinematicFadeBJ()
            call CinematicFadeCommonBJ(red, green, blue, duration * 0.5, tex, 100, trans)
            call ContinueCinematicFadeAfterBJ(duration * 0.5, red, green, blue, trans, tex)
            call FinishCinematicFadeAfterBJ(duration)
        endif
    else
        // Unrecognized fadetype - ignore the request.
    endif
endfunction
Надеюсь я о нужных фильтрах подумал.
0
29
12 лет назад
0
call EnableUserUI(false)
Это, насколько я помню.
Принятый ответ
Чтобы оставить комментарий, пожалуйста, войдите на сайт.