3 protected int m_iPicID = -1;
4 protected ResourceName m_sImageSet;
5 protected bool m_bIsFromImageset;
8 protected vector m_vImageSize;
11 override void HandlerAttached(Widget w)
13 super.HandlerAttached(w);
19 void SetFlagButtonFromImageSet(
string name)
29 ResourceName res = playerFaction.GetGroupFlagImageSet();
33 m_wImage.LoadImageFromSet(0, res, name);
40 void SetFlagButtonFromTexture(ResourceName name)
50 ResourceName imageSetResource = playerFaction.GetGroupFlagImageSet();
51 array<ResourceName> textures = {};
52 playerFaction.GetGroupFlagTextures(textures);
54 m_wImage.LoadImageTexture(0, textures[textures.Find(name)]);
62 void Resize(
float scale = 1)
64 m_wImage.SetSize(m_vImageSize[0] * scale, m_vImageSize[1] * scale);
69 void SetIsFromImageset(
bool value)
71 m_bIsFromImageset = value;
76 bool GetIsFromImageset()
78 return m_bIsFromImageset;
90 void SetImageID(
int ID)
97 void SetImageSet(ResourceName imageSet)
104 ResourceName GetImageSet()