protected override void OnInitComponent() { m_lbtips = GetControl <Text>("WindowContent/lbtips"); m_btnLogin = GetControl <Button>("WindowContent/btnLogin"); UIInterface.AddListener(m_btnLogin, UIEventType.onClick, OnClickLogin); }
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); }
protected override void OnInitComponent() { m_BtnMask = GetControl <Button>("WindowContent/mask"); UIInterface.AddListener(m_BtnMask, UIEventType.onClick, OnClose); }