public virtual void OnInput(BaseEventData data = null) { AdvUiManager.UiStatus status = base.Status; if (status != AdvUiManager.UiStatus.Backlog) { if (status == AdvUiManager.UiStatus.HideMessageWindow) { base.Status = AdvUiManager.UiStatus.Default; } else if (status == AdvUiManager.UiStatus.Default) { if (base.Engine.Config.IsSkip) { base.Engine.Config.ToggleSkip(); } else { if (base.IsShowingMessageWindow && !base.Engine.Config.IsSkip) { base.Engine.Page.InputSendMessage(); } if (IMManager.active && IMManager.waitIM) { IMManager.waitIM = false; } if ((data != null) && (data is PointerEventData)) { base.OnPointerDown(data as PointerEventData); } } } } }
protected override void ChangeStatus(AdvUiManager.UiStatus newStatus) { switch (newStatus) { case AdvUiManager.UiStatus.Default: this.MessageWindow.Open(); if (this.selection != null) { this.selection.Open(); } if (this.backLog != null) { this.backLog.Close(); } base.Engine.UiManager.HideMenuButton(); break; case AdvUiManager.UiStatus.Backlog: if (this.backLog != null) { this.MessageWindow.Close(); if (this.selection != null) { this.selection.Close(); } if (this.backLog != null) { this.backLog.Open(); } base.Engine.Config.IsSkip = false; break; } return; case AdvUiManager.UiStatus.HideMessageWindow: this.MessageWindow.Close(); if (this.selection != null) { this.selection.Close(); } if (this.backLog != null) { this.backLog.Close(); } base.Engine.Config.IsSkip = false; break; case AdvUiManager.UiStatus.Menu: base.Engine.UiManager.ShowMenuButton(); break; } base.status = newStatus; }
/// <summary> /// ステータス変更 /// </summary> /// <param name="status">ステータス</param> static public void ChangeNazotokiAdvUiStatus(AdvUiManager.UiStatus status) { var engine = GetNazotokiAdvEngine(); engine.UiManager.Status = status; }