public void openDeckNameInput() { if (OrganizeTaskManager.Instance.GetDetailTask().CheckBtnEnabled() && base.isRun) { SoundUtils.PlaySE(SEFIleInfos.SE_001); this._state = TaskOrganizeTop.OrganizeState.System; TaskOrganizeTop.controlState = "system"; TaskOrganizeTop.BannerIndex = 0; TaskOrganizeTop.SystemIndex = 2; this.UpdateSystemButtons(); this.UpdateChangeBanner(); App.OnlyController = TaskOrganizeTop.KeyController; TaskOrganizeTop.KeyController.IsRun = false; SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(true); this.DelayActionFrame(1, delegate { Ime.add_OnGotIMEDialogResult(new Messages.EventHandler(this.OnGotIMEDialogResult)); Ime.ImeDialogParams imeDialogParams = new Ime.ImeDialogParams(); imeDialogParams.supportedLanguages = 270336; imeDialogParams.languagesForced = true; imeDialogParams.type = 0; imeDialogParams.option = 0; imeDialogParams.canCancel = true; imeDialogParams.textBoxMode = 2; imeDialogParams.enterLabel = 0; imeDialogParams.maxTextLength = 12; imeDialogParams.set_title("艦隊名を入力してください。(12文字まで)"); imeDialogParams.set_initialText(this.mEditName); Ime.Open(imeDialogParams); }); } }
private bool Init(Action onCancel) { this._actOnCancel = onCancel; this._strEditName = string.Empty; Ime.add_OnGotIMEDialogResult(new Messages.EventHandler(this.OnGotIMEDialogResult)); Main.Initialise(); return(true); }
private void Start() { this.StateControllerDic = new Dictionary <string, TaskOrganizeTop.StateController>(); this.StateControllerDic.Add("banner", new TaskOrganizeTop.StateController(this.StateKeyControl_Banner)); this.StateControllerDic.Add("system", new TaskOrganizeTop.StateController(this.StateKeyControl_System)); this.StateControllerDic.Add("tender", new TaskOrganizeTop.StateController(base.StateKeyControl_Tender)); base.currentDeck = EscortOrganizeTaskManager.GetEscortManager().EditDeck; this.StartRefGet(); this._fleetNameLabel.text = ((EscortDeckModel)base.currentDeck).Name; this._fleetNameLabel.supportEncoding = false; this.mEditName = ((EscortDeckModel)base.currentDeck).Name; Ime.add_OnGotIMEDialogResult(new Messages.EventHandler(base.OnGotIMEDialogResult)); Main.Initialise(); }
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); }