|
void | OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver) |
|
void | DraggingOver (Widget w, int x, int y, Widget receiver) |
|
void | DraggingOverHeader (Widget w, int x, int y, Widget receiver) |
|
void | UpdateSpacer () |
|
Header | GetHeader () |
|
void | SetHeader (Header header) |
|
void | CheckHeaderDragability () |
|
void | Container (LayoutHolder parent) |
|
Container | GetFocusedContainer () |
|
Container | GetContainer (int index) |
|
void | SetFocusedContainer (Container cont) |
|
SlotsIcon | GetFocusedSlotsIcon () |
|
int | GetActiveIndex () |
|
void | SetActiveIndex (int index) |
|
ScrollWidget | GetScrollWidget () |
|
void | UpdateRadialIcon () |
|
void | SetSlotIcon (SlotsIcon icon) |
|
void | SetDefaultFocus (bool while_micromanagment_mode=false) |
|
void | SetLastFocus () |
|
void | Unfocus () |
|
void | MoveGridCursor (int direction) |
|
void | ScrollToActiveContainer () |
|
void | CheckScrollbarVisibility () |
|
void | Open () |
|
void | Close () |
|
bool | IsOpened () |
|
void | SetOpenForSlotIcon (bool open, SlotsIcon icon=null) |
|
void | Toggle () |
|
float | GetFocusedContainerHeight (bool contents=false) |
|
float | GetFocusedContainerYPos (bool contents=false) |
|
float | GetFocusedContainerYScreenPos (bool contents=false) |
|
int | Count () |
|
bool | SelectItem () |
|
bool | Select () |
|
bool | OnSelectButton () |
|
bool | Combine () |
|
bool | TransferItemToVicinity () |
|
bool | TransferItem () |
|
bool | InspectItem () |
|
bool | SplitItem () |
|
bool | EquipItem () |
|
bool | CanOpenCloseContainer () |
|
bool | CanOpenCloseContainerEx (EntityAI focusedEntity) |
|
bool | CanSplit () |
|
bool | CanSplitEx (EntityAI focusedEntity) |
|
bool | CanDrop () |
|
bool | CanDropEx (EntityAI focusedEntity) |
|
bool | CanSwapOrTakeToHands () |
|
bool | CanSwapOrTakeToHandsEx (EntityAI focusedEntity) |
|
bool | CanEquip () |
|
bool | CanEquipEx (EntityAI focusedEntity) |
|
bool | CanTakeToInventory () |
|
bool | CanTakeToInventoryEx (EntityAI focusedEntity) |
|
bool | CanCombine () |
|
bool | CanCombineEx (EntityAI focusedEntity) |
|
bool | CanCombineAmmo () |
|
bool | CanAddToQuickbarEx (EntityAI focusedEntity) |
|
bool | AddItemToQuickbarRadial (EntityAI itemToAssign) |
|
bool | IsEmpty () |
|
bool | IsItemActive () |
|
bool | IsItemWithQuantityActive () |
|
EntityAI | GetFocusedItem () |
|
EntityAI | GetFocusedContainerEntity () |
|
int | GetColumnCount () |
|
void | SetColumnCount (int count) |
|
int | GetFocusedColumn () |
|
void | SetFocusedColumn (int column) |
|
override void | UpdateInterval () |
|
override void | SetLastActive () |
|
override void | SetFirstActive () |
|
override void | SetActive (bool active) |
|
void | UnfocusAll () |
|
void | UnfocusGrid () |
|
bool | IsLastIndex () |
|
bool | IsFirstIndex () |
|
bool | IsFirstContainerFocused () |
|
bool | IsLastContainerFocused () |
|
void | ResetFocusedContainer () |
|
void | SetNextActive () |
|
void | SetPreviousActive (bool force=false) |
|
void | SetNextRightActive () |
|
void | SetNextLeftActive () |
|
void | SetSameLevelNextActive () |
|
void | SetSameLevelPreviousActive () |
|
void | RecomputeOpenedContainers () |
|
override void | SetLayoutName () |
|
void | Insert (LayoutHolder container, int pos=-1, bool immedUpdate=true) |
|
void | Remove (LayoutHolder container) |
|
LayoutHolder | Get (int x) |
|
override void | Refresh () |
|
void | UpdateBodySpacers () |
|
void | HideContent (bool force_hide=false) |
|
void | ShowContent (bool force_show=false) |
|
void | SetForceShow (bool value) |
|
override void | UpdateSelectionIcons () |
|
void | ExpandCollapseContainer () |
|
◆ AddItemToQuickbarRadial()
626 {
628 {
632
634 {
636
637
639 {
641 }
642 }
643 return true;
644 }
645 return false;
646 }
PlayerBase GetPlayer()
Definition ModifierBase.c:51
Definition DayZPlayerInventory.c:125
bool CanAddToQuickbarEx(EntityAI focusedEntity)
Definition Container.c:608
Definition PlayerBaseClient.c:2
proto native CGame GetGame()
Перекрестные ссылки GetGame(), GetPlayer(), MENU_INVENTORY и MENU_RADIAL_QUICKBAR.
◆ CanAddToQuickbarEx()
609 {
611 return false;
612
614 {
617 {
618 return true;
619 }
620 }
621
622 return false;
623 }
Definition ItemManager.c:2
static ItemManager GetInstance()
Definition ItemManager.c:283
Перекрестные ссылки GetGame(), ItemManager::GetInstance() и GetPlayer().
◆ CanCombine()
572 {
575 {
578
580 }
581
582 return false;
583 }
EntityAI GetFocusedItem()
Definition Container.c:667
Container GetFocusedContainer()
Definition Container.c:48
bool CanCombineEx(EntityAI focusedEntity)
Definition Container.c:585
Перекрестные ссылки Container::GetFocusedItem().
◆ CanCombineAmmo()
602 {
605 return false;
606 }
override bool CanCombineAmmo()
Definition CargoContainer.c:795
◆ CanCombineEx()
◆ CanDrop()
421 {
424 {
427
429
430 }
431
432 return false;
433 }
bool CanDropEx(EntityAI focusedEntity)
Definition Container.c:435
Перекрестные ссылки Container::GetFocusedItem().
◆ CanDropEx()
◆ CanEquip()
497 {
500 {
503
505 }
506
507 return false;
508 }
bool CanEquipEx(EntityAI focusedEntity)
Definition Container.c:510
Перекрестные ссылки Container::GetFocusedItem().
◆ CanEquipEx()
511 {
513 return false;
514
517 {
521
522 if (
found &&
il.GetParent().GetInventory().FindAttachment(
il.GetSlot()))
523 {
525 }
527 {
529 {
533 {
535 break;
536 }
537
538 }
539 }
540 }
542 }
FindInventoryLocationType
flags for searching locations in inventory
Definition InventoryLocation.c:17
InventoryLocation.
Definition InventoryLocation.c:29
Перекрестные ссылки GetGame(), ItemManager::GetInstance() и GetPlayer().
◆ CanOpenCloseContainer()
bool CanOpenCloseContainer |
( |
| ) |
|
|
inlineprotected |
◆ CanOpenCloseContainerEx()
390 {
391 return false;
392 }
◆ CanSplit()
395 {
398 {
401
403 }
404
405 return false;
406 }
bool CanSplitEx(EntityAI focusedEntity)
Definition Container.c:408
Перекрестные ссылки Container::GetFocusedItem().
◆ CanSplitEx()
◆ CanSwapOrTakeToHands()
bool CanSwapOrTakeToHands |
( |
| ) |
|
|
inlineprotected |
453 {
456 {
459
461 }
462
463 return false;
464 }
bool CanSwapOrTakeToHandsEx(EntityAI focusedEntity)
Definition Container.c:466
Перекрестные ссылки Container::GetFocusedItem().
◆ CanSwapOrTakeToHandsEx()
467 {
469 return false;
470
472 {
476 {
478
480 {
482 }
483 else
484 {
485 return true;
486 }
487 }
488 else
489 {
491 }
492 }
493 return false;
494 }
script counterpart to engine's class Inventory
Definition Inventory.c:79
static bool CanForceSwapEntitiesEx(notnull EntityAI item1, InventoryLocation item1_dst, notnull EntityAI item2, out InventoryLocation item2_dst)
Definition Inventory.c:664
static bool CanSwapEntitiesEx(notnull EntityAI item1, notnull EntityAI item2)
Definition Inventory.c:628
Перекрестные ссылки GameInventory::CanForceSwapEntitiesEx(), GameInventory::CanSwapEntitiesEx(), GetGame(), ItemManager::GetInstance() и GetPlayer().
◆ CanTakeToInventory()
bool CanTakeToInventory |
( |
| ) |
|
|
inlineprotected |
545 {
548 {
551
553 }
554
555 return false;
556 }
bool CanTakeToInventoryEx(EntityAI focusedEntity)
Definition Container.c:558
Перекрестные ссылки Container::GetFocusedItem().
◆ CanTakeToInventoryEx()
◆ CheckHeaderDragability()
void CheckHeaderDragability |
( |
| ) |
|
|
protected |
◆ CheckScrollbarVisibility()
void CheckScrollbarVisibility |
( |
| ) |
|
|
inlineprotected |
185 {
188 {
189 if (!
sw.IsScrollbarVisible())
190 {
191 sw.VScrollToPos01(0.0);
192 }
193 else if (
sw.GetVScrollPos01() > 1.0)
194 {
195 sw.VScrollToPos01(1.0);
196 }
197 }
198 }
ScrollWidget GetScrollWidget()
Definition Container.c:92
◆ Close()
207 {
210 }
override void UpdateSelectionIcons()
Definition Container.c:1360
bool m_Closed
Definition Container.c:7
◆ Combine()
331 {
334 return true;
335 }
override bool Combine()
Definition CargoContainer.c:948
◆ Container()
36 {
43
46 }
bool m_IsActive
Definition ModifierBase.c:19
ref Widget m_RootWidget[MAX_SIMULTANIOUS_PLAYERS]
Definition PluginRemotePlayerDebugClient.c:14
int m_ActiveIndex
Definition Container.c:5
ref array< ref LayoutHolder > m_Body
Definition Container.c:3
float m_PrevAlpha
Definition Container.c:9
SlotsIcon m_SlotIcon
Definition Container.c:19
ref array< LayoutHolder > m_OpenedContainers
Definition Container.c:4
bool m_ForcedHide
Definition Container.c:16
bool m_ForcedShow
Definition Container.c:17
Перекрестные ссылки m_IsActive и m_RootWidget.
◆ Count()
◆ DraggingOver()
◆ DraggingOverHeader()
◆ EquipItem()
366 {
369 return false;
370 }
override bool EquipItem()
Definition CargoContainer.c:851
◆ ExpandCollapseContainer()
void ExpandCollapseContainer |
( |
| ) |
|
|
inlineprotected |
◆ Get()
◆ GetActiveIndex()
◆ GetColumnCount()
685 {
687 }
int m_ColumnCount
Definition Container.c:13
◆ GetContainer()
58 {
60 {
62 }
64 }
Definition CargoContainer.c:3
◆ GetFocusedColumn()
695 {
697 }
int m_FocusedColumn
Definition Container.c:15
◆ GetFocusedContainer()
◆ GetFocusedContainerEntity()
◆ GetFocusedContainerHeight()
◆ GetFocusedContainerYPos()
◆ GetFocusedContainerYScreenPos()
◆ GetFocusedItem()
668 {
672
674 }
override EntityAI GetFocusedItem()
Definition CargoContainer.c:722
◆ GetFocusedSlotsIcon()
73 {
76 {
77 return c.GetFocusedSlotsIcon();
78 }
80 }
◆ GetHeader()
◆ GetScrollWidget()
◆ HideContent()
1328 {
1330 {
1332 }
1334 {
1337 }
1338 }
◆ Insert()
1255 {
1256 if ( pos > -1 && pos <
m_Body.Count() )
1257 {
1261 }
1262 else
1264
1267 }
override void Refresh()
Definition Container.c:1304
Перекрестные ссылки Container::Refresh().
◆ InspectItem()
◆ IsEmpty()
◆ IsFirstContainerFocused()
bool IsFirstContainerFocused |
( |
| ) |
|
|
inlineprotected |
◆ IsFirstIndex()
◆ IsItemActive()
654 {
657 return false;
658 }
override bool IsItemActive()
Definition CargoContainer.c:764
◆ IsItemWithQuantityActive()
bool IsItemWithQuantityActive |
( |
| ) |
|
|
inlineprotected |
661 {
664 return false;
665 }
override bool IsItemWithQuantityActive()
Definition CargoContainer.c:774
◆ IsLastContainerFocused()
bool IsLastContainerFocused |
( |
| ) |
|
|
inlineprotected |
◆ IsLastIndex()
◆ IsOpened()
◆ MoveGridCursor()
void MoveGridCursor |
( |
int | direction | ) |
|
|
inlineprotected |
◆ OnDropReceivedFromHeader()
◆ OnSelectButton()
322 {
324 {
326 }
327 return false;
328 }
◆ Open()
◆ RecomputeOpenedContainers()
void RecomputeOpenedContainers |
( |
| ) |
|
|
inlineprotected |
1202 {
1208 {
1211 {
1212 c.RecomputeOpenedContainers();
1213 if (
c.IsDisplayable() &&
c.IsVisible())
1214 {
1216 }
1217 else if (
c.IsActive())
1218 {
1221 }
1222
1223 }
1224 }
1225
1226
1228 {
1230 {
1233 {
1235 {
1238 }
1239 }
1240 }
1241
1243 {
1245 }
1246 }
1247 }
bool IsActive()
Definition ModifierBase.c:130
override void SetFirstActive()
Definition Container.c:759
Перекрестные ссылки IsActive().
◆ Refresh()
1305 {
1306 for (
int i = 0;
i <
m_Body.Count();
i++ )
1307 {
1310 }
1311 }
◆ Remove()
◆ ResetFocusedContainer()
void ResetFocusedContainer |
( |
| ) |
|
|
inlineprotected |
883 {
885 {
887 }
888
890 }
◆ ScrollToActiveContainer()
void ScrollToActiveContainer |
( |
| ) |
|
|
inlineprotected |
154 {
157 {
159
160 sw.GetScreenPos(
x,
y );
161 sw.GetScreenSize(
x,
y_s );
163 float amount;
166
168
170 {
172 sw.VScrollToPos( amount );
173 }
175 {
176 amount =
sw.GetVScrollPos() +
f_y -
y - 2;
177 sw.VScrollToPos(amount);
178 }
179
180
181 }
182 }
float GetFocusedContainerHeight(bool contents=false)
Definition Container.c:248
float GetFocusedContainerYScreenPos(bool contents=false)
Definition Container.c:280
Перекрестные ссылки Container::GetFocusedContainerHeight(), Container::GetFocusedContainerYScreenPos(), x и y.
◆ Select()
315 {
318 return false;
319 }
override bool Select()
Definition CargoContainer.c:883
◆ SelectItem()
308 {
311 return false;
312 }
override bool SelectItem()
Definition CargoContainer.c:868
◆ SetActive()
790 {
792 {
793 HideOwnedTooltip();
794 }
795
797 return;
798
801 {
803 }
804
805 if (m_MainWidget.FindAnyWidget("SelectedContainer"))
806 {
807 m_MainWidget.FindAnyWidget(
"SelectedContainer").Show(
active);
808 }
809
812 {
813
816 {
819 {
821 }
822 }
823 }
824 else
825 {
828 {
830 }
834 }
835 }
override void SetActive(bool active)
Definition CargoContainer.c:758
void SetDefaultFocus(bool while_micromanagment_mode=false)
Definition Container.c:110
void Unfocus()
Definition Container.c:125
Перекрестные ссылки Container::GetHeader(), m_IsActive, Container::SetDefaultFocus() и Container::Unfocus().
◆ SetActiveIndex()
◆ SetColumnCount()
◆ SetDefaultFocus()
◆ SetFirstActive()
◆ SetFocusedColumn()
void SetFocusedColumn |
( |
int | column | ) |
|
|
inlineprotected |
◆ SetFocusedContainer()
68 {
70 }
Container m_FocusedContainer
Definition Container.c:8
◆ SetForceShow()
◆ SetHeader()
◆ SetLastActive()
◆ SetLastFocus()
◆ SetLayoutName()
◆ SetNextActive()
893 {
894 HideOwnedTooltip();
895
898 {
900 }
901
903 {
905 }
907 {
910 {
912
914 next.SetActive(
true);
915 }
917 {
919 }
920 else
921 {
924 }
925 }
926 }
bool IsLastContainerFocused()
Definition Container.c:877
Перекрестные ссылки GetParent() и SetActive().
◆ SetNextLeftActive()
void SetNextLeftActive |
( |
| ) |
|
|
inlineprotected |
979 {
982 {
984 }
985
987 {
988 active.SetNextLeftActive();
989 }
990 }
◆ SetNextRightActive()
void SetNextRightActive |
( |
| ) |
|
|
inlineprotected |
965 {
968 {
970 }
971
973 {
974 active.SetNextRightActive();
975 }
976 }
◆ SetOpenForSlotIcon()
218 {
220 {
222 }
223
225 {
227 icon.GetRadialIconClosed().Show(!
open);
228 }
229
230
231
232
233 }
◆ SetPreviousActive()
929 {
930 HideOwnedTooltip();
933 {
935 }
936
938 {
939 active.SetPreviousActive();
940 }
941
943 {
946 {
948
950 prev.SetLastActive();
951 }
953 {
955 }
956 else
957 {
960 }
961 }
962 }
bool IsFirstContainerFocused()
Definition Container.c:872
override void SetLastActive()
Definition Container.c:715
Перекрестные ссылки GetParent(), SetActive() и Container::SetLastActive().
◆ SetSameLevelNextActive()
void SetSameLevelNextActive |
( |
| ) |
|
|
inlineprotected |
993 {
998 {
1000
1001 ContainerWithCargoAndAttachments
cwcaa;
1003 {
1004 if (
cwcaa.GetAttachmentCargos())
1005 {
1007 for (
int i = 0;
i <
cwcaa.GetAttachmentCargos().
Count();
i++)
1008 {
1010 CargoContainer
cc =
cwcaa.GetAttachmentCargos().GetElement(
i);
1011 if (
cc &&
cc.IsActive())
1012 {
1015 {
1016 cwcaa.SetActive(
false);
1017 }
1018 }
1019 }
1020 }
1021
1022 if (
cwcaa.GetAttachmentAttachmentsContainers())
1023 {
1024 for (
int j = 0;
j <
cwcaa.GetAttachmentAttachmentsContainers().
Count();
j++)
1025 {
1028 if (
aw &&
aw.IsActive())
1029 {
1030 aw.SetFirstActive();
1031 }
1032 }
1033 }
1034
1036 {
1039 {
1040 cwcaa.SetActive(
false);
1041 }
1042 }
1043 }
1044
1045 ContainerWithCargo
cwc;
1047 {
1048 icon =
cwc.GetCargo().GetIcon(0);
1050 {
1051 cwc.SetActive(
false);
1052 }
1053 }
1054 }
1055 else
1056 {
1058
1061 {
1063 }
1064
1067 }
1068
1070 {
1072 {
1075
1076 ContainerWithCargo
cwcn;
1078 {
1081 {
1083 }
1084 else
1085 {
1086 cwcn.SetFirstActive();
1087 }
1088 }
1089 else
1090 {
1091 next.SetActive(
true);
1092 }
1093 }
1094 else
1095 {
1098 }
1099 }
1100 }
Definition AttachmentsWrapper.c:2
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition ContainerWithCargo.c:2
int Count()
Definition Container.c:302
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
Перекрестные ссылки Container::CargoContainer(), Class::CastTo(), Count и SetActive().
◆ SetSameLevelPreviousActive()
void SetSameLevelPreviousActive |
( |
| ) |
|
|
inlineprotected |
1103 {
1106 ContainerWithCargoAndAttachments
cwcaa;
1107 ContainerWithCargo
cwc;
1109
1111 {
1113 }
1114
1116 {
1118 {
1119 if (
cwcaa.GetAttachmentCargos())
1120 {
1122 {
1124 CargoContainer
cc =
cwcaa.GetAttachmentCargos().GetElement(
i);
1125 if (
cc &&
cc.IsActive())
1126 {
1127 icon =
cc.GetIcon(
cc.GetIconsCount() - 1);
1129 {
1130 cc.SetActive(
false);
1131 }
1132 }
1133 }
1134 }
1135
1137 {
1138 cwcaa.SetFirstActive();
1139 }
1140 else
1141 {
1142 active.SetPreviousActive();
1143 }
1144 }
1145 else
1146 {
1148 {
1149 if (
cwc &&
cwc.GetCargo() &&
cwc.GetCargo().IsActive())
1150 {
1152 }
1153 }
1154 else
1155 {
1157
1160 {
1162 }
1163
1166 }
1167 }
1168 }
1169
1171 {
1174 {
1178 {
1179 if (
cwc &&
cwc.GetCargo() &&
cwc.GetCargo().IsActive())
1180 {
1181 prev.SetActive(
false);
1182 }
1183 else
1184 {
1185 prev.SetLastActive();
1186 }
1187 }
1188 else
1189 {
1190 prev.SetLastActive();
1191 }
1192 }
1193 else
1194 {
1197 }
1198 }
1199 }
Перекрестные ссылки Container::CargoContainer(), Class::CastTo(), Count, SetActive() и Container::SetLastActive().
◆ SetSlotIcon()
◆ ShowContent()
1341 {
1344
1346 {
1348 {
1351 }
1352 }
1353 }
◆ SplitItem()
359 {
362 return false;
363 }
override bool SplitItem()
Definition CargoContainer.c:826
◆ Toggle()
236 {
238 {
240 }
241 else
242 {
244 }
246 }
void Open()
Definition Container.c:200
void Close()
Definition Container.c:206
bool IsOpened()
Definition Container.c:212
void SetOpenForSlotIcon(bool open, SlotsIcon icon=null)
Definition Container.c:217
Перекрестные ссылки Container::Close(), IsOpened() и Container::Open().
◆ TransferItem()
345 {
348 return false;
349 }
override bool TransferItem()
Definition CargoContainer.c:809
◆ TransferItemToVicinity()
bool TransferItemToVicinity |
( |
| ) |
|
|
inlineprotected |
338 {
341 return false;
342 }
override bool TransferItemToVicinity()
Definition CargoContainer.c:580
◆ Unfocus()
◆ UnfocusAll()
838 {
840 {
842 {
844 if (
Get(
i) &&
Get(
i).GetMainWidget())
845 Get(
i ).GetMainWidget().GetUserData(
icon);
846
848 icon.GetCursorWidget().Show(
false );
849 }
850 }
851 }
override float Get()
Definition PlayerStatBase.c:137
const int ITEMS_IN_ROW
Definition Container.c:10
Перекрестные ссылки Count, Get() и ITEMS_IN_ROW.
◆ UnfocusGrid()
854 {
856 {
859 }
860 }
override void UnfocusAll()
Definition CargoContainer.c:624
◆ UpdateBodySpacers()
void UpdateBodySpacers |
( |
| ) |
|
|
inlineprotected |
1314 {
1315 for (
int i = 0;
i <
m_Body.Count();
i++ )
1316 {
1319 {
1321 }
1322 }
1323
1325 }
◆ UpdateInterval()
◆ UpdateRadialIcon()
void UpdateRadialIcon |
( |
| ) |
|
|
inlineprotected |
◆ UpdateSelectionIcons()
1361 {
1363 }
Widget m_Parent
Definition SizeToChild.c:92
Перекрестные ссылки m_Parent.
◆ UpdateSpacer()
◆ ITEMS_IN_ROW
◆ m_ActiveIndex
◆ m_Body
◆ m_Closed
◆ m_ColumnCount
◆ m_Entity
◆ m_FocusedColumn
◆ m_FocusedContainer
◆ m_ForcedHide
◆ m_ForcedShow
◆ m_LastIndex
◆ m_OpenedContainers
◆ m_PrevAlpha
◆ m_SlotIcon
◆ SORT_ATTACHMENTS_NEXT_OFFSET
const int SORT_ATTACHMENTS_NEXT_OFFSET = 2 |
|
protected |
◆ SORT_ATTACHMENTS_OWN
◆ SORT_CARGO_NEXT_OFFSET
◆ SORT_CARGO_OWN
Объявления и описания членов класса находятся в файле:
- D:/Ishodniki/scripts/5_Mission/GUI/InventoryNew/Containers/Container.c