Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс RightArea
+ Граф наследования:RightArea:

Защищенные члены

void RightArea (LayoutHolder parent)
 
PlayerContainer GetPlayerContainer ()
 
override void DraggingOverHeader (Widget w, int x, int y, Widget receiver)
 
override bool Select ()
 
override bool SelectItem ()
 
override bool Combine ()
 
override bool SplitItem ()
 
override bool EquipItem ()
 
override bool TransferItem ()
 
override bool InspectItem ()
 
override bool TransferItemToVicinity ()
 
override void UnfocusGrid ()
 
override bool CanTakeToInventory ()
 
override bool CanTakeToInventoryEx (EntityAI focusedEntity)
 
bool HasEntityContainerVisible (EntityAI entity)
 
void SwapItemsInOrder (int slot1, int slot2)
 
bool IsPlayerEquipmentActive ()
 
override void SetSameLevelNextActive ()
 
override void SetSameLevelPreviousActive ()
 
override void ExpandCollapseContainer ()
 
override void Refresh ()
 
override void SetLayoutName ()
 
override void SetParentWidget ()
 
override void OnShow ()
 
override void UpdateInterval ()
 
void MoveUpDownIcons ()
 
override ScrollWidget GetScrollWidget ()
 
override void UpdateSelectionIcons ()
 
float GetCurrentContainerTopY ()
 
float GetCurrentContainerBottomY ()
 

Защищенные данные

Widget m_ContentParent
 
ScrollWidget m_ScrollWidget
 
Widget m_UpIcon
 
Widget m_DownIcon
 
ref SizeToChild m_ContentResize
 
bool m_ShouldChangeSize = true
 
bool m_ProcessGridMovement
 

Закрытые данные

ref PlayerContainer m_PlayerContainer
 
- Закрытые данные унаследованные от Container
const int ROWS_NUMBER_XBOX = 5
 
CargoBase m_Cargo
 
int m_CargoIndex = -1
 
int m_FocusedItemPosition = -1
 
ref array< ref CargoContainerRowm_Rows
 
ref array< ref Iconm_Icons
 
ref map< EntityAI, ref Param3< ref Icon, int, int > > m_ShowedItemPositions
 
ref map< EntityAI, ref Param3< ref Icon, int, int > > m_ShowedLockPositions
 
float m_IconSize
 
float m_SpaceSize
 
bool m_IsAttachment
 
TextWidget m_FalseHeaderTextWidget
 
TextWidget m_AlternateFalseHeaderTextWidget
 
Widget m_CargoHeader
 
Widget m_CargoContainer
 
Widget m_ItemsContainer
 
ref SizeToChild m_Resizer1
 
ref SizeToChild m_Resizer2
 
ref Timer m_ResizeTimer
 
ref ClosableHeader m_ClosableHeader
 
bool m_LockCargo
 

Дополнительные унаследованные члены

- Закрытые члены унаследованные от Container
void CargoContainer (LayoutHolder parent, bool is_attachment=false)
 
void ~CargoContainer ()
 
int GetCargoIndex ()
 
void AddedToCargoEx (EntityAI item, bool refresh=true)
 
void AddedToCargo (EntityAI item)
 
void RemovedFromCargo (EntityAI item)
 
void MovedInCargo (EntityAI item)
 
void SetLock (EntityAI item)
 
void ReleaseLock (EntityAI item)
 
override void SetLayoutName ()
 
void SetEntity (EntityAI item, int cargo_index=0, bool immedUpdate=true)
 
EntityAI GetEntity ()
 
void UpdateHeaderText ()
 
void InitGridHeight ()
 
void UpdateSize ()
 
float GetIconSize ()
 
float GetSpaceSize ()
 
int GetCargoCapacity ()
 
int GetMaxCargoCapacity ()
 
Icon GetIcon (EntityAI item)
 
Icon GetIcon (int index)
 
