Arma Reforger Script API
|
Slot for icons representing editable entity. More...
Public Member Functions | |
bool | IsEmpty () |
Check if the slot is empty, i.e., doesn't contain icons for any rule. | |
SCR_EditableEntityComponent | GetEntity () |
Get entity this slot represents. | |
Widget | CreateWidget (SCR_EditableEntityUIInfo info, SCR_EntitiesEditorUIRule rule) |
Create icon from UI info and a rule. | |
Widget | CreateWidget (SCR_EditableEntityComponent entity, SCR_EntitiesEditorUIRule rule) |
Create icon from editable entity and a rule. | |
Widget | CreateWidget (SCR_EditableEntityComponent entity, ResourceName layout) |
Create icon from editable entity and layout path. | |
void | DeleteWidget (SCR_EntitiesEditorUIRule rule) |
vector | UpdateSlot (int screenW, int screenH, vector posCenter, vector posCam) |
void | InitSlot (SCR_EditableEntityComponent entity) |
void | DeleteSlot () |
bool | IsPreview () |
Widget | GetWidget () |
override void | HandlerAttached (Widget w) |
Protected Member Functions | |
Widget | CreateWidgetForEntity (SCR_EditableEntityComponent entity, SCR_EntitiesEditorUIRule rule, ResourceName layout) |
SCR_BaseEditableEntityUIComponent | CreateWidgetFromLayout (ResourceName layout) |
void | SetFactionColor () |
void | RefreshSlot () |
void | ResetSlot () |
Protected Attributes | |
Widget | m_Widget |
SCR_EditableEntityComponent | m_Entity |
ref map< SCR_EntitiesEditorUIRule, SCR_BaseEditableEntityUIComponent > | m_EntityWidgets = new map<SCR_EntitiesEditorUIRule, SCR_BaseEditableEntityUIComponent>() |
Slot for icons representing editable entity.
One exists for every visible editable entity. Attached to Frame widget inside of which icon widgets are created (one for each active SCR_EntitiesEditorUIRule).
Widget SCR_EditableEntityBaseSlotUIComponent.CreateWidget | ( | SCR_EditableEntityComponent | entity, |
ResourceName | layout | ||
) |
Create icon from editable entity and layout path.
[in] | entity | Editable entity \rule layout Path to the layout |
Widget SCR_EditableEntityBaseSlotUIComponent.CreateWidget | ( | SCR_EditableEntityComponent | entity, |
SCR_EntitiesEditorUIRule | rule | ||
) |
Create icon from editable entity and a rule.
[in] | entity | Editable entity \rule Visualisation rule |
Widget SCR_EditableEntityBaseSlotUIComponent.CreateWidget | ( | SCR_EditableEntityUIInfo | info, |
SCR_EntitiesEditorUIRule | rule | ||
) |
Create icon from UI info and a rule.
[in] | info | UI info representing the entity \rule Visualisation rule |
|
protected |
Implemented in SCR_EditableEntitySceneSlotUIComponent.
|
protected |
void SCR_EditableEntityBaseSlotUIComponent.DeleteSlot | ( | ) |
void SCR_EditableEntityBaseSlotUIComponent.DeleteWidget | ( | SCR_EntitiesEditorUIRule | rule | ) |
[in] | rule |
Implemented in SCR_EditableEntitySceneSlotUIComponent.
SCR_EditableEntityComponent SCR_EditableEntityBaseSlotUIComponent.GetEntity | ( | ) |
Get entity this slot represents.
Widget SCR_EditableEntityBaseSlotUIComponent.GetWidget | ( | ) |
override void SCR_EditableEntityBaseSlotUIComponent.HandlerAttached | ( | Widget | w | ) |
void SCR_EditableEntityBaseSlotUIComponent.InitSlot | ( | SCR_EditableEntityComponent | entity | ) |
[in] | entity |
Implemented in SCR_EditableEntityCustomSlotUIComponent, and SCR_EditableEntitySceneSlotUIComponent.
bool SCR_EditableEntityBaseSlotUIComponent.IsEmpty | ( | ) |
Check if the slot is empty, i.e., doesn't contain icons for any rule.
bool SCR_EditableEntityBaseSlotUIComponent.IsPreview | ( | ) |
Implemented in SCR_EditableEntitySceneSlotUIComponent.
|
protected |
|
protected |
|
protected |
vector SCR_EditableEntityBaseSlotUIComponent.UpdateSlot | ( | int | screenW, |
int | screenH, | ||
vector | posCenter, | ||
vector | posCam | ||
) |
[in] | screenW | |
[in] | screenH | |
[in] | posCenter | |
[in] | posCam |
Implemented in SCR_EditableEntityCustomSlotUIComponent, and SCR_EditableEntitySceneSlotUIComponent.
|
protected |
|
protected |
|
protected |