|
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 | SetAttachmentSlotID (int slotID) |
|
int | GetAttachmentSlotID () |
|
int | GetIconsCount () |
|
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 () |
|
const int | ROWS_NUMBER_XBOX = 5 |
|
CargoBase | m_Cargo |
|
int | m_CargoIndex = -1 |
|
int | m_FocusedItemPosition = -1 |
|
ref array< ref CargoContainerRow > | m_Rows |
|
ref array< ref Icon > | m_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 |
|
int | m_AttachmentSlotID = -1 |
|
ref ClosableHeader | m_ClosableHeader |
|
bool | m_LockCargo |
|
◆ SlotsContainer()
7 {
10 {
13 else
14 {
17 {
19 }
20 }
21 }
22 }
const int ITEMS_IN_ROW
Definition Attachments.c:1
ref array< ref SlotsIcon > m_Icons
Definition SlotsContainer.c:3
Перекрестные ссылки FindAnyWidget(), ITEMS_IN_ROW и m_Icons.
◆ GetFocusedItem()
◆ GetFocusedSlotsIcon()
◆ GetSlotIcon()
◆ GetVisibleFocus()
76 {
78 for (
int i = 0;
i < GetColumnCount();
i++)
79 {
80 if (m_FocusedColumn ==
i)
81 {
83 }
86 {
88 }
89 }
91 }
Перекрестные ссылки m_Icons.
◆ IsDisplayable()
194 {
195 if (m_ForcedShow)
196 return true;
197 for (
int i = 0;
i < m_ColumnCount;
i++)
198 {
200 {
201 return true;
202 }
203 }
204 return false;
205 }
SlotsIcon GetSlotIcon(int index)
Definition SlotsContainer.c:207
Перекрестные ссылки GetSlotIcon() и IsVisible().
◆ IsEmpty()
189 {
190 return false;
191 }
◆ SelectItem()
176 {
179
181 {
183 return true;
184 }
185 return false;
186 }
Definition InventoryItem.c:731
Definition ItemManager.c:2
static ItemManager GetInstance()
Definition ItemManager.c:283
override EntityAI GetFocusedItem()
Definition SlotsContainer.c:226
Перекрестные ссылки GetFocusedItem(), GetFocusedSlotsIcon() и ItemManager::GetInstance().
◆ SetDefaultFocus()
25 {
26 m_FocusedColumn = 0;
27 for (
int i = 0;
i < GetColumnCount();
i++)
28 {
31 {
33 break;
34 }
35 }
36
38 }
void SetFocus(int index)
Definition SlotsContainer.c:45
Перекрестные ссылки m_Icons и SetFocus().
Используется в SetLastFocus().
◆ SetFocus()
◆ SetLastFocus()
41 {
43 }
override void SetDefaultFocus(bool while_micromanagment_mode=false)
Definition SlotsContainer.c:24
Перекрестные ссылки SetDefaultFocus().
◆ SetLayoutName()
◆ SetNextLeftActive()
117 {
119
120 int index = m_FocusedColumn - 1;
121 for (
int i = 0;
i < GetColumnCount();
i++ )
122 {
124 {
125 index = GetColumnCount() - 1;
126 }
128 if (
icon.IsVisible())
129 {
130 m_FocusedColumn =
index;
131 break;
132 }
134 }
135
137 }
override void Unfocus()
Definition SlotsContainer.c:166
Перекрестные ссылки m_Icons, Unfocus() и UpdateIcon().
◆ SetNextRightActive()
94 {
96
97 int index = m_FocusedColumn + 1;
98 for (
int i = 0;
i < GetColumnCount();
i++ )
99 {
100 if (
index >= GetColumnCount())
101 {
103 }
105 if (
icon.IsVisible())
106 {
107 m_FocusedColumn =
index;
108 break;
109 }
111 }
112
114 }
Перекрестные ссылки m_Icons, Unfocus() и UpdateIcon().
◆ SetVisibleFocus()
55 {
58
59 m_FocusedColumn = 0;
60 for (
int i = 0;
i < GetColumnCount();
i++)
61 {
64 {
67 break;
69 }
70 }
71
73 }
Перекрестные ссылки m_Icons, SetFocus() и Unfocus().
◆ Unfocus()
◆ UnfocusAll()
159 {
161 {
162 m_Icons.Get(
i ).GetSelectedPanel().Show(
false );
163 }
164 }
Перекрестные ссылки m_Icons.
◆ UpdateIcon()
◆ VerifySlotsIconVisibility()
bool VerifySlotsIconVisibility |
( |
int | idx = -1 | ) |
|
|
inlineprotected |
Returns 'true' if radial icon is VISIBLE and also OPEN (individual icon or any icon, use parameter..)
267 {
269 {
271 }
272 else
273 {
276 {
278 {
279 return true;
280 }
281 }
282 }
283 return false;
284 }
Перекрестные ссылки IsVisible() и m_Icons.
◆ m_Icons
Используется в GetFocusedSlotsIcon(), GetSlotIcon(), GetVisibleFocus(), SetDefaultFocus(), SetFocus(), SetNextLeftActive(), SetNextRightActive(), SetVisibleFocus(), SlotsContainer(), Unfocus(), UnfocusAll() и VerifySlotsIconVisibility().
◆ m_VisibleColumnCount
Объявления и описания членов класса находятся в файле: