Class UserInterfaceManager
Manages a stack of user interface windows. Provides a simple window messaging system for passing information and events via string.
Implements
Namespace: DaggerfallWorkshop.Game.UserInterface
Assembly: Assembly-CSharp.dll
Syntax
public class UserInterfaceManager : IUserInterfaceManager
Constructors
| Improve this Doc View SourceUserInterfaceManager()
Constructor.
Declaration
public UserInterfaceManager()
Properties
| Improve this Doc View SourceMessageCount
Number of messages in stack.
Declaration
public int MessageCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
TopWindow
Peeks window at top of stack.
Declaration
public IUserInterfaceWindow TopWindow { get; }
Property Value
Type | Description |
---|---|
IUserInterfaceWindow |
WindowCount
Number of windows in stack (not including HUD)
Declaration
public int WindowCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceBuildParamDict(String)
Builds a parameter dictionary from message string.
Declaration
public static Dictionary<string, string> BuildParamDict(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message |
Returns
Type | Description |
---|---|
Dictionary<String, String> |
ChangeWindow(IUserInterfaceWindow)
Replace entire stack with a new window.
Declaration
public void ChangeWindow(IUserInterfaceWindow window)
Parameters
Type | Name | Description |
---|---|---|
IUserInterfaceWindow | window | New window. |
ContainsWindow(IUserInterfaceWindow)
Checks stack for a specific window.
Declaration
public bool ContainsWindow(IUserInterfaceWindow window)
Parameters
Type | Name | Description |
---|---|---|
IUserInterfaceWindow | window | Window to look for. |
Returns
Type | Description |
---|---|
Boolean | True if window exists on stack. |
GetMessage()
Get message at front of queue and remove message.
Declaration
public string GetMessage()
Returns
Type | Description |
---|---|
String |
PeekMessage()
Peek message at front of queue without removing.
Declaration
public string PeekMessage()
Returns
Type | Description |
---|---|
String |
PopWindow()
Pop a window from the stack.
Declaration
public void PopWindow()
PostMessage(String)
Post message to end of queue.
Declaration
public void PostMessage(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message |
PushWindow(IUserInterfaceWindow)
Push a new window onto the stack.
Declaration
public void PushWindow(IUserInterfaceWindow window)
Parameters
Type | Name | Description |
---|---|---|
IUserInterfaceWindow | window | New window. |
Events
| Improve this Doc View SourceOnWindowChange
Declaration
public event EventHandler OnWindowChange
Event Type
Type | Description |
---|---|
EventHandler |