Esempio n. 1
0
        private void NextMessage()
        {
            if (queue.Count == 0)
            {
                TriggerManager.Inst().TurnTrigger(TriggerType.MessageClose);
                messageActive = null;
            }
            else
                messageActive = queue.Dequeue();

            timeActive = ACTIVE_LIMIT;

            if (!GetIsActive())
            {
                InputManager.Inst().ClearActiveState("gamemessage");
            }
        }
Esempio n. 2
0
 public void ClearMessages()
 {
     messageActive = null;
     queue.Clear();
     InputManager.Inst().ClearActiveState("gamemessage");
 }
Esempio n. 3
0
        public void Show(String title, String description, Texture2D icon)
        {
            if (disabled)
                return;

            MessageItem item = new MessageItem(title, description, icon);
            if (messageActive == null)
                messageActive = item;
            else
                queue.Enqueue(item);

            InputManager.Inst().SetActiveState("gamemessage");
        }