예제 #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);
 }