8 if ( (!GetTypeLayoutPathArray() && !GetTypeImagePathArray()) )
10 PerformRegisterImages();
16 protected void PerformRegisterImages()
25 protected void RegisterImage(
string layout_path,
string image_name)
27 GetTypeLayoutPathArray().Insert(layout_path);
28 GetTypeImagePathArray().Insert(image_name);
31 protected void RandomizeImageIdx()
33 m_ImageIndex =
Math.RandomIntInclusive(0,GetTypeImagePathArray().
Count() - 1);
40 void GetCurrentImageData(out
Widget layout, out
Widget image)
42 layout =
GetGame().GetWorkspace().CreateWidgets(GetTypeLayoutPathArray()[m_ImageIndex]);
43 image = layout.FindAnyWidget(GetTypeImagePathArray()[m_ImageIndex]);