Icon GetFocusedIcon ()
 
override float GetFocusedContainerHeight (bool contents=false)
 
override float GetFocusedContainerYPos (bool contents=false)
 
override float GetFocusedContainerYScreenPos (bool contents=false)
 
void UpdateSelection ()
 
void UpdateRowVisibility (int count)
 
override void Refresh ()
 
void RefreshImpl ()
 
override void UpdateInterval ()
 
Icon InitIconEx (Icon icon, EntityAI item, int pos_x, int pos_y, bool refresh=true)
 
Icon InitIcon (Icon icon, EntityAI item, int pos_x, int pos_y)
 
bool HasItem (EntityAI item)
 
override bool TransferItemToVicinity ()
 
override void SetDefaultFocus (bool while_micromanagment_mode=false)
 
override void SetLastFocus ()
 
override void Unfocus ()
 
override void UnfocusAll ()
 
override void SetNextActive ()
 
override void SetPreviousActive (bool force=false)
 
override void SetNextRightActive ()
 
override void SetNextLeftActive ()
 
override EntityAI GetFocusedItem ()
 
override void SetLastActive ()
 
override void SetActive (bool active)
 
override bool IsItemActive ()
 
override bool IsItemWithQuantityActive ()
 
override bool IsEmpty ()
 
int GetRecipeCount (bool recipe_anywhere, ItemBase entity1, ItemBase entity2, PlayerBase player)
 
override bool CanCombineAmmo ()
 
override bool TransferItem ()
 
override bool SplitItem ()
 
override bool EquipItem ()
 
override bool SelectItem ()
 
override bool Select ()
 
override bool Combine ()
 
void ShowFalseCargoHeader (bool show)
 
void SetAlternateFalseTextHeaderWidget (TextWidget w)
 
void ClosableContainer (LayoutHolder parent, int sort=-1)
 
override bool IsDisplayable ()
 
override void UpdateRadialIcon ()
 
void SetOpenState (bool state)
 
override Header GetHeader ()
 
override void Open ()
 
override void Close ()
 
override void SetLayoutName ()
 
override void OnShow ()
 
override LayoutHolder Get (int x)
 
override void Refresh ()
 
void CloseButtonOnMouseButtonDown ()
 
override float GetFocusedContainerHeight (bool contents=false)
 
override float GetFocusedContainerYPos (bool contents=false)
 
override float GetFocusedContainerYScreenPos (bool contents=false)
 
void MoveContainerUp (Widget cont)
 
void MoveContainerDown (Widget cont)
 
override void CheckHeaderDragability ()
 

Подробное описание

Конструктор(ы)

◆ RightArea()

void RightArea ( LayoutHolder parent)
inlineprotected
15 {
16 m_MainWidget.Show(true);
17 m_ScrollWidget = ScrollWidget.Cast( m_MainWidget.FindAnyWidget( "Scroller" ) );
18 m_MainWidget = m_MainWidget.FindAnyWidget("Content");
19 //m_ContentParent = m_RootWidget.FindAnyWidget("ContentParent");
20 m_PlayerContainer = new PlayerContainer(this, false);
21 m_PlayerContainer.SetPlayer(PlayerBase.Cast(GetGame().GetPlayer()));
22 m_Body.Insert(m_PlayerContainer);
23 m_ActiveIndex = 0;
25
26 m_UpIcon = m_RootWidget.FindAnyWidget( "Up" );
27 m_DownIcon = m_RootWidget.FindAnyWidget( "Down" );
28
29 //m_ContentParent.GetScript( m_ContentResize );
30
31 RecomputeOpenedContainers();
32 }
PlayerBase GetPlayer()
Definition ModifierBase.c:47
ref Widget m_RootWidget[MAX_SIMULTANIOUS_PLAYERS]
Definition PluginRemotePlayerDebugClient.c:14
Definition EntityAI.c:95
Definition PlayerBaseClient.c:2
Definition PlayerContainer.c:2
ref PlayerContainer m_PlayerContainer
Definition RightArea.c:3
Widget m_UpIcon
Definition RightArea.c:7
bool m_ProcessGridMovement
Definition RightArea.c:12
ScrollWidget m_ScrollWidget
Definition RightArea.c:6
Widget m_DownIcon
Definition RightArea.c:8
proto native CGame GetGame()

