DIFF

class DigitalCodeLockUI

DigitalCodeLockUI › DigitalCodeLockUIBase › UIScriptedMenu › UIMenuPanel › Managed

Constructors 2

void ~DigitalCodeLockUI()
References m_EnteredPIN, and m_TargetLock

Constants 23

private const int MOVE_LEFT = 0
private const int MOVE_RIGHT = 1
private const int MOVE_UP = 2
private const int MOVE_DOWN = 3
private const int RESET_BUTTON_INDEX = 9
Referenced by Select()
private const int CONFIRM_BUTTON_INDEX = 11
Referenced by Select()
private const float BT_REPEAT_DELAY = 0.35

Delay from first press to begin tick repeat state

private const float BT_REPEAT_TIME = 0.09

Tick repeat frequency time

private const float BT_THRESHOLD_VALUE = 0.8

Threshold values for analog inputs

private const int MIN_LOCK_PIN_LENGTH = 4
Referenced by ConfirmCode()
private const int MAX_LOCK_PIN_LENGTH = 6
Referenced by ClearInput(), ConfirmCode(), and Select()
private const int KEY_DIGIT_1 = 0!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI()
private const int KEY_DIGIT_2 = 1!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI()
private const int KEY_DIGIT_3 = 2!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI()
private const int KEY_DIGIT_4 = 3!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI()
private const int KEY_DIGIT_5 = 4!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI()
private const int KEY_DIGIT_6 = 5!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI()
private const int KEY_DIGIT_7 = 6!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI()
private const int KEY_DIGIT_8 = 7!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI()
private const int KEY_DIGIT_9 = 8!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI()
private const int KEY_DIGIT_CLEAR = 9!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI()
private const int KEY_DIGIT_0 = 10!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI()
private const int KEY_DIGIT_CONFIRM = 11!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI()

Members 18

protected ref map<KeyCode, int> m_KeyCodeMap!PLATFORM_CONSOLE
Referenced by DigitalCodeLockUI(), and KeyPress()
private ref array<string> m_InvInputNames = {"UAUILeftInventory","UAUIRightInventory","UAUIUpInventory","UAUIDownInventory"}
private ref array<UAIDWrapper> m_InvInputWrappers
private ref array<float> m_InvInputTimes
private int m_InvInputWrappersCount
private float m_SensitivityThreshold = 0.0
private UAInput m_InvUAInput
private int m_InvInputActive = 0
private ref array<string> m_InputExcludes = {"menu_move"}
Referenced by OnHide(), and OnShow()
private ref array<ButtonWidget> m_NumButtons
private int m_SelectedButtonIndex = 0

Default to button "5" (index 4)

protected bool m_IsActive = false
Referenced by SetActive()
private string m_EnteredPIN
Referenced by ~DigitalCodeLockUI(), ClearInput(), ConfirmCode()
Show 1 more, Select()
private EntityAI m_TargetLock
Referenced by ~DigitalCodeLockUI(), ConfirmCode(), Select()
Show 2 more, SetTargetLock(), and Update()
private vector m_TargetPosition
Referenced by SetTargetLock(), and Update()
private bool m_HasPIN = false
Referenced by CodeResponse(), and SetTargetLock()
protected Widget m_ConsoleToolbar
Referenced by Init(), and OnInputDeviceChanged()
protected RichTextWidget m_ConsoleToolbarRichText
Referenced by Init(), and UpdateConsoleToolbar()

Methods 24

protected string GetLayout()
Referenced by Init()
void InitializeButtons()
Referenced by Init()
override void CodeResponse(bool response)
protected void UpdateFocus()
References array.Count(), SetFocus(), m_NumButtons
Show 1 more, m_SelectedButtonIndex
Referenced by NavigateDown(), NavigateLeft(), NavigateRight()
Show 1 more, NavigateUp()
void SetActive(bool active)
override bool OnClick(Widget w, int x, int y, int button)
override void KeyPress(int key)!PLATFORM_CONSOLE