Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AvailableActionsDisplay.c File Reference

Go to the source code of this file.

Classes

class  SCR_AvailableActionsWidget
class  SCR_AvailableActionContextTitle
class  SCR_AvailableActionContext
class  AvailableActionLayoutBehaviorBase
class  AvailableActionLayoutBehavior
 Variables that should be applied on available actions layout whenever given HUD is active. More...
class  AvailableActionMenuLayoutBehavior
class  AvailableActionEditorLayoutBehavior

Functions

class SCR_AvailableActionContext Attribute ("", UIWidgets.Object, "List of all actions to process at any given moment, these are filtered and available ones are displayed")] protected ref array< ref SCR_AvailableActionContext > m_aActions
 List of all actions to process at any given moment, these are filtered and available ones are displayed.
string ToString (bool forceText=true)
string GetActionName ()
string GetUIName ()
bool IsAvailable (notnull SCR_AvailableActionsConditionData data, float timeSlice)
bool IsDelayed ()
 returns true if action display is currently counting down twords its delayed fade in or out
void ResetTimers ()
 Reset fade in and fade out timers to their default values.
int GetAvailableActions (notnull SCR_AvailableActionsConditionData data, array< ref SCR_AvailableActionContext > inActions, out array< SCR_AvailableActionContext > outActions, float timeSlice)
bool CanBeShown (IEntity controlledEntity)
void UpdateIsEnabled ()
override event void DisplayUpdate (IEntity owner, float timeSlice)
void DisplayHint (Widget widget, float delayFade, float delayShrink)
void HintFadeOut (Widget widget, float delayFade, float delayShrink)
 Hide hint with fadeout.
void HintShrink (Widget widget, float delayShrink)
 Hide hint with fadeout.
void HintHide (Widget widget)
 Hide hint with fadeout.
void SetOffsetY (float offset=-1)
 Set available actions layout y position.
void SetAdditionalOffsetY (float offset)
void ApplyOffsets ()
override event void DisplayStartDraw (IEntity owner)
override event void DisplayStopDraw (IEntity owner)
override event void DisplayInit (IEntity owner)
void OnSettingsMenuClosed (ChimeraMenuBase menu)
void OnGamepadDeviceChanged (bool isUsingGamepad)
void OnSlotUIResize ()
void ApplyLayoutBehavior ()

Variables

bool m_bEnabled
int m_iTimeForHide
int m_iTimeToShow
ref array< ref SCR_AvailableActionConditionm_aConditions
string m_sTag
string m_sAction
string m_sName
const string MARKUP_FORMAT = "<action name=\"%1\"/>"
float m_fShowCountdown = m_iTimeToShow
float m_fHideCountdown = m_iTimeForHide
ResourceName m_sChildLayout
float m_fDefaultOffsetY
float m_fOffsetY
float m_fAdditionalOffsetY = 0
ref array< ref AvailableActionLayoutBehaviorBasem_aBehaviors
int m_iButtonSizeSmall
int m_iButtonSizeMedium
int m_iButtonSizeLarge
const int PRELOADED_WIDGETS_COUNT = 16
 Count of maximum elements that will be pre-cached.
ref array< ref SCR_AvailableActionsWidgetm_aWidgets = new array<ref SCR_AvailableActionsWidget>()
 List of available action widget containers.
Widget m_wLayoutWidget
 Layout widget in root or null if new.
int m_iLastCount
 Amount of previously shown widgets.
bool m_bIsEnabledSettings
 Game settings.
bool m_bForceUpdate
 If user changed keybing then it should force update of hints.
EInputDeviceType m_eCurrentInputDevice
ref SCR_AvailableActionsConditionData m_data
SCR_InfoDisplaySlotHandler m_slotHandler
SCR_HUDSlotUIComponent m_HUDSlotComponent
float m_fDataFetchTimer
 Timer for fetching data limitation.
int m_iMaxActionsBig = 5
 Default values for how many large / medium buttons will be displayed before they switch to a smaller one. (This gets overritten by the SlotSize calculation).
