public bool Init(Action <StarterType> onSelectStarter, Action onCancel)
        {
            UIStartupNavigation navigation = StartupTaskManager.GetNavigation();

            navigation.SetNavigationInStarterSelect();
            base.transform.localScaleOne();
            _actOnSelectStarter = onSelectStarter;
            _actOnCancel        = onCancel;
            _iSelectType        = StarterType.Ex;
            ChangeFocus(_iSelectType);
            return(true);
        }
Exemple #2
0
        public bool Init(Action <CtrlStarterSelect.StarterType> onSelectStarter, Action onCancel)
        {
            UIStartupNavigation navigation = StartupTaskManager.GetNavigation();

            navigation.SetNavigationInStarterSelect();
            base.get_transform().localScaleOne();
            this._actOnSelectStarter = onSelectStarter;
            this._actOnCancel        = onCancel;
            this._iSelectType        = CtrlStarterSelect.StarterType.Ex;
            this.ChangeFocus(this._iSelectType);
            return(true);
        }
        private bool InitPictureStoryShowConfirm(object data)
        {
            UIStartupHeader     startupHeader = StartupTaskManager.GetStartupHeader();
            UIStartupNavigation navigation    = StartupTaskManager.GetNavigation();

            startupHeader.SetMessage("チュ\u30fcトリアル");
            navigation.Hide(null);
            _uiTutorialConfirmDialog = UITutorialConfirmDialog.Instantiate(((Component)StartupTaskManager.GetPrefabFile().prefabUITutorialConfirmDialog).GetComponent <UITutorialConfirmDialog>(), StartupTaskManager.GetSharedPlace());
            _uiTutorialConfirmDialog.Init(OnPictureStoryShowConfirmCancel, OnPictureStoryShowConfirmDecide);
            _uiTutorialConfirmDialog.Open(null);
            return(false);
        }
Exemple #4
0
        protected override bool Init()
        {
            Ime.add_OnGotIMEDialogResult(new Messages.EventHandler(this.OnGotIMEDialogResult));
            Main.Initialise();
            Utils.PlayAdmiralNameVoice();
            UIStartupNavigation navigation = StartupTaskManager.GetNavigation();

            navigation.SetNavigationInAdmiralInfo(StartupTaskManager.IsInheritStartup());
            Util.FindParentToChild <UIPanel>(ref this._uiPanel, base.scenePrefab, "InfoPanel");
            if (this._uiNameInput.onSubmit != null)
            {
                this._uiNameInput.onSubmit.Clear();
            }
            EventDelegate.Add(this._uiNameInput.onSubmit, new EventDelegate.Callback(this._onNameSubmit));
            if (this._uiNameInput.onChange != null)
            {
                this._uiNameInput.onChange.Clear();
            }
            this._uiNameInput.onChange.Add(new EventDelegate(delegate
            {
                this.ChkButtonState();
            }));
            if (this._uiDecideButton.onClick != null)
            {
                this._uiDecideButton.onClick.Clear();
            }
            this._uiDecideButton.onClick.Add(new EventDelegate(delegate
            {
                this._onNameSubmit();
            }));
            this._uiDecideButton.state = ((!(this._uiNameInput.value == string.Empty)) ? UIButtonColor.State.Normal : UIButtonColor.State.Disabled);
            this._uiPanel.SetActive(true);
            this._ANI           = GameObject.Find("AdmiralInfoScene/InfoPanel/anchor/Feather").GetComponent <Animation>();
            this._shipSelected  = false;
            this._shipCancelled = false;
            this.ChkButtonState();
            StartupTaskManager.GetStartupHeader().SetMessage("提督名入力");
            this._uiNameInput.isSelected = true;
            return(true);
        }