Class DaggerfallMessageBox
Implements a Daggerfal popup message box dialog with variable buttons.
Designed to take Daggerfall multiline text resource records.
Inheritance
DaggerfallMessageBox
Assembly: Assembly-CSharp.dll
Syntax
public class DaggerfallMessageBox : DaggerfallPopupWindow, IUserInterfaceWindow
Constructors
|
Improve this Doc
View Source
DaggerfallMessageBox(IUserInterfaceManager, IUserInterfaceWindow, Boolean, Int32)
Declaration
public DaggerfallMessageBox(IUserInterfaceManager uiManager, IUserInterfaceWindow previous = null, bool wrapText = false, int posY = -1)
Parameters
|
Improve this Doc
View Source
DaggerfallMessageBox(IUserInterfaceManager, DaggerfallMessageBox.CommonMessageBoxButtons, TextFile.Token[], IUserInterfaceWindow, IMacroContextProvider)
Declaration
public DaggerfallMessageBox(IUserInterfaceManager uiManager, DaggerfallMessageBox.CommonMessageBoxButtons buttons, TextFile.Token[] tokens, IUserInterfaceWindow previous = null, IMacroContextProvider mcp = null)
Parameters
|
Improve this Doc
View Source
DaggerfallMessageBox(IUserInterfaceManager, DaggerfallMessageBox.CommonMessageBoxButtons, Int32, IUserInterfaceWindow, IMacroContextProvider)
Declaration
public DaggerfallMessageBox(IUserInterfaceManager uiManager, DaggerfallMessageBox.CommonMessageBoxButtons buttons, int textId, IUserInterfaceWindow previous = null, IMacroContextProvider mcp = null)
Parameters
|
Improve this Doc
View Source
Declaration
public DaggerfallMessageBox(IUserInterfaceManager uiManager, DaggerfallMessageBox.CommonMessageBoxButtons buttons, string text, IUserInterfaceWindow previous = null)
Parameters
Properties
|
Improve this Doc
View Source
Declaration
public int ButtonSpacing { get; set; }
Property Value
|
Improve this Doc
View Source
ButtonTextDistance
Declaration
public int ButtonTextDistance { get; set; }
Property Value
|
Improve this Doc
View Source
ClickAnywhereToClose
Declaration
public bool ClickAnywhereToClose { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public KeyCode ExtraProceedBinding { get; set; }
Property Value
|
Improve this Doc
View Source
ImagePanel
Declaration
public Panel ImagePanel { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public DaggerfallMessageBox.MessageBoxButtons SelectedButton { get; }
Property Value
|
Improve this Doc
View Source
TextScale
Change the scale of text inside message box.
Must set custom TextScale immediately after creating messagebox and before setting text/tokens.
Declaration
public float TextScale { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
public Button AddButton(DaggerfallMessageBox.MessageBoxButtons messageBoxButton, bool defaultButton = false)
Parameters
Returns
|
Improve this Doc
View Source
AddNextMessageBox(DaggerfallMessageBox)
Adds another nested message box to be displayed next when click detected.
Declaration
public void AddNextMessageBox(DaggerfallMessageBox nextMessageBox)
Parameters
|
Improve this Doc
View Source
Enables vertical scrolling of message panel.
Width is determined by widest text line as with non-scrolling message box.
Must call this before setting text.
Declaration
public void EnableVerticalScrolling(int height)
Parameters
Type |
Name |
Description |
Int32 |
height |
Capped height of visible area of message panel. Anything past this size will become scrollable.
|
|
Improve this Doc
View Source
Gets default button (if any).
Declaration
public Button GetDefaultButton()
Returns
Type |
Description |
Button |
Default Button reference, or null if no default button defined.
|
|
Improve this Doc
View Source
OnPop()
Declaration
public override void OnPop()
Overrides
|
Improve this Doc
View Source
OnPush()
Declaration
public override void OnPush()
Overrides
|
Improve this Doc
View Source
SetHighlightColor(Color)
Must be set before text otherwise layout has already occurred.
Declaration
public void SetHighlightColor(Color highlightColor)
Parameters
Type |
Name |
Description |
Color |
highlightColor |
|
|
Improve this Doc
View Source
SetText(String, IMacroContextProvider)
Declaration
public void SetText(string text, IMacroContextProvider mcp = null)
Parameters
|
Improve this Doc
View Source
SetText(String[], IMacroContextProvider)
Declaration
public void SetText(string[] rows, IMacroContextProvider mcp = null)
Parameters
|
Improve this Doc
View Source
SetTextTokens(TextFile.Token[], IMacroContextProvider, Boolean)
Declaration
public void SetTextTokens(TextFile.Token[] tokens, IMacroContextProvider mcp = null, bool expandMacros = true)
Parameters
|
Improve this Doc
View Source
SetTextTokens(Int32, IMacroContextProvider)
Declaration
public void SetTextTokens(int id, IMacroContextProvider mcp = null)
Parameters
|
Improve this Doc
View Source
Setup()
Declaration
protected override void Setup()
Overrides
|
Improve this Doc
View Source
Show()
Declaration
|
Improve this Doc
View Source
Update()
Declaration
public override void Update()
Overrides
Events
|
Improve this Doc
View Source
Declaration
public event DaggerfallMessageBox.OnButtonClickHandler OnButtonClick
Event Type
Implements