public void ShowHintMessage(HintContent content) { var window = GetUnClosedWindow("Hint"); if (window) { hintContexts.Enqueue(content); } else { OpenWindow("Hint", true, false, content); } }
private void ShowNextMessage() { var message = Singleton <WindowManager> .GetInstance().GetHintContext(); hint = message; if (message != null) { SetValue(message.GetHintMesssge()); } else { Singleton <WindowManager> .GetInstance().CloseWindow(false, "Hint"); } }
protected override void OnHide(WindowContext context) { isUpdate = false; base.OnHide(context); hint = null; }
protected override void OnAppear(int sequence, int openOrder, WindowContext context) { base.OnAppear(sequence, openOrder, context); hint = context as HintContent; SetValue(hint.GetHintMesssge()); }