Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CustomEditableEntityUIComponent.c
Go to the documentation of this file.
2{
3 [Attribute("Icon")]
4 protected string m_sIconWidgetName;
5
6 //------------------------------------------------------------------------------------------------
8 {
9 if (info)
10 {
11 //--- Set custom texture
12 ImageWidget iconWidget = ImageWidget.Cast(GetWidget().FindAnyWidget(m_sIconWidgetName));
13 info.SetIconTo(iconWidget);
14 }
15 }
16}
Widget GetWidget()
override void OnInit(SCR_EditableEntityComponent entity, SCR_UIInfo info, SCR_EditableEntityBaseSlotUIComponent slot)
bool SetIconTo(ImageWidget imageWidget)
Definition SCR_UIInfo.c:102
SCR_FieldOfViewSettings Attribute