Перекрестные ссылки GetGame(), GetPlayer(), m_DownIcon, m_PlayerContainer, m_ProcessGridMovement, m_RootWidget, m_ScrollWidget и m_UpIcon.

Методы

◆ CanTakeToInventory()

override bool CanTakeToInventory ( )
inlineprotected
90 {
91 return false;
92 }

◆ CanTakeToInventoryEx()

override bool CanTakeToInventoryEx ( EntityAI focusedEntity)
inlineprotected
95 {
96 return false;
97 }

◆ Combine()

override bool Combine ( )
inlineprotected
55 {
56 return m_PlayerContainer.Combine();
57 }

Перекрестные ссылки m_PlayerContainer.

◆ DraggingOverHeader()

override void DraggingOverHeader ( Widget w,
int x,
int y,
Widget receiver )
inlineprotected
40 {
41 m_PlayerContainer.DraggingOverHeader(w, x, y, receiver);
42 }
Icon x
Icon y

Перекрестные ссылки m_PlayerContainer, x и y.

◆ EquipItem()

override bool EquipItem ( )
inlineprotected
65 {
66 return m_PlayerContainer.EquipItem();
67 }

Перекрестные ссылки m_PlayerContainer.

◆ ExpandCollapseContainer()

override void ExpandCollapseContainer ( )
inlineprotected
126 {
127 m_PlayerContainer.ExpandCollapseContainer();
128 }

Перекрестные ссылки m_PlayerContainer.

◆ GetCurrentContainerBottomY()

float GetCurrentContainerBottomY ( )
inlineprotected
240 {
241 float x, y;
242 GetMainWidget().Update();
243 GetMainWidget().GetScreenPos( x, y );
244
248 }
override float GetFocusedContainerYScreenPos(bool contents=false)
Definition CargoContainer.c:454
override float GetFocusedContainerHeight(bool contents=false)
Definition CargoContainer.c:434

Перекрестные ссылки Container::GetFocusedContainerHeight(), Container::GetFocusedContainerYScreenPos(), x и y.

Используется в MoveUpDownIcons().

◆ GetCurrentContainerTopY()

float GetCurrentContainerTopY ( )
inlineprotected
230 {
231 float x, y;
232 GetMainWidget().Update();
233 GetMainWidget().GetScreenPos( x, y );
235
236 return cont_screen_pos - y;
237 }

Перекрестные ссылки Container::GetFocusedContainerYScreenPos(), x и y.

Используется в MoveUpDownIcons().

◆ GetPlayerContainer()

PlayerContainer GetPlayerContainer ( )
inlineprotected
35 {
36 return m_PlayerContainer;
37 }

Перекрестные ссылки m_PlayerContainer.

◆ GetScrollWidget()

override ScrollWidget GetScrollWidget ( )
inlineprotected
217 {
218 return m_ScrollWidget;
219 }

Перекрестные ссылки m_ScrollWidget.

◆ HasEntityContainerVisible()

bool HasEntityContainerVisible ( EntityAI entity)
inlineprotected
100 {
101 return m_PlayerContainer.HasEntityContainerVisible(entity);
102 }

Перекрестные ссылки m_PlayerContainer.

◆ InspectItem()

override bool InspectItem ( )
inlineprotected
75 {
76 return m_PlayerContainer.InspectItem();
77 }

Перекрестные ссылки m_PlayerContainer.

◆ IsPlayerEquipmentActive()

