Enumerations | |
| enum | Direction { RIGHT , LEFT , UP , DOWN } |
Functions | |
| void | Inventory (LayoutHolder parent) |
| void | InitInputWrapperData () |
| protected void | OnInputPresetChanged () |
| protected void | OnInputDeviceChanged (EInputDeviceType pInputDeviceType) |
| static Inventory | GetInstance () |
| void | Serialize () |
| void | Deserialize () |
| static int | GetPlayerAttachmentIndex (string slot_name) |
| static int | GetPlayerAttachmentIndex (int slot_id) |
| protected void | LoadPlayerAttachmentIndexes () |
| static void | MoveAttachmentUp (int slot_id) |
| static void | MoveAttachmentDown (int slot_id) |
| protected int | GetProperControllerStickAngle (int angle) |
| protected int | AngleToDirection (int angle) |
| void | TimerEnd () |
| bool | Controller (Widget w, int control, int value) |
| void | DraggingOverHandsPanel (Widget w, int x, int y, Widget receiver) |
| void | OnHandsPanelDropReceived (Widget w, int x, int y, Widget receiver) |
| void | OnLeftPanelDropReceived (Widget w, int x, int y, Widget receiver) |
| void | OnRightPanelDropReceived (Widget w, int x, int y, Widget receiver) |
| void | OnCenterPanelDropReceived (Widget w, int x, int y, Widget receiver) |
| void | DraggingOverLeftPanel (Widget w, int x, int y, Widget receiver) |
| void | DraggingOverRightPanel (Widget w, int x, int y, Widget receiver) |
| void | DraggingOverCenterPanel (Widget w, int x, int y, Widget receiver) |
| void | Update (float timeslice) |
| override void | UpdateInterval () |
| void | AddQuickbarItem (InventoryItem item, int index) |
| void | EnableMicromanagement () |
| void | DisableMicromanagement () |
| override void | SetLayoutName () |
| void | Init () |
| Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system) | |
| void | Reset () |
| void | ResetFocusedContainers () |
| override void | OnShow () |
| override void | OnHide () |
| override void | Refresh () |
| void | RefreshQuickbar () |
| Container | GetFocusedArea () |
| void | UpdateConsoleToolbar () |
| string | GetStringVariant (string pInputAction, notnull array< string > variants) |
| Picks from the strings by active input limiter variant in order: {click,hold,doubleclick}. Intended for inputs that check 'LocalPress' exclusively!! | |
| void | MoveFocusByContainer (int direction) |
| Shifts between containers vertically. | |
| void | MoveFocusByArea (int direction) |
| Shifts between vicinity-hands-player. | |
| void | InventoryMovementButtonTickHandler (float timeslice) |
| void | UpdateSpecialtyMeter () |
| enum Direction |
| void AddQuickbarItem | ( | InventoryItem | item, |
| int | index | ||
| ) |
References GetGame(), GetPlayer(), InventoryMenu(), and MENU_INVENTORY.
Referenced by UpdateInterval().
Referenced by Controller().
| void Deserialize | ( | ) |
References ItemManager::DeserializeDefaultHeaderOpenStates(), ItemManager::DeserializeDefaultOpenStates(), and ItemManager::GetInstance().
Referenced by OnShow().
| void DisableMicromanagement | ( | ) |
References GetGame(), ColorManager::GetInstance(), ItemManager::GetInstance(), ItemPreviewWidget::GetItem(), GetPlayer(), InventoryLocation::GetType(), ColorManager::GREEN_COLOR, ItemManager::HideDropzones(), InventoryLocation::IsValid(), name, ColorManager::RED_COLOR, ColorManager::SetColor(), and ItemManager::ShowSourceDropzone().
References HandsArea::DraggingOverHandsPanel(), ItemManager::GetInstance(), ItemManager::HideDropzones(), m_HandsArea, x, and y.
References m_LeftArea, x, and y.
References RightArea::DraggingOverHeader(), m_RightArea, x, and y.
| void EnableMicromanagement | ( | ) |
| Container GetFocusedArea | ( | ) |
References m_HandsArea, m_LeftArea, and m_RightArea.
Referenced by UpdateConsoleToolbar().
|
static |
References m_Instance.
References GetPlayerAttachmentIndex(), and InventorySlots::GetSlotName().
References m_PlayerAttachmentsIndexes.
Referenced by GetPlayerAttachmentIndex(), MoveAttachmentDown(), and MoveAttachmentUp().
Referenced by Controller().
Picks from the strings by active input limiter variant in order: {click,hold,doubleclick}. Intended for inputs that check 'LocalPress' exclusively!!
References ErrorEx, UAInputAPI::GetInputByName(), GetUApi(), UAInput::IsClickLimit(), UAInput::IsDoubleClickLimit(), UAInput::IsHoldBeginLimit(), UAInput::IsHoldLimit(), and UAInput::IsLimited().
| void Init | ( | ) |
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
| void InitInputWrapperData | ( | ) |
References GetUApi(), m_InvInputNames, m_InvInputTimes, m_InvInputWrappers, and m_InvInputWrappersCount.
Referenced by Inventory().
| void Inventory | ( | LayoutHolder | parent | ) |
References FindAnyWidget(), GetGame(), WidgetEventHandler::GetInstance(), CGame::GetMission(), Mission::GetOnInputDeviceChanged(), Mission::GetOnInputPresetChanged(), GetPlugin(), InputUtils::GetRichtextButtonIconFromInputAction(), CGame::GetUIManager(), InitInputWrapperData(), ScriptInvoker::Insert(), LoadPlayerAttachmentIndexes(), m_BottomConsoleToolbar, m_BottomConsoleToolbarRichText, m_ControllerRightStickTimer, m_HandsArea, m_Instance, m_LeftArea, m_NeedUpdateConsoleToolbar, m_PlayerPreview, m_Quickbar, m_QuickbarWidget, m_RightArea, m_TopConsoleToolbarEquipment, m_TopConsoleToolbarHands, m_TopConsoleToolbarVicinity, OnInputDeviceChanged(), OnInputPresetChanged(), WidgetEventHandler::RegisterOnDraggingOver(), WidgetEventHandler::RegisterOnDropReceived(), ResetFocusedContainers(), UIManager::ShowUICursor(), and UpdateConsoleToolbar().
Referenced by HandsContainer::AttachmentAdded(), ClosableContainer::AttachmentAddedEx(), HandsContainer::AttachmentRemoved(), ClosableContainer::AttachmentRemoved(), HandsPreview::CreateNewIcon(), HandsPreview::DeleteIcon(), SlotsIcon::Init(), InventoryMenu(), PlayerContainer::ItemAttached(), PlayerContainer::ItemDetached(), ZombieContainer::ItemDetached(), Container::MoveContainerDown(), Container::MoveContainerUp(), LayoutHolder::MoveGridCursor(), ClosableContainer::MoveGridCursor(), HandsContainer::OnSelectButton(), ItemManager::SetItemMicromanagmentMode(), VicinityContainer::UpdateInterval(), and Container::UpdateSelection().
| void InventoryMovementButtonTickHandler | ( | float | timeslice | ) |
References BT_REPEAT_DELAY, BT_REPEAT_TIME, BT_THRESHOLD_VALUE, UAInput::LocalPress(), UAInput::LocalValue(), m_InvInputActive, m_InvInputTimes, m_InvInputWrappers, m_InvInputWrappersCount, m_InvUAInput, and m_SensitivityThreshold.
Referenced by Update().
| protected void LoadPlayerAttachmentIndexes | ( | ) |
References CGame::ConfigGetTextArray(), ErrorEx, GetGame(), InventorySlots::GetSlotIdFromString(), m_PlayerAttachmentsIndexes, CGame::SetProfileString(), and slotName.
Referenced by Inventory().
|
static |
|
static |
| void MoveFocusByArea | ( | int | direction | ) |
Shifts between vicinity-hands-player.
References GetGame(), ItemManager::GetInstance(), GetPlayer(), ItemManager::IsMicromanagmentMode(), m_HandsArea, m_LeftArea, m_RightArea, Container::SetActive(), RightArea::UnfocusGrid(), and UpdateConsoleToolbar().
Referenced by UpdateInterval().
| void MoveFocusByContainer | ( | int | direction | ) |
Shifts between containers vertically.
References m_HandsArea, m_LeftArea, m_RightArea, HandsArea::SetSameLevelNextActive(), RightArea::SetSameLevelNextActive(), HandsArea::SetSameLevelPreviousActive(), RightArea::SetSameLevelPreviousActive(), and UpdateConsoleToolbar().
Referenced by UpdateInterval().
References m_HandsArea, HandsArea::OnHandsPanelDropReceived(), x, and y.
| override void OnHide | ( | ) |
| protected void OnInputDeviceChanged | ( | EInputDeviceType | pInputDeviceType | ) |
References GetGame(), m_BottomConsoleToolbar, m_TopConsoleToolbarEquipment, m_TopConsoleToolbarHands, m_TopConsoleToolbarVicinity, and UpdateConsoleToolbar().
Referenced by ServerBrowserTab::Construct(), UIScriptedMenu::InGameMenuXbox(), UIScriptedMenu::Init(), ScriptedWidgetEventHandler::Init(), Inventory(), ScriptedWidgetEventHandler::ItemActionsWidget(), ScriptedWidgetEventHandler::MainMenuDlcHandlerBase(), MissionBase::OnInit(), UIScriptedMenu::~ConnectionDialogue(), UIScriptedMenu::~InviteMenu(), UIScriptedMenu::~LogoutMenu(), UIScriptedMenu::~MainMenuConsole(), and UIScriptedMenu::~MapMenu().
| protected void OnInputPresetChanged | ( | ) |
References UpdateConsoleToolbar().
Referenced by UIScriptedMenu::GesturesMenu(), UIScriptedMenu::InGameMenuXbox(), UIScriptedMenu::Init(), ScriptedWidgetEventHandler::Init(), Inventory(), ScriptedWidgetEventHandler::ItemActionsWidget(), UIScriptedMenu::RadialQuickbarMenu(), UIScriptedMenu::~InviteMenu(), UIScriptedMenu::~MainMenuConsole(), and UIScriptedMenu::~MapMenu().
References m_LeftArea, x, and y.
References GetGame(), ItemPreviewWidget::GetItem(), GetPlayer(), name, and SplitItemUtils::TakeOrSplitToInventory().
| override void OnShow | ( | ) |
References ScriptCallQueue::Call(), CALL_CATEGORY_SYSTEM, Deserialize(), CGame::GetCallQueue(), GetGame(), Mission::GetHud(), CGame::GetMission(), GetPlayer(), m_HadFastTransferred, m_HadInspected, m_PlayerPreview, mission, PlayerPreview::RefreshPlayerPreview(), RefreshQuickbar(), SetFocus(), UpdateConsoleToolbar(), and UpdateInterval().
| override void Refresh | ( | ) |
References m_HandsArea, m_LeftArea, m_RightArea, HandsArea::Refresh(), RightArea::Refresh(), RefreshQuickbar(), and UpdateConsoleToolbar().
| void RefreshQuickbar | ( | ) |
References GetGame(), m_Quickbar, and m_QuickbarWidget.
| void Reset | ( | ) |
References m_HandsArea, m_LeftArea, m_RightArea, HandsArea::Refresh(), and RightArea::Refresh().
Referenced by Update().
| void ResetFocusedContainers | ( | ) |
References m_HandsArea, m_LeftArea, m_RightArea, Container::SetActive(), and RightArea::UnfocusGrid().
Referenced by Inventory(), and OnHide().
| void Serialize | ( | ) |
References GetGame(), ItemManager::GetInstance(), CGame::SaveProfile(), ItemManager::SerializeDefaultHeaderOpenStates(), and ItemManager::SerializeDefaultOpenStates().
Referenced by OnHide().
| override void SetLayoutName | ( | ) |
| void TimerEnd | ( | ) |
References m_ControllerRightStickTimer, m_ControllerRightStickTimerEnd, and Timer::Stop().
| void Update | ( | float | timeslice | ) |
| void UpdateConsoleToolbar | ( | ) |
References GetFocusedArea(), Container::GetFocusedItem(), GetGame(), ItemManager::GetInstance(), InventoryLocation::GetParent(), GetPlayer(), InventoryLocation::GetSlot(), InventoryLocation::GetType(), AttachmentsOutOfReach::IsAttachmentReachable(), ItemManager::IsMicromanagmentMode(), m_BottomConsoleToolbarRichText, m_HandsArea, m_LeftArea, m_NeedUpdateConsoleToolbar, m_RightArea, m_TopConsoleToolbarEquipment, m_TopConsoleToolbarHands, and m_TopConsoleToolbarVicinity.
Referenced by Controller(), DisableMicromanagement(), EnableMicromanagement(), Inventory(), MoveFocusByArea(), MoveFocusByContainer(), OnInputDeviceChanged(), OnInputPresetChanged(), OnShow(), Refresh(), and UpdateInterval().
| override void UpdateInterval | ( | ) |
References AddQuickbarItem(), RightArea::Combine(), DisableMicromanagement(), EnableMicromanagement(), RightArea::EquipItem(), RightArea::ExpandCollapseContainer(), ItemManager::GetDraggedItem(), Container::GetFocusedItem(), GetGame(), ItemManager::GetHoveredItem(), ItemManager::GetInstance(), CGame::GetInventoryItemSize(), GetPlayer(), GetUApi(), Mission::HideInventory(), RightArea::InspectItem(), ItemManager::IsMicromanagmentMode(), IsVisible(), m_HadFastTransferred, m_HadInspected, m_HandsArea, m_HoldingQB, m_LeftArea, m_PlayerPreview, m_QBHoveredItems, m_RightArea, mission, MoveFocusByArea(), MoveFocusByContainer(), RightArea::Select(), Container::Select(), Container::SetActive(), RightArea::SplitItem(), Container::TransferItem(), RightArea::TransferItemToVicinity(), Container::TransferItemToVicinity(), RightArea::UnfocusGrid(), UpdateConsoleToolbar(), HandsArea::UpdateInterval(), RightArea::UpdateInterval(), and PlayerPreview::UpdateInterval().
| void UpdateSpecialtyMeter | ( | ) |
| const float BT_REPEAT_DELAY = 0.35 |
Referenced by InventoryMovementButtonTickHandler().
| const float BT_REPEAT_TIME = 0.09 |
Referenced by InventoryMovementButtonTickHandler().
| const float BT_THRESHOLD_VALUE = 0.8 |
Referenced by InventoryMovementButtonTickHandler().
| protected Widget m_BottomConsoleToolbar |
Referenced by Inventory(), and OnInputDeviceChanged().
| protected RichTextWidget m_BottomConsoleToolbarRichText |
Referenced by Inventory(), and UpdateConsoleToolbar().
| protected ref ContextMenu m_ContextMenu |
| protected int m_ControllerAngle |
| protected ref Timer m_ControllerRightStickTimer |
Referenced by Controller(), Inventory(), and TimerEnd().
| protected bool m_ControllerRightStickTimerEnd = true |
Referenced by Controller(), and TimerEnd().
| protected int m_ControllerTilt |
| protected bool m_HadFastTransferred |
Referenced by OnShow(), and UpdateInterval().
| protected bool m_HadInspected |
Referenced by OnShow(), and UpdateInterval().
| protected ref HandsArea m_HandsArea |
| protected bool m_HoldingQB |
Referenced by UpdateInterval().
| UAInput m_InpInp = null |
|
static |
| int m_InvInputActive = 0 |
Referenced by InventoryMovementButtonTickHandler(), and Update().
| protected ref array<string> m_InvInputNames = {"UAUILeftInventory","UAUIRightInventory","UAUIUpInventory","UAUIDownInventory"} |
Referenced by InitInputWrapperData().
Referenced by InitInputWrapperData(), and InventoryMovementButtonTickHandler().
| protected ref array<UAIDWrapper> m_InvInputWrappers |
Referenced by InitInputWrapperData(), and InventoryMovementButtonTickHandler().
| protected int m_InvInputWrappersCount |
Referenced by InitInputWrapperData(), and InventoryMovementButtonTickHandler().
| UAInput m_InvUAInput |
Referenced by InventoryMovementButtonTickHandler().
| enum Direction m_LeftArea |
| protected bool m_NeedUpdateConsoleToolbar |
Referenced by Inventory(), and UpdateConsoleToolbar().
Referenced by GetPlayerAttachmentIndex(), LoadPlayerAttachmentIndexes(), MoveAttachmentDown(), and MoveAttachmentUp().
| protected ref PlayerPreview m_PlayerPreview |
Referenced by Inventory(), OnShow(), and UpdateInterval().
| protected InventoryItem m_QBHoveredItems |
Referenced by UpdateInterval().
| protected ref InventoryQuickbar m_Quickbar |
Referenced by Hud::InitQuickbar(), Inventory(), RefreshQuickbar(), and Hud::RefreshQuickbar().
| protected Widget m_QuickbarWidget |
Referenced by Hud::Init(), Hud::InitQuickbar(), Inventory(), RefreshQuickbar(), and Hud::RefreshQuickbar().
| protected ref RightArea m_RightArea |
| protected float m_SensitivityThreshold = 0.0 |
Referenced by InventoryMovementButtonTickHandler().
| protected Widget m_SpecializationIcon |
| protected Widget m_SpecializationPanel |
| protected Widget m_TopConsoleToolbarEquipment |
Referenced by Inventory(), OnInputDeviceChanged(), and UpdateConsoleToolbar().
| protected Widget m_TopConsoleToolbarHands |
Referenced by Inventory(), OnInputDeviceChanged(), and UpdateConsoleToolbar().
| protected Widget m_TopConsoleToolbarVicinity |
Referenced by Inventory(), OnInputDeviceChanged(), and UpdateConsoleToolbar().