6 protected string m_ImageWidgetName;
9 protected string m_TextWidgetName;
12 protected string m_AnimWidgetName;
15 protected ResourceName m_DefaultIcon;
18 protected ResourceName m_MultiHighlightIcon;
21 protected ref array<ref SCR_HighlightVisual> m_aHighlightVisuals;
24 protected bool m_bAnimate;
28 protected ImageWidget m_ImageWidget;
29 protected TextWidget m_TextWidget;
39 if (highlightCount > 1)
51 if (visual.GetHighlightType() == highlight)
66 protected void OnSelectedChange(
EEditableEntityState state, set<SCR_EditableEntityComponent> entitiesInsert, set<SCR_EditableEntityComponent> entitiesRemove)
68 if (entitiesInsert && entitiesInsert.Contains(
m_Entity))
73 protected void StopAnimations(Widget w)
80 AnimateWidget.StopAllAnimations(animWidget);
81 animWidget.SetVisible(
false);
86 selectedFilter.GetOnChanged().Remove(OnSelectedChange);
95 super.OnInit(entity, info, slot);
110 OnUpdateHighlight(
m_Entity, highlight, highlightCount);
116 float size[2] = {70, 70};
117 WidgetAnimationBase anim = AnimateWidget.Opacity(animWidget, 0, 1);
119 anim.SetRepeat(
true);
121 anim = AnimateWidget.Size(animWidget, size, 1);
123 anim.SetRepeat(
true);
127 selectedFilter.GetOnChanged().Insert(OnSelectedChange);
132 override bool OnClick(Widget w,
int x,
int y,
int button)
135 return super.OnClick(w, x, y, button);
139 override void HandlerDeattached(Widget w)
141 super.HandlerDeattached(w);
151 class SCR_HighlightVisual
157 protected ResourceName m_Icon;
163 return m_HighlightType;
168 ResourceName GetIcon()