7 protected ChimeraCharacter m_pCharacterEntity;
13 return s_pScreenEffectsManager;
17 override void DisplayStartDraw(IEntity owner)
19 s_pScreenEffectsManager =
this;
21 GetGame().OnUserSettingsChangedInvoker().Insert(SettingsChanged);
25 ManagerClearEffects();
29 void SettingsChanged()
31 array<BaseInfoDisplay> infoDisplays = {};
37 screenEffect.SettingsChanged();
42 override void DisplayControlledEntityChanged(IEntity from, IEntity to)
45 m_pCharacterEntity = ChimeraCharacter.Cast(to);
49 override event void DisplayUpdate(IEntity owner,
float timeSlice)
51 if (!
GetGame().GetCameraManager())
54 CameraBase currentCamera =
GetGame().GetCameraManager().CurrentCamera();
55 PlayerCamera playerCamera =
GetGame().GetPlayerController().GetPlayerCamera();
56 if (!playerCamera || currentCamera != playerCamera)
61 array<BaseInfoDisplay> infoDisplays = {};
67 screenEffect.UpdateEffect(timeSlice);
73 void ManagerClearEffects()
75 array<BaseInfoDisplay> infoDisplays = {};
81 screenEffect.ClearEffects();
86 override event void DisplayStopDraw(IEntity owner)
88 ManagerClearEffects();
89 GetGame().OnUserSettingsChangedInvoker().Remove(SettingsChanged);
91 s_pScreenEffectsManager =
null;