DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ ShowDeadScreen()

void DayZPlayer::ShowDeadScreen ( bool show,
float duration )
inlineprotected

См. определение в файле DayZPlayerImplement.c строка 769

770 {
771 #ifndef NO_GUI
772 if (show && IsPlayerSelected())
773 {
774 #ifdef PLATFORM_PS4
775 OnlineServices.SetMultiplayState(false);
776 #endif
777
778 string message = "";
779 if (!GetGame().GetMission().IsPlayerRespawning())
780 {
781 message = "#dayz_implement_dead";
782 }
783
784 #ifdef PLATFORM_CONSOLE
785 GetGame().GetUIManager().ScreenFadeIn(duration, message, FadeColors.DARK_RED, FadeColors.WHITE);
786 #else
787 GetGame().GetUIManager().ScreenFadeIn(duration, message, FadeColors.BLACK, FadeColors.WHITE);
788 #endif
789 }
790 else
791 {
792 GetGame().GetUIManager().ScreenFadeOut(duration);
793
794 if (duration > 0)
796 else
798 }
799 #endif
800 }
proto native UIManager GetUIManager()
override ScriptCallQueue GetCallQueue(int call_category)
Определения DayZGame.c:1187
override void StopDeathDarkeningEffect()
Определения DayZPlayerImplement.c:802
bool IsPlayerSelected()
Определения DayZPlayerImplement.c:3803
proto void Call(func fn, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto native void ScreenFadeOut(float duration)
proto native void ScreenFadeIn(float duration, string text, int backgroundColor, int textColor)
proto native CGame GetGame()
const int CALL_CATEGORY_GUI
Определения 3_Game/tools/tools.c:9

Перекрестные ссылки ScriptCallQueue::Call(), CALL_CATEGORY_GUI, ScriptCallQueue::CallLater(), CGame::GetCallQueue(), GetGame(), CGame::GetUIManager(), IsPlayerSelected(), UIManager::ScreenFadeIn(), UIManager::ScreenFadeOut(), OnlineServices::SetMultiplayState() и StopDeathDarkeningEffect().

Используется в SimulateDeath().