DayZ 1.24
|
Static Protected Member Functions | |
static ItemManager | GetInstance () |
static int | GetItemHealthColor (int pHealthLevel) |
static int | GetItemHealthColor (EntityAI item, string zone="") |
static int | ColorFromFloat (float fraction) |
static int | GetChosenCombinationFlag (EntityAI selectedEntity, EntityAI targetEntity, int relevantFlags, out InventoryLocation dst=null) |
static int | GetCombinationFlags (EntityAI entity1, EntityAI entity2) |
static int | GetRecipeCount (bool recipe_anywhere, EntityAI entity1, EntityAI entity2) |
Static Private Attributes | |
static ref ItemManager | m_Instance |
Definition at line 1 of file ItemManager.c.
Definition at line 44 of file ItemManager.c.
References GetGame(), m_DefautHeaderOpenStates, m_DefautOpenStates, m_Instance, m_RootWidget, m_SlotInfoShown, m_TooltipSlotWidget, and m_TooltipWidget.
Definition at line 562 of file ItemManager.c.
References SlotsIcon::GetNormalHeight(), SlotsIcon::GetNormalWidth(), GetScreenSize(), m_TooltipPosX, m_TooltipPosY, m_TooltipSlotWidget, m_TooltipSourceWidget, x, and y.
Referenced by UpdateTooltipSlotPosition().
|
inlineprotected |
Definition at line 156 of file ItemManager.c.
References m_DefautHeaderOpenStates.
Referenced by DeserializeDefaultHeaderOpenStates().
|
inlineprotected |
Definition at line 151 of file ItemManager.c.
References m_DefautOpenStates.
Referenced by DeserializeDefaultOpenStates().
Definition at line 427 of file ItemManager.c.
References Colors::COLOR_BADLY_DAMAGED, Colors::COLOR_DAMAGED, Colors::COLOR_PRISTINE, Colors::COLOR_RUINED, and Colors::COLOR_WORN.
|
inlineprotected |
Definition at line 202 of file ItemManager.c.
References ClearDefaultHeaderOpenStates(), GetGame(), and SetDefaultHeaderOpenState().
|
inlineprotected |
Definition at line 233 of file ItemManager.c.
References ClearDefaultOpenStates(), GetGame(), and SetDefaultOpenState().
Definition at line 633 of file ItemManager.c.
References GetGame(), and GetPlayer().
|
inlineprotected |
Definition at line 316 of file ItemManager.c.
References m_CenterDropzone, and m_RootWidget.
Referenced by HideDropzones(), and ShowSourceDropzone().
|
inlinestaticprotected |
Definition at line 671 of file ItemManager.c.
References InventoryCombinationFlags::ADD_AS_ATTACHMENT, InventoryCombinationFlags::ADD_AS_CARGO, GameInventory::CanForceSwapEntitiesEx(), GameInventory::CanSwapEntitiesEx(), InventoryCombinationFlags::COMBINE_QUANTITY2, InventoryCombinationFlags::FSWAP, GetGame(), GetPlayer(), InventoryCombinationFlags::NONE, InventoryCombinationFlags::PERFORM_ACTION, InventoryCombinationFlags::SET_ACTION, InventoryCombinationFlags::SWAP, and InventoryCombinationFlags::SWAP_MAGAZINE.
Referenced by Icon::Combine(), Icon::DraggingOver(), Icon::DraggingOverCombine(), Icon::DraggingOverSwap(), Icon::DropReceivedFromMain(), and Icon::Swap().
|
inlinestaticprotected |
Definition at line 740 of file ItemManager.c.
References InventoryCombinationFlags::ADD_AS_ATTACHMENT, InventoryCombinationFlags::ADD_AS_CARGO, Class::CastTo(), InventoryCombinationFlags::COMBINE_QUANTITY2, GetGame(), GetPlayer(), m_player, InventoryCombinationFlags::PERFORM_ACTION, and InventoryCombinationFlags::SET_ACTION.
Referenced by Attachments::CanCombine(), LayoutHolder::CanCombineEx(), and Icon::CombineItems().
Definition at line 257 of file ItemManager.c.
References m_DefautHeaderOpenStates.
Definition at line 249 of file ItemManager.c.
References m_DefautOpenStates.
|
inlineprotected |
Definition at line 179 of file ItemManager.c.
References GetGame(), and m_HandsDefaultOpenState.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlinestaticprotected |
Definition at line 265 of file ItemManager.c.
References m_Instance.
Referenced by LayoutHolder::CanAddToQuickbarEx(), LayoutHolder::CanCombineEx(), LayoutHolder::CanDropEx(), LayoutHolder::CanEquipEx(), LayoutHolder::CanOpenCloseContainer(), LayoutHolder::CanSplitEx(), LayoutHolder::CanSwapOrTakeToHandsEx(), LayoutHolder::CanTakeToInventoryEx(), SlotsIcon::ClearRemainSelected(), Container::Close(), ClosableContainer::Close(), VicinityContainer::CollapseButtonOnMouseButtonDown(), Attachments::Combine(), PlayerContainer::Combine(), VicinitySlotsContainer::Combine(), Icon::Combine(), Icon::CreateWhiteBackground(), Deserialize(), Icon::DestroyWhiteBackground(), DisableMicromanagement(), Icon::DraggingOver(), ClosableContainer::DraggingOver(), PlayerContainer::DraggingOver(), DraggingOverCenterPanel(), ClosableContainer::DraggingOverGrid(), HandsContainer::DraggingOverGrid(), ClosableContainer::DraggingOverGrid(), HandsArea::DraggingOverHandsPanel(), DraggingOverHandsPanel(), HandsContainer::DraggingOverHeader(), AttachmentCategoriesContainer::DraggingOverHeader(), AttachmentCategoriesRow::DraggingOverHeader(), ClosableContainer::DraggingOverHeader(), PlayerContainer::DraggingOverHeader(), VicinityContainer::DraggingOverHeader(), VicinityContainer::DraggingOverIcon(), Icon::DraggingOverSwap(), ClosableContainer::DropReceived(), HandsContainer::DropReceived(), ClosableContainer::DropReceived(), Icon::DropReceivedFromMain(), EnableMicromanagement(), ColorManager::GetItemColor(), HandsContainer::HandsContainer(), ScriptedWidgetEventHandler::HideOwnedSlotsTooltip(), ScriptedWidgetEventHandler::HideOwnedTooltip(), Icon::Icon(), SlotsIcon::Init(), Icon::InitLock(), CollapsibleContainer::LoadDefaultState(), VicinitySlotsContainer::MouseButtonDown(), Icon::MouseClick(), AttachmentCategoriesRow::MouseClick(), PlayerContainer::MouseClick(), ZombieContainer::MouseClick(), HandsContainer::MouseClick2(), ClosableContainer::MouseClick2(), MoveFocusByArea(), Icon::OnDraggingOverBackground(), ClosableHeader::OnDragHeader(), ClosableHeader::OnDropHeader(), PlayerContainer::OnDropReceivedFromGhostArea(), AttachmentCategoriesRow::OnDropReceivedFromHeader(), VicinityContainer::OnDropReceivedFromHeader(), VicinityContainer::OnDropReceivedFromIcon(), OnHide(), SlotsIcon::OnIconDrag(), SlotsIcon::OnIconDrop(), InventoryGridController::OnItemDrop(), InventoryGridController::OnItemDropReceived(), HandsContainer::OnSelectButton(), OnShow(), MissionBase::OnUpdate(), Container::Open(), ClosableContainer::Open(), ScriptedWidgetEventHandler::PrepareOwnedSlotsTooltip(), ScriptedWidgetEventHandler::PrepareOwnedTooltip(), AttachmentCategoriesRow::RefreshSlot(), Attachments::Select(), Container::Select(), HandsPreview::Select(), AttachmentCategoriesRow::Select(), PlayerContainer::Select(), VicinitySlotsContainer::Select(), ZombieContainer::Select(), Attachments::SelectItem(), Container::SelectItem(), HandsPreview::SelectItem(), SlotsContainer::SelectItem(), Serialize(), Container::SetOpenState(), Icon::SetTemperature(), SlotsIcon::SetTemperature(), Icon::ShowActionMenuCombine(), VicinitySlotsContainer::ShowItemsInContainers(), Icon::Swap(), HandsContainer::TakeAsAttachment(), ClosableContainer::TakeAsAttachment(), PlayerContainer::ToggleWidget(), UpdateConsoleToolbar(), Icon::UpdateFrameColor(), VicinityContainer::UpdateHeader(), Attachments::UpdateInterval(), HandsPreview::UpdateInterval(), ClosableContainer::UpdateInterval(), UpdateInterval(), IconsContainer::UpdateItemsTemperature(), Icon::~Icon(), and SlotsIcon::~SlotsIcon().
|
inlinestaticprotected |
Definition at line 403 of file ItemManager.c.
References Colors::COLOR_BADLY_DAMAGED, Colors::COLOR_DAMAGED, Colors::COLOR_PRISTINE, Colors::COLOR_RUINED, Colors::COLOR_WORN, GameConstants::STATE_BADLY_DAMAGED, GameConstants::STATE_DAMAGED, GameConstants::STATE_PRISTINE, GameConstants::STATE_RUINED, and GameConstants::STATE_WORN.
Definition at line 382 of file ItemManager.c.
References Colors::COLOR_BADLY_DAMAGED, Colors::COLOR_DAMAGED, Colors::COLOR_PRISTINE, Colors::COLOR_RUINED, Colors::COLOR_WORN, GameConstants::STATE_BADLY_DAMAGED, GameConstants::STATE_DAMAGED, GameConstants::STATE_PRISTINE, GameConstants::STATE_RUINED, and GameConstants::STATE_WORN.
Referenced by Hud::RefreshVehicleHud(), and ActionTargetsCursor::SetItemHealth().
|
inlineprotected |
Definition at line 301 of file ItemManager.c.
References m_LeftDropzone, and m_RootWidget.
Referenced by HideDropzones(), and ShowSourceDropzone().
|
inlinestaticprotected |
Definition at line 783 of file ItemManager.c.
References GetGame(), GetPlayer(), and GetPlugin().
|
inlineprotected |
Definition at line 309 of file ItemManager.c.
References m_RightDropzone, and m_RootWidget.
Referenced by HideDropzones(), and ShowSourceDropzone().
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Definition at line 270 of file ItemManager.c.
References GetCenterDropzone(), GetLeftDropzone(), and GetRightDropzone().
Referenced by ShowSourceDropzone().
|
inlineprotected |
Definition at line 363 of file ItemManager.c.
References HideTooltipSlot(), m_HoveredItem, m_ToolTipTimer, and m_TooltipWidget.
Referenced by PrepareSlotsTooltip(), and PrepareTooltip().
|
inlineprotected |
Definition at line 372 of file ItemManager.c.
References m_SlotInfoShown, m_TooltipSlotTimer, and m_TooltipSlotWidget.
Referenced by HideTooltip().
|
inlineprotected |
Definition at line 358 of file ItemManager.c.
References m_IsDragging.
Referenced by PrepareTooltip().
|
inlineprotected |
|
inlineprotected |
position is currentlycalculated from the owning 'm_TooltipSourceWidget' directly
Definition at line 547 of file ItemManager.c.
References HideTooltip(), m_SlotInfoShown, m_TooltipSlotTimer, m_TooltipSlotWidget, name, and TOOLTIP_DELAY.
Definition at line 492 of file ItemManager.c.
References GetGame(), GetInput(), GetMousePos(), GetScreenSize(), HideTooltip(), IsDragging(), m_HoveredItem, m_ItemPreviewWidget, m_RootWidget, m_ToolTipTimer, m_TooltipWidget, ItemPreviewWidget::SetItem(), ItemPreviewWidget::SetView(), TOOLTIP_DELAY, x, and y.
|
inlineprotected |
Definition at line 187 of file ItemManager.c.
References GetGame(), and m_DefautHeaderOpenStates.
|
inlineprotected |
Definition at line 218 of file ItemManager.c.
References GetGame(), and m_DefautOpenStates.
Definition at line 166 of file ItemManager.c.
References m_DefautHeaderOpenStates.
Referenced by DeserializeDefaultHeaderOpenStates().
Definition at line 161 of file ItemManager.c.
References m_DefautOpenStates.
Referenced by DeserializeDefaultOpenStates().
Definition at line 171 of file ItemManager.c.
References GetGame(), and m_HandsDefaultOpenState.
Definition at line 338 of file ItemManager.c.
References m_DraggedIcon.
Referenced by SetIsDragging().
Definition at line 328 of file ItemManager.c.
References m_DraggedItem.
Referenced by SetIsDragging().
|
inlineprotected |
Definition at line 79 of file ItemManager.c.
References m_HandsPreview.
Definition at line 472 of file ItemManager.c.
References ColorManager::BASE_COLOR, and ColorManager::GetInstance().
Definition at line 348 of file ItemManager.c.
References m_IsDragging, SetDraggedIcon(), and SetDraggedItem().
Definition at line 63 of file ItemManager.c.
References Inventory(), and m_ItemMicromanagmentMode.
|
inlineprotected |
Definition at line 104 of file ItemManager.c.
References m_SelectedContainer, m_SelectedIcon, m_SelectedItem, and m_SelectedWidget.
|
inlineprotected |
Definition at line 112 of file ItemManager.c.
References m_SelectedBaseIcon, m_SelectedContainer, m_SelectedItem, and m_SelectedWidget.
Definition at line 443 of file ItemManager.c.
References ColorManager::GetInstance(), and name.
Definition at line 628 of file ItemManager.c.
References m_TooltipSourceWidget.
Definition at line 647 of file ItemManager.c.
Definition at line 277 of file ItemManager.c.
References GetCenterDropzone(), GetGame(), GetLeftDropzone(), GetPlayer(), GetRightDropzone(), HideDropzones(), and ShowSourceDropzone().
Referenced by ShowSourceDropzone().
|
inlineprotected |
Definition at line 658 of file ItemManager.c.
References m_ItemPreviewWidget, and m_TooltipWidget.
|
inlineprotected |
Definition at line 664 of file ItemManager.c.
References m_TooltipPosX, m_TooltipPosY, m_TooltipSlotWidget, and UpdateTooltipSlotPosition().
|
inlineprotected |
Definition at line 621 of file ItemManager.c.
References CalculateTooltipSlotPosition(), m_TooltipSourceWidget, x, and y.
Referenced by ShowTooltipSlot().
|
protected |
Definition at line 31 of file ItemManager.c.
Referenced by GetCenterDropzone().
Definition at line 15 of file ItemManager.c.
Referenced by ClearDefaultHeaderOpenStates(), GetDefaultHeaderOpenState(), ItemManager(), SerializeDefaultHeaderOpenStates(), and SetDefaultHeaderOpenState().
Definition at line 14 of file ItemManager.c.
Referenced by ClearDefaultOpenStates(), GetDefaultOpenState(), ItemManager(), SerializeDefaultOpenStates(), and SetDefaultOpenState().
|
protected |
Definition at line 8 of file ItemManager.c.
Referenced by GetDraggedIcon(), and SetDraggedIcon().
|
protected |
Definition at line 7 of file ItemManager.c.
Referenced by GetDraggedItem(), and SetDraggedItem().
|
protected |
Definition at line 16 of file ItemManager.c.
Referenced by GetDefaultOpenStateHands(), and SetDefaultOpenStateHands().
|
protected |
Definition at line 26 of file ItemManager.c.
Referenced by GetHandsPreview(), and SetHandsPreview().
|
protected |
Definition at line 5 of file ItemManager.c.
Referenced by GetHoveredItem(), HideTooltip(), and PrepareTooltip().
|
staticprivate |
Definition at line 3 of file ItemManager.c.
Referenced by GetInstance(), and ItemManager().
|
protected |
Definition at line 4 of file ItemManager.c.
Referenced by IsDragging(), and SetIsDragging().
|
protected |
Definition at line 28 of file ItemManager.c.
Referenced by IsMicromanagmentMode(), and SetItemMicromanagmentMode().
|
protected |
Definition at line 12 of file ItemManager.c.
Referenced by PrepareTooltip(), and ShowTooltip().
|
protected |
Definition at line 30 of file ItemManager.c.
Referenced by GetLeftDropzone().
|
protected |
Definition at line 32 of file ItemManager.c.
Referenced by GetRightDropzone().
|
protected |
Definition at line 13 of file ItemManager.c.
Referenced by GetCenterDropzone(), GetLeftDropzone(), GetRightDropzone(), ItemManager(), and PrepareTooltip().
|
protected |
Definition at line 24 of file ItemManager.c.
Referenced by SetSelectedItemEx().
|
protected |
Definition at line 21 of file ItemManager.c.
Referenced by GetSelectedContainer(), SetSelectedItem(), and SetSelectedItemEx().
|
protected |
Definition at line 23 of file ItemManager.c.
Referenced by GetSelectedIcon(), and SetSelectedItem().
|
protected |
Definition at line 20 of file ItemManager.c.
Referenced by GetSelectedItem(), SetSelectedItem(), and SetSelectedItemEx().
|
protected |
Definition at line 22 of file ItemManager.c.
Referenced by GetSelectedWidget(), SetSelectedItem(), and SetSelectedItemEx().
|
protected |
Definition at line 6 of file ItemManager.c.
Referenced by HideTooltipSlot(), ItemManager(), and PrepareSlotsTooltip().
Definition at line 11 of file ItemManager.c.
|
protected |
Definition at line 34 of file ItemManager.c.
Referenced by CalculateTooltipSlotPosition(), and ShowTooltipSlot().
|
protected |
Definition at line 35 of file ItemManager.c.
Referenced by CalculateTooltipSlotPosition(), and ShowTooltipSlot().
Definition at line 18 of file ItemManager.c.
Referenced by HideTooltipSlot(), and PrepareSlotsTooltip().
Definition at line 10 of file ItemManager.c.
Referenced by CalculateTooltipSlotPosition(), HideTooltipSlot(), ItemManager(), PrepareSlotsTooltip(), and ShowTooltipSlot().
|
protected |
Definition at line 36 of file ItemManager.c.
Referenced by CalculateTooltipSlotPosition(), SetTooltipWidget(), and UpdateTooltipSlotPosition().
Definition at line 17 of file ItemManager.c.
Referenced by HideTooltip(), and PrepareTooltip().
Definition at line 9 of file ItemManager.c.
Referenced by HideTooltip(), ItemManager(), PrepareTooltip(), and ShowTooltip().
Definition at line 39 of file ItemManager.c.
Referenced by PrepareSlotsTooltip(), and PrepareTooltip().