Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
PlayerPreview Class Reference
Inheritance diagram for PlayerPreview:
LayoutHolder

Protected Member Functions

void PlayerPreview (LayoutHolder parent)
bool MouseButtonDown (Widget w, int x, int y, int button)
bool MouseWheel (Widget w, int x, int y, int wheel)
void RefreshPlayerPreview ()
override void UpdateInterval ()
void UpdateRotation (int mouse_x, int mouse_y, bool is_dragging)
void UpdateScale ()

Protected Attributes

vector m_CharacterOrientation
ref PlayerPreviewWidget m_CharacterPanelWidget
int m_CharacterRotationX
int m_CharacterRotationY
int m_CharacterScaleDelta
bool m_IsHolding

Additional Inherited Members

Private Member Functions inherited from LayoutHolder
bool AddItemToQuickbarRadial (EntityAI itemToAssign)
bool CanAddToQuickbarEx (EntityAI focusedEntity)
bool CanCombine ()
bool CanCombineAmmo ()
bool CanCombineEx (EntityAI focusedEntity)
bool CanDrop ()
bool CanDropEx (EntityAI focusedEntity)
bool CanEquip ()
bool CanEquipEx (EntityAI focusedEntity)
bool CanOpenCloseContainer ()
bool CanOpenCloseContainerEx (EntityAI focusedEntity)
bool CanSplit ()
bool CanSplitEx (EntityAI focusedEntity)
bool CanSwapOrTakeToHands ()
bool CanSwapOrTakeToHandsEx (EntityAI focusedEntity)
bool CanTakeToInventory ()
bool CanTakeToInventoryEx (EntityAI focusedEntity)
void CheckHeaderDragability ()
void CheckScrollbarVisibility ()
void CheckScrollbarVisibility (ScrollWidget sw)
void Close ()
bool Combine ()
void Container (LayoutHolder parent)
int Count ()
void DraggingOver (Widget w, int x, int y, Widget receiver)
void DraggingOverHeader (Widget w, int x, int y, Widget receiver)
bool EquipItem ()
void ExpandCollapseContainer ()
LayoutHolder Get (int x)
int GetActiveIndex ()
int GetColumnCount ()
Container GetContainer (int index)
int GetFocusedColumn ()
Container GetFocusedContainer ()
EntityAI GetFocusedContainerEntity ()
float GetFocusedContainerHeight (bool contents=false)
float GetFocusedContainerYPos (bool contents=false)
float GetFocusedContainerYScreenPos (bool contents=false)
EntityAI GetFocusedItem ()
SlotsIcon GetFocusedSlotsIcon ()
Header GetHeader ()
ScrollWidget GetScrollWidget ()
ScrollWidget GetSlotsScrollWidget ()
void HideContent (bool force_hide=false)
void Insert (LayoutHolder container, int pos=-1, bool immedUpdate=true)
bool InspectItem ()
bool IsEmpty ()
bool IsFirstContainerFocused ()
bool IsFirstIndex ()
bool IsItemActive ()
bool IsItemWithQuantityActive ()
bool IsLastContainerFocused ()
bool IsLastIndex ()
bool IsOpened ()
void MoveGridCursor (int direction)
void OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver)
bool OnSelectButton ()
void Open ()
void RecomputeOpenedContainers ()
override void Refresh ()
void Remove (LayoutHolder container)
void ResetFocusedContainer ()
void ScrollToActiveContainer ()
void ScrollToActiveContainer (ScrollWidget sw)
bool Select ()
bool SelectItem ()
override void SetActive (bool active)
void SetActiveIndex (int index)
void SetColumnCount (int count)
void SetDefaultFocus (bool while_micromanagment_mode=false)
override void SetFirstActive ()
void SetFocusedColumn (int column)
void SetFocusedContainer (Container cont)
void SetForceShow (bool value)
void SetHeader (Header header)
override void SetLastActive ()
void SetLastFocus ()
override void SetLayoutName ()
void SetNextActive ()
void SetNextLeftActive ()
void SetNextRightActive ()
void SetOpenForSlotIcon (bool open, SlotsIcon icon=null)
void SetPreviousActive (bool force=false)
void SetSameLevelNextActive ()
void SetSameLevelPreviousActive ()
void SetSlotIcon (SlotsIcon icon)
void ShowContent (bool force_show=false)
bool SplitItem ()
void Toggle ()
bool TransferItem ()
bool TransferItemToVicinity ()
void Unfocus ()
void UnfocusAll ()
void UnfocusGrid ()
void UpdateBodySpacers ()
override void UpdateInterval ()
void UpdateRadialIcon ()
override void UpdateSelectionIcons ()
void UpdateSpacer ()
Private Attributes inherited from LayoutHolder
const int ITEMS_IN_ROW = 8
int m_ActiveIndex = 0
ref array< ref LayoutHolderm_Body
bool m_Closed
int m_ColumnCount
EntityAI m_Entity
int m_FocusedColumn = 0
Container m_FocusedContainer
bool m_ForcedHide
bool m_ForcedShow
bool m_LastIndex
ref array< LayoutHolderm_OpenedContainers
float m_PrevAlpha
SlotsIcon m_SlotIcon
const int SORT_ATTACHMENTS_NEXT_OFFSET = 2
const int SORT_ATTACHMENTS_OWN = 1
const int SORT_CARGO_NEXT_OFFSET = 3
const int SORT_CARGO_OWN = 2

