![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
grouped gameplay effect widgets and their handling More...
Protected Member Functions | |
| void | ~GameplayEffectWidgets () |
| override void | AddActiveEffects (array< int > effects) |
| override void | AddSuspendRequest (int request_id) |
| void | CalculateBreathEffect (float timeSlice=0, int type=-1, Param p=null) |
| void | CalculateFlashbangEffect (int type, float timeSlice, Param p, int handle) |
| void | CalculateOccluderEffect (int type, float timeSlice, Param p, int handle) |
| void | CalculateValues (int type=-1, float timeSlice=0, Param p=null, int handle=-1) |
| Only one calculation per unique WidgetSet. | |
| override void | ClearSuspendRequests () |
| array< int > | CompileEffectListing () |
| returns all vanilla effects, nested in a vanilla layout. If using different layouts for custom effects, please register and link separately | |
| bool | CreateHandledClass (typename handled_type, array< ref Widget > input, int type, int user_override) |
| void | GameplayEffectWidgets () |
| override int | GetSuspendRequestCount () |
| void | HandleWidgetRoot (float timeSlice=0, Param p=null, int handle=-1) |
| void | Init () |
| void | InitLayouts () |
| void | InitWidgetSet (int type, bool updating=false, int user_id_override=-1) |
| InitWidgetSet. | |
| void | InitWidgetSets () |
| override bool | IsAnyEffectRunning () |
| override void | OnVoiceEvent (float breathing_resistance01) |
| void | PairIDToTypes () |
| Links types to unique handler types, if needed. Vanilla stuff was already handled in the generic update, left that as it was. (naming!). | |
| void | ProcessWidgetUpdate (Widget w, int type, float timeSlice=0, Param p=null, int handle=-1) |
| override void | RegisterGameplayEffectData (int id, Param p) |
| void | RegisterLayouts (string path, array< int > types) |
| Registers new layout and ties effect IDs to it. | |
| override void | RemoveActiveEffects (array< int > effects) |
| override void | RemoveSuspendRequest (int request_id) |
| override void | StopAllEffects () |
| TranslateIDToType (int typeID) | |
| override void | Update (float timeSlice) |
| Generic update, called on frame from the player. | |
| void | UpdateBreathEffect (ImageWidget w) |
| void | UpdateFlashbangEffect (ImageWidget w) |
| void | UpdateOccluderEffect (ImageWidget w, int type, float timeSlice, Param p, int handle) |
| void | UpdateVisibility () |
| override void | UpdateWidgets (int type=-1, float timeSlice=0, Param p=null, int handle=-1) |
| Usually called in course of an OnFrame update, can be manually called from elsewhere with parameters. | |
Protected Attributes | |
| const float | BREATH_COLOR_MULT_MAX = 0.8 |
| const float | BREATH_COLOR_MULT_MIN = 0.5 |
| const float | BREATH_HDR_MAX = 1.0 |
| const float | BREATH_HDR_MIN = 0.005 |
| float | m_BreathAlphaVal |
| int | m_BreathColor |
| float | m_BreathMultStamina |
| float | m_BreathResidue |
| float | m_FlashbangCoverAlphaVal |
| ref map< int, typename > | m_IDToTypeMap |
| ref map< int, ref Widget > | m_Layouts |
| ref Widget | m_Root |
| ref set< int > | m_RunningEffects |
| ref set< int > | m_RunningEffectsPrevious |
| ref set< int > | m_SuspendRequests |
| float | m_TimeProgBreath |
| ref set< ref Widget > | m_UniqueLayouts |
| ref array< ref Widget > | m_UpdatedWidgetsCheck |
| ref array< int > | m_UpdatedWidgetSetsCheck |
| ref array< int > | m_UpdatingEffects |
| ref GameplayEffectDataMap | m_WidgetDataMap |
| const int | WIDGETSET_BREATH = 100 |
grouped gameplay effect widgets and their handling
Definition at line 6 of file gameplayeffectwidgets.c.
|
inlineprotected |
Definition at line 54 of file gameplayeffectwidgets.c.
References m_Layouts.
Definition at line 300 of file gameplayeffectwidgets.c.
References m_RunningEffects, m_RunningEffectsPrevious, and UpdateVisibility().
Referenced by StartSourceBleedingIndication().
|
inlineprotected |
Definition at line 371 of file gameplayeffectwidgets.c.
References m_SuspendRequests, and UpdateVisibility().
Definition at line 557 of file gameplayeffectwidgets.c.
References ARGBF(), BREATH_COLOR_MULT_MAX, BREATH_COLOR_MULT_MIN, BREATH_HDR_MAX, BREATH_HDR_MIN, Math::Clamp(), GetSceneHDRMul(), Math::InverseLerp(), Math::Lerp(), m_BreathAlphaVal, m_BreathColor, and m_BreathResidue.
Referenced by CalculateValues().
Definition at line 595 of file gameplayeffectwidgets.c.
References m_FlashbangCoverAlphaVal.
Referenced by CalculateValues().
Definition at line 584 of file gameplayeffectwidgets.c.
Referenced by CalculateValues().
|
inlineprotected |
Only one calculation per unique WidgetSet.
Definition at line 470 of file gameplayeffectwidgets.c.
References CalculateBreathEffect(), CalculateFlashbangEffect(), CalculateOccluderEffect(), m_UpdatedWidgetSetsCheck, and m_WidgetDataMap.
Referenced by UpdateWidgets().
|
inlineprotected |
Definition at line 387 of file gameplayeffectwidgets.c.
References m_SuspendRequests, and UpdateVisibility().
returns all vanilla effects, nested in a vanilla layout. If using different layouts for custom effects, please register and link separately
Definition at line 214 of file gameplayeffectwidgets.c.
Referenced by InitLayouts().
|
inlineprotected |
Definition at line 201 of file gameplayeffectwidgets.c.
References GameplayEffectsData::Init(), m_Layouts, and m_WidgetDataMap.
Referenced by InitWidgetSet().
|
inlineprotected |
Definition at line 32 of file gameplayeffectwidgets.c.
References g_Game, Init(), m_BreathMultStamina, m_IDToTypeMap, m_Layouts, m_Root, m_RunningEffects, m_RunningEffectsPrevious, m_SuspendRequests, m_TimeProgBreath, m_UniqueLayouts, m_UpdatedWidgetsCheck, m_UpdatedWidgetSetsCheck, m_UpdatingEffects, m_WidgetDataMap, and UpdateVisibility().
|
inlineprotected |
Definition at line 393 of file gameplayeffectwidgets.c.
References m_SuspendRequests.
Definition at line 615 of file gameplayeffectwidgets.c.
References Math::Clamp(), and m_Root.
Referenced by UpdateWidgets().
|
inlineprotected |
Definition at line 66 of file gameplayeffectwidgets.c.
References InitLayouts(), InitWidgetSets(), and PairIDToTypes().
Referenced by GameplayEffectWidgets().
|
inlineprotected |
Definition at line 79 of file gameplayeffectwidgets.c.
References CompileEffectListing(), and RegisterLayouts().
Referenced by Init().
InitWidgetSet.
| type | int ID of effect widget type |
| updating | bool Marks widgets for 'PlayerBase.EOnFrame' updating |
| user_id_override | int UserID of a widget to be used instead (allows multiple types to use single widget) InitWidgetSet(EffectWidgetsTypes.MASK_BREATH,true,BREATH);
void InitWidgetSet(int type, bool updating=false, int user_id_override=-1) InitWidgetSet. Definition gameplayeffectwidgets.c:144 |
Definition at line 144 of file gameplayeffectwidgets.c.
References CreateHandledClass(), GameplayEffectsDataImage(), m_Layouts, m_UpdatingEffects, m_WidgetDataMap, Print(), and TranslateIDToType().
Referenced by InitWidgetSets().
|
inlineprotected |
Definition at line 85 of file gameplayeffectwidgets.c.
References InitWidgetSet(), and WIDGETSET_BREATH.
Referenced by Init().
|
inlineprotected |
Definition at line 366 of file gameplayeffectwidgets.c.
References m_RunningEffects.
Referenced by StopAllEffects().
|
inlineprotected |
Definition at line 664 of file gameplayeffectwidgets.c.
References Math::Clamp(), Math::Lerp(), and m_BreathResidue.
|
inlineprotected |
Links types to unique handler types, if needed. Vanilla stuff was already handled in the generic update, left that as it was. (naming!).
Definition at line 74 of file gameplayeffectwidgets.c.
References m_IDToTypeMap.
Referenced by Init().
|
inlineprotected |
Definition at line 512 of file gameplayeffectwidgets.c.
References UpdateBreathEffect(), UpdateFlashbangEffect(), and UpdateOccluderEffect().
Referenced by UpdateWidgets().
Definition at line 126 of file gameplayeffectwidgets.c.
References m_WidgetDataMap.
Referenced by BleedingSourcesManagerBase::RegisterBleedingZoneEx().
Registers new layout and ties effect IDs to it.
Definition at line 110 of file gameplayeffectwidgets.c.
References g_Game, m_Layouts, m_Root, m_UniqueLayouts, and path.
Referenced by InitLayouts().
Definition at line 320 of file gameplayeffectwidgets.c.
References m_RunningEffects, m_RunningEffectsPrevious, and UpdateVisibility().
|
inlineprotected |
Definition at line 377 of file gameplayeffectwidgets.c.
References m_SuspendRequests, and UpdateVisibility().
|
inlineprotected |
Definition at line 346 of file gameplayeffectwidgets.c.
References GameplayEffectsData::ForceStop(), IsAnyEffectRunning(), m_Root, m_RunningEffects, m_RunningEffectsPrevious, m_WidgetDataMap, and UpdateVisibility().
|
inlineprotected |
Definition at line 121 of file gameplayeffectwidgets.c.
References m_IDToTypeMap.
Referenced by InitWidgetSet().
|
inlineprotected |
Generic update, called on frame from the player.
Definition at line 634 of file gameplayeffectwidgets.c.
References m_SuspendRequests, and UpdateWidgets().
|
inlineprotected |
Definition at line 575 of file gameplayeffectwidgets.c.
References m_BreathAlphaVal, and m_BreathColor.
Referenced by ProcessWidgetUpdate().
|
inlineprotected |
Definition at line 607 of file gameplayeffectwidgets.c.
References m_FlashbangCoverAlphaVal.
Referenced by ProcessWidgetUpdate().
|
inlineprotected |
Definition at line 588 of file gameplayeffectwidgets.c.
Referenced by ProcessWidgetUpdate().
|
inlineprotected |
Definition at line 232 of file gameplayeffectwidgets.c.
References Count, GameplayEffectsData::HasDefinedHandle(), m_Root, m_RunningEffects, m_RunningEffectsPrevious, m_SuspendRequests, m_WidgetDataMap, and GameplayEffectsData::UpdateVisibility().
Referenced by AddActiveEffects(), AddSuspendRequest(), ClearSuspendRequests(), GameplayEffectWidgets(), RemoveActiveEffects(), RemoveSuspendRequest(), and StopAllEffects().
|
inlineprotected |
Usually called in course of an OnFrame update, can be manually called from elsewhere with parameters.
Definition at line 399 of file gameplayeffectwidgets.c.
References CalculateValues(), GameplayEffectsData::DataInitialized(), HandleWidgetRoot(), GameplayEffectsData::HasDefinedHandle(), m_RunningEffects, m_UpdatedWidgetsCheck, m_UpdatedWidgetSetsCheck, m_UpdatingEffects, m_WidgetDataMap, ProcessWidgetUpdate(), and GameplayEffectsData::Update().
Referenced by StartSourceBleedingIndication(), and Update().
|
protected |
Definition at line 552 of file gameplayeffectwidgets.c.
Referenced by CalculateBreathEffect().
|
protected |
Definition at line 551 of file gameplayeffectwidgets.c.
Referenced by CalculateBreathEffect().
|
protected |
Definition at line 550 of file gameplayeffectwidgets.c.
Referenced by CalculateBreathEffect().
|
protected |
Definition at line 549 of file gameplayeffectwidgets.c.
Referenced by CalculateBreathEffect().
|
protected |
Definition at line 29 of file gameplayeffectwidgets.c.
Referenced by CalculateBreathEffect(), and UpdateBreathEffect().
|
protected |
Definition at line 28 of file gameplayeffectwidgets.c.
Referenced by CalculateBreathEffect(), and UpdateBreathEffect().
|
protected |
Definition at line 21 of file gameplayeffectwidgets.c.
Referenced by GameplayEffectWidgets().
|
protected |
Definition at line 22 of file gameplayeffectwidgets.c.
Referenced by CalculateBreathEffect(), and OnVoiceEvent().
|
protected |
Definition at line 30 of file gameplayeffectwidgets.c.
Referenced by CalculateFlashbangEffect(), and UpdateFlashbangEffect().
Definition at line 18 of file gameplayeffectwidgets.c.
Referenced by GameplayEffectWidgets(), PairIDToTypes(), and TranslateIDToType().
Definition at line 9 of file gameplayeffectwidgets.c.
Referenced by ~GameplayEffectWidgets(), CreateHandledClass(), GameplayEffectWidgets(), InitWidgetSet(), and RegisterLayouts().
|
protected |
Definition at line 8 of file gameplayeffectwidgets.c.
Referenced by GameplayEffectWidgets(), HandleWidgetRoot(), RegisterLayouts(), StopAllEffects(), and UpdateVisibility().
|
protected |
Definition at line 12 of file gameplayeffectwidgets.c.
Referenced by AddActiveEffects(), GameplayEffectWidgets(), IsAnyEffectRunning(), RemoveActiveEffects(), StopAllEffects(), UpdateVisibility(), and UpdateWidgets().
|
protected |
Definition at line 13 of file gameplayeffectwidgets.c.
Referenced by AddActiveEffects(), GameplayEffectWidgets(), RemoveActiveEffects(), StopAllEffects(), and UpdateVisibility().
|
protected |
Definition at line 17 of file gameplayeffectwidgets.c.
Referenced by AddSuspendRequest(), ClearSuspendRequests(), GameplayEffectWidgets(), GetSuspendRequestCount(), RemoveSuspendRequest(), Update(), and UpdateVisibility().
|
protected |
Definition at line 20 of file gameplayeffectwidgets.c.
Referenced by GameplayEffectWidgets().
|
protected |
Definition at line 10 of file gameplayeffectwidgets.c.
Referenced by GameplayEffectWidgets(), and RegisterLayouts().
Definition at line 15 of file gameplayeffectwidgets.c.
Referenced by GameplayEffectWidgets(), and UpdateWidgets().
Definition at line 16 of file gameplayeffectwidgets.c.
Referenced by CalculateValues(), GameplayEffectWidgets(), and UpdateWidgets().
Definition at line 14 of file gameplayeffectwidgets.c.
Referenced by GameplayEffectWidgets(), InitWidgetSet(), and UpdateWidgets().
|
protected |
Definition at line 11 of file gameplayeffectwidgets.c.
Referenced by CalculateValues(), CreateHandledClass(), GameplayEffectWidgets(), InitWidgetSet(), RegisterGameplayEffectData(), StopAllEffects(), UpdateVisibility(), and UpdateWidgets().
|
protected |
Definition at line 25 of file gameplayeffectwidgets.c.
Referenced by InitWidgetSets().