bool IsPlayerEquipmentActive ( )
inlineprotected
110 {
111 return m_PlayerContainer.IsPlayerEquipmentActive();
112 }

Перекрестные ссылки m_PlayerContainer.

◆ MoveUpDownIcons()

void MoveUpDownIcons ( )
inlineprotected
178 {
179 if (m_UpIcon && m_DownIcon)
180 {
181 m_UpIcon.Show( m_IsActive );
182 m_DownIcon.Show( m_IsActive );
183 if( m_IsActive )
184 {
185 float x, y;
186 m_UpIcon.GetScreenSize( x, y );
187
189 m_UpIcon.SetPos( 0, Math.Clamp( top_y, 0, 99999 ) );
190
191 #ifndef PLATFORM_CONSOLE
192 float x2, y2;
193 m_DownIcon.GetScreenSize( x2, y2 );
195
196 float diff = bottom_y - ( top_y + y );
197 if( diff < 0 )
198 {
199 top_y += diff / 2;
200 bottom_y -= diff / 2;
201 }
202 m_DownIcon.SetPos( 0, bottom_y );
203 #endif
204 }
205 }
206 /*else
207 {
208 ErrorEx("up/down icons not present!");
209 }
210 #else
211 m_ScrollWidget.Update();
212 #endif*/
213
214 }
bool m_IsActive
Definition ModifierBase.c:20
Definition EnMath.c:7
float GetCurrentContainerTopY()
Definition RightArea.c:229
float GetCurrentContainerBottomY()
Definition RightArea.c:239
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.

Перекрестные ссылки Math::Clamp(), GetCurrentContainerBottomY(), GetCurrentContainerTopY(), m_DownIcon, m_IsActive, m_UpIcon, x и y.

Используется в UpdateSelectionIcons().

◆ OnShow()

override void OnShow ( )
inlineprotected
164 {
165 super.OnShow();
166 Refresh();
167 }
override void Refresh()
Definition RightArea.c:130

Перекрестные ссылки Refresh().

◆ Refresh()

override void Refresh ( )
inlineprotected
131 {
132 m_ScrollWidget.Update();
133 m_PlayerContainer.Refresh();
134 m_ShouldChangeSize = true;
135 }
bool m_ShouldChangeSize
Definition RightArea.c:11

Перекрестные ссылки m_PlayerContainer, m_ScrollWidget и m_ShouldChangeSize.

Используется в OnShow(), SetSameLevelNextActive() и SetSameLevelPreviousActive().

◆ Select()

override bool Select ( )
inlineprotected
45 {
46 return m_PlayerContainer.Select();
47 }

Перекрестные ссылки m_PlayerContainer.

◆ SelectItem()

override bool SelectItem ( )
inlineprotected
50 {
51 return m_PlayerContainer.SelectItem();
52 }

Перекрестные ссылки m_PlayerContainer.

◆ SetLayoutName()

override void SetLayoutName ( )
inlineprotected
138 {
139 #ifdef PLATFORM_CONSOLE
140 m_LayoutName = WidgetLayoutName.RightAreaXbox;
141 #else
142 switch (InventoryMenu.GetWidthType())
143 {
144 case ScreenWidthType.NARROW:
145 m_LayoutName = WidgetLayoutName.RightAreaNarrow;
146 break;
147 case ScreenWidthType.MEDIUM:
148 m_LayoutName = WidgetLayoutName.RightAreaMedium;
149 break;
150 case ScreenWidthType.WIDE:
151 m_LayoutName = WidgetLayoutName.RightAreaWide;
152 break;
153 }
154 #endif
155
156 }
ScreenWidthType
Definition InventoryMenu.c:2
void InventoryMenu()
Definition InventoryMenu.c:20
Definition WidgetLayoutName.c:2
const string RightAreaXbox
Definition WidgetLayoutName.c:41
const string RightAreaNarrow
Definition WidgetLayoutName.c:38
const string RightAreaMedium
Definition WidgetLayoutName.c:39
const string RightAreaWide
Definition WidgetLayoutName.c:40

