示例#1
0
        protected override void OnInitComponent()
        {
            m_lbtips   = GetControl <Text>("WindowContent/lbtips");
            m_btnLogin = GetControl <Button>("WindowContent/btnLogin");

            UIInterface.AddListener(m_btnLogin, UIEventType.onClick, OnClickLogin);
        }
示例#2
0
文件: gm_wnd.cs 项目: ErQing/cshotfix
        protected override void OnInitComponent()
        {
            m_btnExecute = GetControl <Button>("WindowContent/btnexecute");
            m_btnHide    = GetControl <Button>("WindowContent/btnhide");
            m_txtCmd     = GetControl <InputField>("WindowContent/txtcmd");

            m_txtCmd.text = "open XXX";
            UIInterface.AddListener(m_btnExecute, UIEventType.onClick, OnClickExecute);
            UIInterface.AddListener(m_btnHide, UIEventType.onClick, OnHide);
        }
示例#3
0
 protected override void OnInitComponent()
 {
     m_BtnMask = GetControl <Button>("WindowContent/mask");
     UIInterface.AddListener(m_BtnMask, UIEventType.onClick, OnClose);
 }