public NotificationScreenController(MessageHandler parent, bool disabled)
     : base(parent, disabled)
 {
     //_renderTextDictionary[GameScripts.Notifications.TagonSpawned] = new RenderTextMessage[]
     //{
     //    new RenderTextMessage("Welcome to     ",60, 80,"silver","ruby"),
     //    new RenderTextMessage("Splorr!!       ",60, 88,"silver","ruby"),
     //    new RenderTextMessage("WASD=Move      ",60, 96,"black","darksilver"),
     //    new RenderTextMessage("Space=Action   ",60,104,"black","darksilver"),
     //    new RenderTextMessage("E=Interact     ",60,112,"black","darksilver"),
     //    new RenderTextMessage("X=Switch Hand  ",60,120,"black","darksilver"),
     //    new RenderTextMessage("Tab=Inventory  ",60,128,"black","darksilver"),
     //    new RenderTextMessage("Esc=Menu       ",60,136,"black","darksilver"),
     //    new RenderTextMessage("LShift=cancel  ",60,144,"black","darksilver"),
     //    new RenderTextMessage("----Space=Close",60,152,"black","jade")
     //};
     //_renderTextDictionary[GameScripts.Notifications.TagonBumped] = new RenderTextMessage[]
     //{
     //    new RenderTextMessage("Blocked!      ",8*15-4*14,8*15-4*4+8*0,"silver","ruby"),
     //    new RenderTextMessage("Some terrain  ",8*15-4*14,8*15-4*4+8*1,"black","darksilver"),
     //    new RenderTextMessage("is impassible.",8*15-4*14,8*15-4*4+8*2,"black","darksilver"),
     //    new RenderTextMessage("---Space=Close",8*15-4*14,8*15-4*4+8*3,"black","jade")
     //};
     //_renderTextDictionary[GameScripts.Notifications.KeyBumped] = new RenderTextMessage[]
     //{
     //    new RenderTextMessage("Useful Items!      ",8*15-4*19,8*15-4*4+8*0,"silver","ruby"),
     //    new RenderTextMessage("Pick up by moving  ",8*15-4*19,8*15-4*4+8*1,"black","darksilver"),
     //    new RenderTextMessage("onto them.         ",8*15-4*19,8*15-4*4+8*2,"black","darksilver"),
     //    new RenderTextMessage("--------Space=Close",8*15-4*19,8*15-4*4+8*3,"black","jade")
     //};
     //_renderTextDictionary[GameScripts.Notifications.KeyPickup] = new RenderTextMessage[]
     //{
     //    new RenderTextMessage("A Red Key!          ",8*15-4*20,8*15-4*4+8*0,"silver","ruby"),
     //    new RenderTextMessage("Usually this means  ",8*15-4*20,8*15-4*4+8*1,"black","darksilver"),
     //    new RenderTextMessage("there is a red door.",8*15-4*20,8*15-4*4+8*2,"black","darksilver"),
     //    new RenderTextMessage("---------Space=Close",8*15-4*20,8*15-4*4+8*3,"black","jade")
     //};
 }
Пример #2
0
 public MessageHandler(MessageHandler parent, bool disabled)
 {
     Parent = parent;
     _disabled = disabled;
 }
Пример #3
0
 public void RemoveChild(MessageHandler child)
 {
     if(HasChild(child))
     {
         _children.Remove(child);
     }
 }
Пример #4
0
 public bool HasChild(MessageHandler child)
 {
     return _children.Contains(child);
 }
Пример #5
0
 public void AddChild(MessageHandler child)
 {
     RemoveChild(child);
     _children.Add(child);
 }
 public OptionsScreenController(MessageHandler parent, bool disabled)
     : base(parent, disabled)
 {
 }
Пример #7
0
 public void RemoveUICommandFocus(MessageHandler handler)
 {
     _uICommandFoci.Remove(handler);
 }
Пример #8
0
 public void AddUICommandFocus(MessageHandler handler)
 {
     _uICommandFoci.Add(handler);
 }
 public SetInputFocusMessage(MessageHandler target)
     : base(MessageId, target)
 {
 }
 public MessageHandlerTargetMessage(int id, MessageHandler target)
     : base(id)
 {
     _target = target;
 }
 public CancelMenuMessage(MessageHandler target)
     : base(MessageId, target)
 {
 }
Пример #12
0
 public LabelController(MessageHandler parent, bool disabled, RenderTextPayload text)
     : base(parent, disabled)
 {
     Text = text;
 }