Ejemplo n.º 1
0
    public override void CloseForm(IUIObject obj)
    {
        TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "MAINMENU", "CLOSE", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay));
        MenuIconDlg menuIconDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MENUICON_DLG) as MenuIconDlg;

        if (menuIconDlg != null)
        {
            menuIconDlg.ClickCloseMenu(null);
        }
        base.CloseForm(null);
    }
Ejemplo n.º 2
0
    public void ClickButton(IUIObject obj)
    {
        Button button = (Button)obj;

        if (null == button)
        {
            return;
        }
        MainMenuDlg.TYPE key = (MainMenuDlg.TYPE)((int)button.data);
        if (this.mapFun.ContainsKey(key))
        {
            this.mapFun[key](null);
        }
        if (TsPlatform.IsIPhone)
        {
            MenuIconDlg menuIconDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MENUICON_DLG) as MenuIconDlg;

            if (menuIconDlg != null)
            {
                menuIconDlg.ClickCloseMenu(null);
            }
        }
    }