int m_iMaxActionsMedium = 7
const int HEIGHT_DIVIDER_BIG = 70
 This values are used to determine how many actions fit in the available space. (Space / devider = MaxActions).
const int HEIGHT_DIVIDER_MEDIUM = 50
const int HINT_SIZE_Y = 34
const int DEFAULT_FONT_SIZE = 20
const int MIN_FONT_SIZE = 16
class AvailableActionLayoutBehaviorBase Attribute

Function Documentation

◆ ApplyLayoutBehavior()

void ApplyLayoutBehavior ( )
protected

Definition at line 693 of file SCR_AvailableActionsDisplay.c.

◆ ApplyOffsets()

void ApplyOffsets ( )
protected

Definition at line 579 of file SCR_AvailableActionsDisplay.c.

◆ Attribute()

class SCR_AvailableActionContext Attribute ( "" ,
UIWidgets. Object,
"List of all actions to process at any given moment,
these are filtered and available ones are displayed"  )

List of all actions to process at any given moment, these are filtered and available ones are displayed.

◆ CanBeShown()

bool CanBeShown ( IEntity controlledEntity)
protected

Definition at line 380 of file SCR_AvailableActionsDisplay.c.

◆ DisplayHint()

void DisplayHint ( Widget widget,
float delayFade,
float delayShrink )
protected

Definition at line 511 of file SCR_AvailableActionsDisplay.c.

◆ DisplayInit()

override event void DisplayInit ( IEntity owner)
protected

Definition at line 634 of file SCR_AvailableActionsDisplay.c.

◆ DisplayStartDraw()

override event void DisplayStartDraw ( IEntity owner)
protected

Definition at line 589 of file SCR_AvailableActionsDisplay.c.

◆ DisplayStopDraw()

override event void DisplayStopDraw ( IEntity owner)
protected

Definition at line 626 of file SCR_AvailableActionsDisplay.c.

◆ DisplayUpdate()

override event void DisplayUpdate ( IEntity owner,
float timeSlice )
protected

Definition at line 412 of file SCR_AvailableActionsDisplay.c.

◆ GetActionName()

string Attribute::GetActionName ( )
protected

Definition at line 39 of file SCR_AvailableActionsDisplay.c.

◆ GetAvailableActions()

int GetAvailableActions ( notnull SCR_AvailableActionsConditionData data,
array< ref SCR_AvailableActionContext > inActions,
out array< SCR_AvailableActionContext > outActions,
float timeSlice )
protected

Go through the list of passed in action names of inActions and populate the outActions list with actions that are currently active (available) Returns count of available actions or -1 in case of error

Definition at line 342 of file SCR_AvailableActionsDisplay.c.

◆ GetUIName()

string Attribute::GetUIName ( )
protected

Definition at line 47 of file SCR_AvailableActionsDisplay.c.

◆ HintFadeOut()

void HintFadeOut ( Widget widget,
float delayFade,
float delayShrink )
protected

Hide hint with fadeout.

Definition at line 529 of file SCR_AvailableActionsDisplay.c.

◆ HintHide()

void HintHide ( Widget widget)
protected

Hide hint with fadeout.

Definition at line 550 of file SCR_AvailableActionsDisplay.c.

◆ HintShrink()

void HintShrink ( Widget widget,
float delayShrink )
protected

Hide hint with fadeout.

Definition at line 541 of file SCR_AvailableActionsDisplay.c.

◆ IsAvailable()

bool Attribute::IsAvailable ( notnull SCR_AvailableActionsConditionData data,
float timeSlice )
protected

Definition at line 56 of file SCR_AvailableActionsDisplay.c.

◆ IsDelayed()

bool Attribute::IsDelayed ( )
protected

returns true if action display is currently counting down twords its delayed fade in or out

Definition at line 104 of file SCR_AvailableActionsDisplay.c.

◆ OnGamepadDeviceChanged()

void OnGamepadDeviceChanged ( bool isUsingGamepad)
protected

Callback method that is triggered when player switches to or from using gamepad as his input device

Parameters
[in]isUsingGamepad

Definition at line 666 of file SCR_AvailableActionsDisplay.c.

◆ OnSettingsMenuClosed()

void OnSettingsMenuClosed ( ChimeraMenuBase menu)
protected

Callback method that is triggered when some menu is closed

Parameters
[in]menuthat was closed

Definition at line 657 of file SCR_AvailableActionsDisplay.c.

◆ OnSlotUIResize()

void OnSlotUIResize ( )
protected

Definition at line 677 of file SCR_AvailableActionsDisplay.c.

◆ ResetTimers()

void Attribute::ResetTimers ( )
protected

Reset fade in and fade out timers to their default values.

Definition at line 111 of file SCR_AvailableActionsDisplay.c.

◆ SetAdditionalOffsetY()

void SetAdditionalOffsetY ( float offset)
protected

Definition at line 571 of file SCR_AvailableActionsDisplay.c.

◆ SetOffsetY()

void SetOffsetY ( float offset = -1)
protected

Set available actions layout y position.

Definition at line 557 of file SCR_AvailableActionsDisplay.c.

◆ ToString()

string Attribute::ToString ( bool forceText = true)
protected

Definition at line 27 of file SCR_AvailableActionsDisplay.c.

◆ UpdateIsEnabled()

void UpdateIsEnabled ( )
protected

Definition at line 401 of file SCR_AvailableActionsDisplay.c.

Variable Documentation

◆ Attribute

class AvailableActionLayoutBehaviorBase Attribute
protected

Definition at line 1 of file SendGoalMessage.c.

◆ DEFAULT_FONT_SIZE

const int DEFAULT_FONT_SIZE = 20
protected

Definition at line 332 of file SCR_AvailableActionsDisplay.c.

◆ HEIGHT_DIVIDER_BIG

const int HEIGHT_DIVIDER_BIG = 70
protected

This values are used to determine how many actions fit in the available space. (Space / devider = MaxActions).

Definition at line 328 of file SCR_AvailableActionsDisplay.c.

◆ HEIGHT_DIVIDER_MEDIUM

const int HEIGHT_DIVIDER_MEDIUM = 50
protected

Definition at line 329 of file SCR_AvailableActionsDisplay.c.

◆ HINT_SIZE_Y

const int HINT_SIZE_Y = 34
protected

Definition at line 331 of file SCR_AvailableActionsDisplay.c.

◆ m_aBehaviors

ref array<ref AvailableActionLayoutBehaviorBase> m_aBehaviors
protected

Definition at line 283 of file SCR_AvailableActionsDisplay.c.

◆ m_aConditions

ref array<ref SCR_AvailableActionCondition> m_aConditions
protected

Definition at line 10 of file SCR_AvailableActionsDisplay.c.

◆ m_aWidgets

ref array<ref SCR_AvailableActionsWidget> m_aWidgets = new array<ref SCR_AvailableActionsWidget>()
protected

List of available action widget containers.

Definition at line 298 of file SCR_AvailableActionsDisplay.c.

◆ m_bEnabled

bool m_bEnabled
protected

Definition at line 1 of file SCR_AvailableActionsDisplay.c.

◆ m_bForceUpdate

bool m_bForceUpdate
protected

If user changed keybing then it should force update of hints.

Definition at line 310 of file SCR_AvailableActionsDisplay.c.

◆ m_bIsEnabledSettings

bool m_bIsEnabledSettings
protected

Game settings.

Definition at line 307 of file SCR_AvailableActionsDisplay.c.

◆ m_data

ref SCR_AvailableActionsConditionData m_data
protected

Definition at line 316 of file SCR_AvailableActionsDisplay.c.

◆ m_eCurrentInputDevice

EInputDeviceType m_eCurrentInputDevice
protected

Definition at line 313 of file SCR_AvailableActionsDisplay.c.

◆ m_fAdditionalOffsetY

float m_fAdditionalOffsetY = 0
protected

Definition at line 280 of file SCR_AvailableActionsDisplay.c.

◆ m_fDataFetchTimer

float m_fDataFetchTimer
protected

Timer for fetching data limitation.

Definition at line 321 of file SCR_AvailableActionsDisplay.c.

◆ m_fDefaultOffsetY

float m_fDefaultOffsetY
protected

Definition at line 277 of file SCR_AvailableActionsDisplay.c.

◆ m_fHideCountdown

float m_fHideCountdown = m_iTimeForHide
protected

Definition at line 24 of file SCR_AvailableActionsDisplay.c.

◆ m_fOffsetY

float m_fOffsetY
protected

Definition at line 279 of file SCR_AvailableActionsDisplay.c.

◆ m_fShowCountdown

float m_fShowCountdown = m_iTimeToShow
protected

Definition at line 23 of file SCR_AvailableActionsDisplay.c.

◆ m_HUDSlotComponent

SCR_HUDSlotUIComponent m_HUDSlotComponent
protected

Definition at line 318 of file SCR_AvailableActionsDisplay.c.

◆ m_iButtonSizeLarge

int m_iButtonSizeLarge
protected

Definition at line 292 of file SCR_AvailableActionsDisplay.c.

◆ m_iButtonSizeMedium

int m_iButtonSizeMedium
protected

Definition at line 289 of file SCR_AvailableActionsDisplay.c.

◆ m_iButtonSizeSmall

int m_iButtonSizeSmall
protected

Definition at line 286 of file SCR_AvailableActionsDisplay.c.

◆ m_iLastCount

int m_iLastCount
protected

Amount of previously shown widgets.

Definition at line 304 of file SCR_AvailableActionsDisplay.c.

◆ m_iMaxActionsBig

int m_iMaxActionsBig = 5
protected

Default values for how many large / medium buttons will be displayed before they switch to a smaller one. (This gets overritten by the SlotSize calculation).

Definition at line 324 of file SCR_AvailableActionsDisplay.c.

◆ m_iMaxActionsMedium

int m_iMaxActionsMedium = 7
protected

Definition at line 325 of file SCR_AvailableActionsDisplay.c.

◆ m_iTimeForHide

int m_iTimeForHide
protected

Definition at line 4 of file SCR_AvailableActionsDisplay.c.

◆ m_iTimeToShow

int m_iTimeToShow
protected

Definition at line 7 of file SCR_AvailableActionsDisplay.c.

◆ m_sAction

string m_sAction
protected

Definition at line 16 of file SCR_AvailableActionsDisplay.c.

◆ m_sChildLayout

ResourceName m_sChildLayout
protected

Definition at line 274 of file SCR_AvailableActionsDisplay.c.

◆ m_slotHandler

SCR_InfoDisplaySlotHandler m_slotHandler
protected

Definition at line 317 of file SCR_AvailableActionsDisplay.c.

◆ m_sName

string m_sName
protected

Definition at line 19 of file SCR_AvailableActionsDisplay.c.

◆ m_sTag

string m_sTag
protected

Definition at line 13 of file SCR_AvailableActionsDisplay.c.

◆ m_wLayoutWidget

Widget m_wLayoutWidget
protected

Layout widget in root or null if new.

Definition at line 301 of file SCR_AvailableActionsDisplay.c.

◆ MARKUP_FORMAT

const string MARKUP_FORMAT = "<action name=\"%1\"/>"
protected

Definition at line 21 of file SCR_AvailableActionsDisplay.c.

◆ MIN_FONT_SIZE

const int MIN_FONT_SIZE = 16
protected

Definition at line 333 of file SCR_AvailableActionsDisplay.c.

◆ PRELOADED_WIDGETS_COUNT

const int PRELOADED_WIDGETS_COUNT = 16
protected

Count of maximum elements that will be pre-cached.

Definition at line 295 of file SCR_AvailableActionsDisplay.c.