Пример #1
0
        partial void InitInstance(CreateRoleWindow instace)
        {
            this.instace = instace;
            RoleAssetAPI roleAssetAPI = SimpleFactory.CreateRoleAssetAPI();

            MonoInst.RunConrotine(roleAssetAPI.CreateRoleIEnumerator((AssetBundle bundle) =>
            {
                allButtons = instace.m_RoleList.GetChildren();
                allRole    = bundle.LoadAllAssets <Texture>();
                SetTexture(0);
                SetDetailInfo(0);



                MyGLoader loader = new MyGLoader();
                loader.position  = instace.m_htmlText.position;
                loader.LoadAsset("icon", allRole[0]);
                string richText         = string.Format(@"This is the Rich Text <img src='icon' width='20' height='20'/>");
                instace.m_htmlText.text = richText;
                HtmlElement htmlElement = instace.m_htmlText.richTextField.GetHtmlElementAt(0);

                instace.AddChild(loader);
            }
                                                                     ));

            instace.m_HintText.m_TextContent.text = "This is the HintInfo";

            instace.m_BaseWindow.m_BackTitleButton.m_Title.text = "RoleCreate";
            instace.m_Next.onClick.Add(HandleNextClick);
            instace.Disposable = true;
            instace.m_RoleList.GetChildren();
            instace.m_RoleList.onClickItem.Add(EventCallback1);
        }
Пример #2
0
 public GComponent Inject()
 {
     if (instace != null)
     {
         return(instace);
     }
     instace            = CreateRoleWindow.CreateInstance();
     instace.Disposable = false;
     new CreateRoleWindowMedia().Init(instace);
     return(instace);
 }
Пример #3
0
 partial void InitInstance(CreateRoleWindow instace);
Пример #4
0
 public void Init(CreateRoleWindow instace)
 {
     InitInstance(instace);
 }