3     [
Attribute(
desc: 
"Image widget to set icon same as EditableEntity UI info icon")]
 
    4     protected ref array<string> m_sIconWidgetNames;
 
    6     [
Attribute(
"0", 
desc: 
"If true will attempt to color the widget this script is attached to if the EditableEntity uses SCR_ColorUIInfo")]
 
    7     protected bool m_bColorWidget;
 
   15             ImageWidget iconWidget;
 
   18             if (m_sIconWidgetNames)
 
   20                 foreach (
string icon : m_sIconWidgetNames)
 
   22                     iconWidget = ImageWidget.Cast(
GetWidget().FindAnyWidget(icon));
 
   23                     info.SetIconTo(iconWidget);
 
   33                     GetWidget().SetColor(colorInfo.GetColor());
 
   35                     Print(
"'SCR_CustomArrayEditableEntityUIComponent' tried to set the UI color but the EditableEntity is not using SCR_ColorUIInfo", LogLevel.WARNING);