コード例 #1
0
ファイル: confirmtext.cs プロジェクト: atom-chen/rongyaojt
 public override void init()
 {
     InterfaceMgr.getInstance().open(InterfaceMgr.FLYTXT, null, false);
     InterfaceMgr.openByLua("flytxt", null);
     this.txtInfo1    = base.getComponentByPath <Text>("info1");
     this.txtInfo2    = base.getComponentByPath <Text>("info2");
     this.txtDesc     = base.getComponentByPath <Text>("desc");
     this.input       = base.getComponentByPath <InputField>("input");
     this.placeholder = base.getComponentByPath <Text>("input/Placeholder");
     base.getComponentByPath <Button>("y").onClick.AddListener(new UnityAction(this.onYClick));
     base.getComponentByPath <Button>("n").onClick.AddListener(new UnityAction(this.onNClick));
 }
コード例 #2
0
        public override void init()
        {
            InterfaceMgr.getInstance().ui_async_open(InterfaceMgr.FLYTXT);
            InterfaceMgr.openByLua("flytxt");
            txtInfo1    = getComponentByPath <Text>("info1");
            txtInfo2    = getComponentByPath <Text>("info2");
            txtDesc     = getComponentByPath <Text>("desc");
            input       = getComponentByPath <InputField>("input");
            placeholder = getComponentByPath <Text>("input/Placeholder");

            getComponentByPath <Button>("y").onClick.AddListener(onYClick);
            getComponentByPath <Button>("n").onClick.AddListener(onNClick);


            getComponentByPath <Text>("desc").text   = ContMgr.getCont("confirmtext_0");
            getComponentByPath <Text>("y/Text").text = ContMgr.getCont("confirmtext_1");
            getComponentByPath <Text>("n/Text").text = ContMgr.getCont("confirmtext_2");
        }
コード例 #3
0
        IEnumerator openFirstUi(List <string> m_first_ui, List <string> m_first_ui_lua, bool b_proxy = false)
        {
            //if (debug.instance != null)
            //    debug.instance.showMsg(ContMgr.getOutGameCont("debug5"),2);

            for (int i = 0; i < m_first_ui_lua.Count; i++)
            {
                InterfaceMgr.openByLua(m_first_ui_lua[i]);
                //yield return new WaitForSeconds(0.1f);
                yield return(null);
            }

            for (int i = 0; i < m_first_ui.Count; i++)
            {
                InterfaceMgr.getInstance().ui_async_open(m_first_ui[i]);
                //yield return new WaitForSeconds(0.1f);
                yield return(null);
            }

            if (b_proxy)
            {
                initproxy_ui();
            }
        }
コード例 #4
0
ファイル: maploading.cs プロジェクト: atom-chen/rongyaojt
        private IEnumerator openFirstUi(List <string> m_first_ui, List <string> m_first_ui_lua, bool b_proxy = false)
        {
            int num;

            for (int i = 0; i < m_first_ui_lua.Count; i = num + 1)
            {
                InterfaceMgr.openByLua(m_first_ui_lua[i], null);
                yield return(new WaitForSeconds(0.1f));

                num = i;
            }
            for (int j = 0; j < m_first_ui.Count; j = num + 1)
            {
                InterfaceMgr.getInstance().open(m_first_ui[j], null, false);
                yield return(new WaitForSeconds(0.1f));

                num = j;
            }
            if (b_proxy)
            {
                this.initproxy_ui();
            }
            yield break;
        }