Detailed Description

Definition at line 1 of file playerpreview.c.

Constructor & Destructor Documentation

◆ PlayerPreview()

Member Function Documentation

◆ MouseButtonDown()

bool MouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 69 of file playerpreview.c.

References GetMousePos(), m_CharacterRotationX, m_CharacterRotationY, m_IsHolding, x, and y.

◆ MouseWheel()

bool MouseWheel ( Widget w,
int x,
int y,
int wheel )
inlineprotected

Definition at line 76 of file playerpreview.c.

References m_CharacterScaleDelta, UpdateScale(), x, and y.

◆ RefreshPlayerPreview()

void RefreshPlayerPreview ( )
inlineprotected

Definition at line 25 of file playerpreview.c.

References m_CharacterPanelWidget.

◆ UpdateInterval()

override void UpdateInterval ( )
inlineprotected

◆ UpdateRotation()

void UpdateRotation ( int mouse_x,
int mouse_y,
bool is_dragging )
inlineprotected

Definition at line 30 of file playerpreview.c.

References m_CharacterOrientation, m_CharacterPanelWidget, and m_CharacterRotationX.

Referenced by UpdateInterval().

◆ UpdateScale()

void UpdateScale ( )
inlineprotected

Definition at line 46 of file playerpreview.c.

References m_CharacterPanelWidget, and m_CharacterScaleDelta.

Referenced by PlayerPreview(), and MouseWheel().

Field Documentation

◆ m_CharacterOrientation

vector m_CharacterOrientation
protected

Definition at line 8 of file playerpreview.c.

Referenced by UpdateRotation().

◆ m_CharacterPanelWidget

ref PlayerPreviewWidget m_CharacterPanelWidget
protected

◆ m_CharacterRotationX

int m_CharacterRotationX
protected

Definition at line 5 of file playerpreview.c.

Referenced by MouseButtonDown(), and UpdateRotation().

◆ m_CharacterRotationY

int m_CharacterRotationY
protected

Definition at line 6 of file playerpreview.c.

Referenced by MouseButtonDown().

◆ m_CharacterScaleDelta

int m_CharacterScaleDelta
protected

Definition at line 7 of file playerpreview.c.

Referenced by PlayerPreview(), MouseWheel(), and UpdateScale().

◆ m_IsHolding

bool m_IsHolding
protected

Definition at line 9 of file playerpreview.c.

Referenced by MouseButtonDown(), and UpdateInterval().


The documentation for this class was generated from the following file: