public MessageBoxScreen(string _message, ActionList actions)
     : base(false,true)
 {
     Systems.InputManager.RegisterScreen(this);
     boxPosition = new Vector2(EquestriEngine.Settings.WindowWidth / 2, EquestriEngine.Settings.WindowHeight / 1.25f);
     _actions = actions;
     //_data = new TextLineData[_windowLines.Length / 4][];
     var rough = _message.Split(new string[] { "/n[", "]" },System.StringSplitOptions.RemoveEmptyEntries);
     if (rough.Length > 1)
     {
         name = rough[0];
         message = rough[1];
     }
     else
         message = rough[0];
 }
 public void ExecuteList(ActionList list)
 {
     _subList = list;
     _subList.StartFromBeginning();
 }
        public void ExecuteCurrent()
        {
            if (_subList != null && !_subList.Finished)
            {
                 _subList.ExecuteCurrent();
            }
            else
            {
                var method = _current;
                if (_current.Next != null)
                    _current = _current.Next;
                else
                {
                    _finished = true;
                    if (OnFinish != null)
                        OnFinish(_owner, null);
                }
                _subList = null;
                method.Value.ExecuteMethod(_owner);

            }
        }
Beispiel #4
0
 public static void ListErase(object sender, IEventInput input)
 {
     Current_ActionList = null;
 }
Beispiel #5
0
 public static void AssignActionList(Data.Collections.ActionList list)
 {
     Current_ActionList           = list;
     Current_ActionList.OnFinish += ListErase;
     Current_ActionList.StartFromBeginning();
 }
 public static void AssignActionList(Data.Collections.ActionList list)
 {
     Current_ActionList = list;
     Current_ActionList.OnFinish += ListErase;
     Current_ActionList.StartFromBeginning();
 }
 public static void ListErase(object sender, IEventInput input)
 {
     Current_ActionList = null;
 }
Beispiel #8
0
 public void ExecuteList(ActionList list)
 {
     _subList = list;
     _subList.StartFromBeginning();
 }