5 [
Attribute(defvalue:
"", uiwidget: UIWidgets.ResourcePickerThumbnail,
desc:
"Image for the gallery",
"edds imageset")]
6 private ResourceName m_Texture;
8 ref ScriptInvoker m_OnClicked =
new ScriptInvoker();
10 ImageWidget m_Picture;
11 ImageWidget m_SelectedBar;
12 string m_sPictureString =
string.Empty;
15 override void HandlerAttached(Widget w)
17 super.HandlerAttached(w);
18 m_Picture = ImageWidget.Cast(
m_wRoot.FindAnyWidget(
"Picture"));
19 m_SelectedBar = ImageWidget.Cast(
m_wRoot.FindAnyWidget(
"SelectedBar"));
20 m_wSizeContent =
m_wRoot.FindAnyWidget(
"TileOverlay");
24 override bool OnClick(Widget w,
int x,
int y,
int button)
26 super.OnClick(w, x, y, button);
35 void SetImage(ResourceName name)
38 m_Picture.LoadImageTexture(0, m_Texture.GetPath());
53 m_wRoot.SetColor(Color.FromInt(Color.WHITE));
54 float padding[4] = {4, 4, 4, 4};
55 AnimateWidget.Padding(m_wSizeContent, padding, 10);
64 float padding[4] = {0, 0, 0, 0};
65 AnimateWidget.Padding(m_wSizeContent, padding, 10);