5 protected string m_sName;
7 [
Attribute( defvalue:
"", uiwidget: UIWidgets.Object,
desc:
"Area type" )]
13 [
Attribute( defvalue:
"1", uiwidget: UIWidgets.EditBox,
desc:
"Row in inventory list" )]
25 protected ref array<ref SCR_LoadoutArea> m_aLoadoutAreas;
28 int GetLoadoutAreaCount()
30 return m_aLoadoutAreas.Count();
39 if ( pAreaEntry.m_LoadoutArea && pAreaEntry.m_LoadoutArea.IsInherited(pArea.Type()) )
47 if ( pAreaEntry.m_eCommonType == pItemType )
55 return ResourceName.Empty;
58 if ( pAreaEntry.m_LoadoutArea && pAreaEntry.m_LoadoutArea.IsInherited(pArea.Type()) )
59 return pAreaEntry.m_sIcon;
60 return ResourceName.Empty;
63 ResourceName GetIconByRow(
int iIndex )
65 if ( iIndex > m_aLoadoutAreas.Count() -1 )
66 return ResourceName.Empty;
67 return m_aLoadoutAreas[ iIndex ].m_sIcon;
72 if (!m_aLoadoutAreas.IsIndexValid(iIndex))
74 return m_aLoadoutAreas[iIndex].m_LoadoutArea;
79 m_aLoadoutAreas =
null;