Перекрестные ссылки InventoryMenu(), WidgetLayoutName::RightAreaMedium, WidgetLayoutName::RightAreaNarrow, WidgetLayoutName::RightAreaWide и WidgetLayoutName::RightAreaXbox.

◆ SetParentWidget()

override void SetParentWidget ( )
inlineprotected
159 {
160 m_ParentWidget = m_Parent.GetMainWidget().FindAnyWidget("RightPanel");
161 }
Widget m_Parent
Definition SizeToChild.c:92
Widget m_ParentWidget
Definition UiHintPanel.c:318

Перекрестные ссылки m_Parent и m_ParentWidget.

◆ SetSameLevelNextActive()

override void SetSameLevelNextActive ( )
inlineprotected
115 {
116 m_PlayerContainer.SetSameLevelNextActive();
117 Refresh();
118 }

Перекрестные ссылки m_PlayerContainer и Refresh().

◆ SetSameLevelPreviousActive()

override void SetSameLevelPreviousActive ( )
inlineprotected
120 {
121 m_PlayerContainer.SetSameLevelPreviousActive();
122 Refresh();
123 }

Перекрестные ссылки m_PlayerContainer и Refresh().

◆ SplitItem()

override bool SplitItem ( )
inlineprotected
60 {
61 return m_PlayerContainer.SplitItem();
62 }

Перекрестные ссылки m_PlayerContainer.

◆ SwapItemsInOrder()

void SwapItemsInOrder ( int slot1,
int slot2 )
inlineprotected
105 {
106 m_PlayerContainer.SwapItemsInOrder(slot1, slot2);
107 }

Перекрестные ссылки m_PlayerContainer.

◆ TransferItem()

override bool TransferItem ( )
inlineprotected
70 {
71 return m_PlayerContainer.TransferItem();
72 }

Перекрестные ссылки m_PlayerContainer.

◆ TransferItemToVicinity()

override bool TransferItemToVicinity ( )
inlineprotected
80 {
81 return m_PlayerContainer.TransferItemToVicinity();
82 }

Перекрестные ссылки m_PlayerContainer.

◆ UnfocusGrid()

override void UnfocusGrid ( )
inlineprotected
85 {
86 m_PlayerContainer.UnfocusGrid();
87 }

Перекрестные ссылки m_PlayerContainer.

◆ UpdateInterval()

override void UpdateInterval ( )
inlineprotected
170 {
171 super.UpdateInterval();
172 m_PlayerContainer.UpdateInterval();
173
174 CheckScrollbarVisibility();
175 }

Перекрестные ссылки m_PlayerContainer.

◆ UpdateSelectionIcons()

override void UpdateSelectionIcons ( )
inlineprotected
222 {
223 #ifdef PLATFORM_CONSOLE
224 ScrollToActiveContainer();
225 #endif
227 }
void MoveUpDownIcons()
Definition RightArea.c:177

Перекрестные ссылки MoveUpDownIcons().

Поля

◆ m_ContentParent

Widget m_ContentParent
protected

◆ m_ContentResize

ref SizeToChild m_ContentResize
protected

◆ m_DownIcon

Widget m_DownIcon
protected

Используется в MoveUpDownIcons() и RightArea().

◆ m_PlayerContainer

◆ m_ProcessGridMovement

bool m_ProcessGridMovement
protected

Используется в RightArea().

◆ m_ScrollWidget

ScrollWidget m_ScrollWidget
protected

Используется в GetScrollWidget(), Refresh() и RightArea().

◆ m_ShouldChangeSize

bool m_ShouldChangeSize = true
protected

Используется в Refresh().

◆ m_UpIcon

Widget m_UpIcon
protected

Используется в MoveUpDownIcons() и RightArea().


Объявления и описания членов класса находятся в файле: