/// <summary> /// Create a new ShowInterfaceHandler for a specific Interface /// </summary> /// <param Name="camera">The PCamera to attach the interface to</param> /// <param Name="showInterface">The interface this should control</param> public ShowInterfaceHandler(PCamera camera, AbstractInterface showInterface) { Camera = camera; IsPressed = false; Interface = showInterface; //This handler needs to be hooked in to the interface so it can listen for the keyup event Interface.Entry.AddInputEventListener(this); }
/// <summary> /// Create a new ShowInterfaceHandler for a specific Interface /// </summary> /// <param Name="camera">The PCamera to attach the interface to</param> /// <param Name="showInterface">The interface this should control</param> public ShowInterfaceHandler(PCamera camera, AbstractInterface showInterface) { Camera = camera; IsPressed = false; Interface = showInterface; //This handler needs to be hooked in to the interface so it can listen for the keyup event Interface.Entry.AddInputEventListener(this); }
/// <summary> /// Create a new InterfaceTextEntryHandler for a specific interface /// </summary> /// <param Name="owner">The interface this is handling text entry for</param> public InterfaceTextEntryHandler(AbstractInterface owner) { Owner = owner; UpdateWidth += OnUpdateWidth; }
/// <summary> /// Create a new InterfaceTextEntryHandler for a specific interface /// </summary> /// <param Name="owner">The interface this is handling text entry for</param> public InterfaceTextEntryHandler(AbstractInterface owner) { Owner = owner; UpdateWidth += OnUpdateWidth; }