예제 #1
0
 public override void OnShow(params object[] paralist)
 {
     _item = (GeneralHintDialogItem)paralist[0];
     _anim.Play();
     InitContent();
     Coroutine_Extend cor = new Coroutine_Extend(CloseHint(), true);
 }
예제 #2
0
        void ShowConfirmDialog()
        {
            if (currentGroupID != -1 && currentSaveIndexID != -1)
            {
                if (GameDataSaveManager.Instance.CheckSaveDataComplete(currentGroupID, currentSaveIndexID))
                {
                    List <GeneralConfrimBtnItem> btns = new List <GeneralConfrimBtnItem>();
                    btns.Add(new GeneralConfrimBtnItem(
                                 MultiLanguage.Instance.GetTextValue(GameLoad_Confirm_Dialog_Cancel),
                                 () =>
                    {
                        UIManager.Instance.HideWnd(UIPath.WindowPath.General_Confirm_Dialog);
                    },
                                 GeneralConfrimBtnItem.btnColor.Red));
                    btns.Add(new GeneralConfrimBtnItem(
                                 MultiLanguage.Instance.GetTextValue(GameLoad_Confirm_Dialog_Confirm),
                                 LoadGame));

                    GeneralConfirmDialogItem item = new GeneralConfirmDialogItem(
                        MultiLanguage.Instance.GetTextValue(GameLoad_Confirm_Dialog_Title),
                        MultiLanguage.Instance.GetTextValue(GameLoad_Confirm_Dialog_Content),
                        btns);

                    UIGuide.Instance.ShowGeneralConfirmDialog(item);
                }
                else
                {
                    //Date Error!
                    List <GeneralConfrimBtnItem> btns = new List <GeneralConfrimBtnItem>();
                    btns.Add(new GeneralConfrimBtnItem(
                                 MultiLanguage.Instance.GetTextValue(GameLoad_SaveDamaged_Dialog_Confrim),
                                 () =>
                    {
                        UIManager.Instance.HideWnd(UIPath.WindowPath.General_Confirm_Dialog);
                    }));
                    GeneralConfirmDialogItem item = new GeneralConfirmDialogItem(
                        MultiLanguage.Instance.GetTextValue(GameLoad_SaveDamaged_Dialog_Title),
                        MultiLanguage.Instance.GetTextValue(GameLoad_SaveDamaged_Dialog_Content),
                        btns);

                    UIGuide.Instance.ShowGeneralConfirmDialog(item);
                }
            }
            else
            {
                //Not Select
                GeneralHintDialogItem hintItem = new GeneralHintDialogItem(
                    MultiLanguage.Instance.GetTextValue(GameLoad_Hint_NeedSelectSave), 2f);
                UIGuide.Instance.ShowGeneralHint(hintItem);
            }
        }
예제 #3
0
        void OnReceiveOrderClick()
        {
            Action confirmAction = () =>
            {
                if (GlobalEventManager.Instance.ReceiveOrder(_model.GUID))
                {
                    UIManager.Instance.HideWnd(UIPath.WindowPath.General_Confirm_Dialog);
                    GeneralHintDialogItem hint = new GeneralHintDialogItem(Order_Receive_Hint_Text, 1);
                    UIManager.Instance.PopUpWnd(UIPath.WindowPath.General_Hint_Dialog, WindowType.Dialog, true, hint);
                }
            };

            var content = Utility.ParseStringParams(Confirm_Content_Text, new string[1] {
                _model.Name
            });
            List <GeneralConfrimBtnItem> btns = new List <GeneralConfrimBtnItem>();

            //GeneralConfirmDialogItem item = new GeneralConfirmDialogItem(Confirm_Title_Text,content, 1 ,confirmAction);
            //UIManager.Instance.PopUpWnd(UIPath.WindowPath.General_Confirm_Dialog, WindowType.Dialog, true, item);
        }
예제 #4
0
 public override void Awake(params object[] paralist)
 {
     _anim = Transform.SafeGetComponent <Animation>();
     _item = (GeneralHintDialogItem)paralist[0];
 }