4 protected ref array<ref SCR_GroupEditableEntityTextureUIComponent> m_Textures;
7 protected string m_sIconWidgetName;
14 SCR_GroupIdentityComponent identity = SCR_GroupIdentityComponent.Cast(entity.GetOwner().FindComponent(SCR_GroupIdentityComponent));
16 return RefreshSymbol(identity.GetMilitarySymbol());
26 return RefreshSymbol(groupInfo.GetMilitarySymbol());
46 foreach (SCR_GroupEditableEntityTextureUIComponent texture:
m_Textures)
48 if (texture.m_Identity == symbol.GetIdentity() && texture.m_Dimension == symbol.GetDimension())
51 FilePath.StripExtension(texture.m_Texture, ext);
52 if (ext ==
"imageset")
53 iconWidget.LoadImageFromSet(0, texture.m_Texture, texture.m_ImageName);
55 iconWidget.LoadImageTexture(0, texture.m_Texture);
57 iconWidget.SetVisible(
true);
62 iconWidget.SetVisible(hasTexture);
77 super.OnInit(entity, info, slot);
81 if (entity && RefreshSymbol(entity))
89 class SCR_GroupEditableEntityTextureUIComponent
97 [
Attribute(uiwidget:UIWidgets.ResourcePickerThumbnail,
params:
"edds imageset")]
98 ResourceName m_Texture;