|
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()
622 {
624 {
628
630 {
632
633
635 {
637 }
638 }
639 return true;
640 }
641 return false;
642 }
PlayerBase GetPlayer()
Definition ModifierBase.c:47
Definition DayZPlayerInventory.c:112
bool CanAddToQuickbarEx(EntityAI focusedEntity)
Definition Container.c:604
Definition PlayerBaseClient.c:2
proto native CGame GetGame()
Перекрестные ссылки GetGame(), GetPlayer(), MENU_INVENTORY и MENU_RADIAL_QUICKBAR.
◆ CanAddToQuickbarEx()
605 {
607 return false;
608
610 {
613 {
614 return true;
615 }
616 }
617
618 return false;
619 }
Definition ItemManager.c:2
static ItemManager GetInstance()
Definition ItemManager.c:283
Перекрестные ссылки GetGame(), ItemManager::GetInstance() и GetPlayer().
◆ CanCombine()
568 {
571 {
574
576 }
577
578 return false;
579 }
EntityAI GetFocusedItem()
Definition Container.c:663
Container GetFocusedContainer()
Definition Container.c:48
bool CanCombineEx(EntityAI focusedEntity)
Definition Container.c:581
Перекрестные ссылки Container::GetFocusedItem().
◆ CanCombineAmmo()
598 {
601 return false;
602 }
override bool CanCombineAmmo()
Definition CargoContainer.c:779
◆ 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
523 {
525 {
529 {
531 break;
532 }
533
534 }
535 }
536 }
538 }
FindInventoryLocationType
flags for searching locations in inventory
Definition InventoryLocation.c:16
InventoryLocation.
Definition InventoryLocation.c:28
Перекрестные ссылки 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:665
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 |
541 {
544 {
547
549 }
550
551 return false;
552 }
bool CanTakeToInventoryEx(EntityAI focusedEntity)
Definition Container.c:554
Перекрестные ссылки 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:1179
bool m_Closed
Definition Container.c:7
◆ Combine()
331 {
334 return true;
335 }
override bool Combine()
Definition CargoContainer.c:932
◆ Container()
36 {
43
46 }
bool m_IsActive
Definition ModifierBase.c:20
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:835
◆ ExpandCollapseContainer()
void ExpandCollapseContainer |
( |
| ) |
|
|
inlineprotected |
◆ Get()
◆ GetActiveIndex()
◆ GetColumnCount()
681 {
683 }
int m_ColumnCount
Definition Container.c:13
◆ GetContainer()
58 {
60 {
62 }
64 }
Definition CargoContainer.c:3
◆ GetFocusedColumn()
691 {
693 }
int m_FocusedColumn
Definition Container.c:15
◆ GetFocusedContainer()
◆ GetFocusedContainerEntity()
◆ GetFocusedContainerHeight()
◆ GetFocusedContainerYPos()
◆ GetFocusedContainerYScreenPos()
◆ GetFocusedItem()
664 {
668
670 }
override EntityAI GetFocusedItem()
Definition CargoContainer.c:720
◆ GetFocusedSlotsIcon()
73 {
76 {
77 return c.GetFocusedSlotsIcon();
78 }
80 }
◆ GetHeader()
◆ GetScrollWidget()
◆ HideContent()
1147 {
1149 {
1151 }
1153 {
1156 }
1157 }
◆ Insert()
1074 {
1075 if ( pos > -1 && pos <
m_Body.Count() )
1076 {
1080 }
1081 else
1083
1086 }
override void Refresh()
Definition Container.c:1123
Перекрестные ссылки Container::Refresh().
◆ InspectItem()
◆ IsEmpty()
◆ IsFirstContainerFocused()
bool IsFirstContainerFocused |
( |
| ) |
|
|
inlineprotected |
◆ IsFirstIndex()
◆ IsItemActive()
650 {
653 return false;
654 }
override bool IsItemActive()
Definition CargoContainer.c:748
◆ IsItemWithQuantityActive()
bool IsItemWithQuantityActive |
( |
| ) |
|
|
inlineprotected |
657 {
660 return false;
661 }
override bool IsItemWithQuantityActive()
Definition CargoContainer.c:758
◆ 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 |
1021 {
1027 {
1030 {
1031 c.RecomputeOpenedContainers();
1032 if (
c.IsDisplayable() &&
c.IsVisible())
1033 {
1035 }
1036 else if (
c.IsActive())
1037 {
1040 }
1041
1042 }
1043 }
1044
1045
1047 {
1049 {
1052 {
1054 {
1057 }
1058 }
1059 }
1060
1062 {
1064 }
1065 }
1066 }
bool IsActive()
Definition ModifierBase.c:130
override void SetFirstActive()
Definition Container.c:755
Перекрестные ссылки IsActive().
◆ Refresh()
1124 {
1125 for (
int i = 0;
i <
m_Body.Count();
i++ )
1126 {
1129 }
1130 }
◆ Remove()
◆ ResetFocusedContainer()
void ResetFocusedContainer |
( |
| ) |
|
|
inlineprotected |
879 {
881 {
883 }
884
886 }
◆ 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:867
◆ SelectItem()
308 {
311 return false;
312 }
override bool SelectItem()
Definition CargoContainer.c:852
◆ SetActive()
786 {
788 {
789 HideOwnedTooltip();
790 }
791
793 return;
794
797 {
799 }
800
801 if (m_MainWidget.FindAnyWidget("SelectedContainer"))
802 {
803 m_MainWidget.FindAnyWidget(
"SelectedContainer").Show(
active);
804 }
805
808 {
809
812 {
815 {
817 }
818 }
819 }
820 else
821 {
824 {
826 }
830 }
831 }
override void SetActive(bool active)
Definition CargoContainer.c:742
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()
889 {
890 HideOwnedTooltip();
891
894 {
896 }
897
899 {
901 }
903 {
906 {
908
910 next.SetActive(
true);
911 }
913 {
915 }
916 else
917 {
920 }
921 }
922 }
bool IsLastContainerFocused()
Definition Container.c:873
Перекрестные ссылки GetParent() и SetActive().
◆ SetNextLeftActive()
void SetNextLeftActive |
( |
| ) |
|
|
inlineprotected |
975 {
978 {
980 }
981
983 {
984 active.SetNextLeftActive();
985 }
986 }
◆ SetNextRightActive()
void SetNextRightActive |
( |
| ) |
|
|
inlineprotected |
961 {
964 {
966 }
967
969 {
970 active.SetNextRightActive();
971 }
972 }
◆ SetOpenForSlotIcon()
218 {
220 {
222 }
223
225 {
227 icon.GetRadialIconClosed().Show(!
open);
228 }
229
230
231
232
233 }
◆ SetPreviousActive()
925 {
926 HideOwnedTooltip();
929 {
931 }
932
934 {
935 active.SetPreviousActive();
936 }
937
939 {
942 {
944
946 prev.SetLastActive();
947 }
949 {
951 }
952 else
953 {
956 }
957 }
958 }
bool IsFirstContainerFocused()
Definition Container.c:868
override void SetLastActive()
Definition Container.c:711
Перекрестные ссылки GetParent(), SetActive() и Container::SetLastActive().
◆ SetSameLevelNextActive()
void SetSameLevelNextActive |
( |
| ) |
|
|
inlineprotected |
989 {
993
996 {
998 }
999
1002 }
◆ SetSameLevelPreviousActive()
void SetSameLevelPreviousActive |
( |
| ) |
|
|
inlineprotected |
1005 {
1009
1012 {
1014 }
1015
1018 }
◆ SetSlotIcon()
◆ ShowContent()
1160 {
1163
1165 {
1167 {
1170 }
1171 }
1172 }
◆ SplitItem()
359 {
362 return false;
363 }
override bool SplitItem()
Definition CargoContainer.c:810
◆ 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:793
◆ TransferItemToVicinity()
bool TransferItemToVicinity |
( |
| ) |
|
|
inlineprotected |
338 {
341 return false;
342 }
override bool TransferItemToVicinity()
Definition CargoContainer.c:578
◆ Unfocus()
◆ UnfocusAll()
834 {
836 {
838 {
840 if (
Get(
i) &&
Get(
i).GetMainWidget())
841 Get(
i ).GetMainWidget().GetUserData(
icon);
842
844 icon.GetCursorWidget().Show(
false );
845 }
846 }
847 }
array< ref PlayerStatBase > Get()
Definition PlayerStatsPCO.c:103
int Count()
Definition Container.c:302
const int ITEMS_IN_ROW
Definition Container.c:10
Перекрестные ссылки Count, Get() и ITEMS_IN_ROW.
◆ UnfocusGrid()
850 {
852 {
855 }
856 }
override void UnfocusAll()
Definition CargoContainer.c:622
◆ UpdateBodySpacers()
void UpdateBodySpacers |
( |
| ) |
|
|
inlineprotected |
1133 {
1134 for (
int i = 0;
i <
m_Body.Count();
i++ )
1135 {
1138 {
1140 }
1141 }
1142
1144 }
◆ UpdateInterval()
◆ UpdateRadialIcon()
void UpdateRadialIcon |
( |
| ) |
|
|
inlineprotected |
◆ UpdateSelectionIcons()
1180 {
1182 }
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