DIFF

class CodeLockVisualManager

Constructors 2

void ~CodeLockVisualManager()
References StopBlinking()

Constants 15

private const float LIGHT_VISIBLE = 0.0

Animation phase for visible light

private const float LIGHT_HIDDEN = 1.0

Animation phase for hidden light

private const string CODELOCK_ANIMATED_FRONT = "CodelockFrontTranslation"
private const string CODELOCK_ANIMATED_BACK = "CodelockBackTranslation"
private const string CODELOCK_ANIMATED_BACK_R = "CodelockBackRotation"
private const string CODELOCK_ANIMATED_R = "CodelockRotation"
const string CODELOCK_ANIMATED_ZIP = "CodelockZipHide"
const string CODELOCK_ANIMATED_RED_LIGHT = "CodelockRedLightOnHide"
const string CODELOCK_ANIMATED_GREEN_LIGHT = "CodelockGreenLightOnHide"
const string CODELOCK_ANIMATED_BUTTON_GREEN_LIGHT = "CodelockButtonGreenLightOnHide"
Referenced by SetButtonLights()
const string CODELOCK_ANIMATED_BUTTON_RED_LIGHT = "CodelockButtonRedLightOnHide"
Referenced by SetButtonLights()
const string CODELOCK_ANIMATED_BATTERY_LIGHT = "CodelockBatteryLightOnHide"
Referenced by SetBatteryLight()
private const ref array<string> BATTERY_BAR_SELECTIONS = { "CodelockBatteryBar1Hide", "CodelockBatteryBar2Hide", "CodelockBatteryBar3Hide", "CodelockBatteryBar4Hide", "CodelockBatteryBar5Hide", "CodelockBatteryBar6Hide" }

Members 13

private CodeLockLightState m_CurrentLightState
private bool m_IsBlinking
private float m_LastBatteryPercent
private bool m_LastReversedState
private float m_LastAnimationPhaseFront
private float m_LastAnimationPhaseBack
private int m_LastVisibleBars
private bool m_FullVisualUpdate
private ref Timer m_BlinkTimer
Referenced by StartBlinking(), and StopBlinking()
private float m_BlinkTime
private bool m_BlinkPhase

true = light on, false = light off

Methods 25

protected void SetMainLights(float redPhase, float greenPhase)
Referenced by SetAllLights(), and SetLightState()
protected void SetButtonLights(float greenButtonPhase, float redButtonPhase)
protected void SetBatteryLight(float phase)
protected void SetAllLights(float phase)
Referenced by SetLightState()
protected void StartBlinking(CodeLockLightState blinkState)
Referenced by SetLightState()
protected void StopBlinking()
References Timer.Stop(), m_BlinkPhase, m_BlinkTime
Show 2 more, m_BlinkTimer, and m_IsBlinking
void UpdateBlinking()
void SetButtonLightColor(bool isRed)
void SetButtonLightsOff()
protected void UpdateAnimations()
Referenced by UpdateVisuals()
protected float GetAnimationPhaseForFrontPart(EntityAI hierarchyParent, bool reversed)
protected float GetAnimationPhaseForBackPart(EntityAI hierarchyParent, bool reversed)
protected int CalculateVisibleBars(float batteryPercent)
CodeLockLightState GetCurrentLightState()
bool IsBlinking()
References m_IsBlinking