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); }
public GComponent Inject() { if (instace != null) { return(instace); } instace = CreateRoleWindow.CreateInstance(); instace.Disposable = false; new CreateRoleWindowMedia().Init(instace); return(instace); }
partial void InitInstance(CreateRoleWindow instace);
public void Init(CreateRoleWindow instace) { InitInstance(instace); }