M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Library.InquiryData Class Reference

Public Member Functions

 InquiryData (string titleText, string text, bool isAffirmativeOptionShown, bool isNegativeOptionShown, string affirmativeText, string negativeText, Action affirmativeAction, Action negativeAction, string soundEventPath="", float expireTime=0f, Action timeoutAction=null, Func<(bool, string)> isAffirmativeOptionEnabled=null, Func<(bool, string)> isNegativeOptionEnabled=null)
 Parameter structure of the inquiry.
 
void SetText (string text)
 
void SetTitleText (string titleText)
 
void SetAffirmativeAction (Action newAffirmativeAction)
 
bool HasSameContentWith (object other)
 

Public Attributes

string TitleText
 
string Text
 
readonly float ExpireTime
 
readonly bool IsAffirmativeOptionShown
 
readonly bool IsNegativeOptionShown
 
readonly string AffirmativeText
 
readonly string NegativeText
 
readonly string SoundEventPath
 
Action AffirmativeAction
 
readonly Action NegativeAction
 
readonly Action TimeoutAction
 
readonly Func<(bool, string)> GetIsAffirmativeOptionEnabled
 
readonly Func<(bool, string)> GetIsNegativeOptionEnabled
 

Constructor & Destructor Documentation

◆ InquiryData()

TaleWorlds.Library.InquiryData.InquiryData ( string  titleText,
string  text,
bool  isAffirmativeOptionShown,
bool  isNegativeOptionShown,
string  affirmativeText,
string  negativeText,
Action  affirmativeAction,
Action  negativeAction,
string  soundEventPath = "",
float  expireTime = 0f,
Action  timeoutAction = null,
Func<(bool, string)>  isAffirmativeOptionEnabled = null,
Func<(bool, string)>  isNegativeOptionEnabled = null 
)
Parameters
titleTextTitle of the inquiry.
textInner text of the inquiry.
expireTimeExpiration time of the inquiry.
isAffirmativeOptionShownDetermines if the positive action is shown.
isNegativeOptionShownDetermines if the negative action is shown.
affirmativeTextDetermines the text content of the positive action.
negativeTextDetermines the text content of the negative action.
affirmativeActionAction that happens when positive action is selected.
negativeActionAction that happens when negative action is selected.
timeoutActionAction that happens when inquiry is expired.
soundEventPathPath of a sound file in the project. Plays at the start of the inquiry.

Member Function Documentation

◆ SetText()

void TaleWorlds.Library.InquiryData.SetText ( string  text)

◆ SetTitleText()

void TaleWorlds.Library.InquiryData.SetTitleText ( string  titleText)

◆ SetAffirmativeAction()

void TaleWorlds.Library.InquiryData.SetAffirmativeAction ( Action  newAffirmativeAction)

◆ HasSameContentWith()

bool TaleWorlds.Library.InquiryData.HasSameContentWith ( object  other)

Member Data Documentation

◆ TitleText

string TaleWorlds.Library.InquiryData.TitleText

◆ Text

string TaleWorlds.Library.InquiryData.Text

◆ ExpireTime

readonly float TaleWorlds.Library.InquiryData.ExpireTime

◆ IsAffirmativeOptionShown

readonly bool TaleWorlds.Library.InquiryData.IsAffirmativeOptionShown

◆ IsNegativeOptionShown

readonly bool TaleWorlds.Library.InquiryData.IsNegativeOptionShown

◆ AffirmativeText

readonly string TaleWorlds.Library.InquiryData.AffirmativeText

◆ NegativeText

readonly string TaleWorlds.Library.InquiryData.NegativeText

◆ SoundEventPath

readonly string TaleWorlds.Library.InquiryData.SoundEventPath

◆ AffirmativeAction

Action TaleWorlds.Library.InquiryData.AffirmativeAction

◆ NegativeAction

readonly Action TaleWorlds.Library.InquiryData.NegativeAction

◆ TimeoutAction

readonly Action TaleWorlds.Library.InquiryData.TimeoutAction

◆ GetIsAffirmativeOptionEnabled

readonly Func<(bool, string)> TaleWorlds.Library.InquiryData.GetIsAffirmativeOptionEnabled

◆ GetIsNegativeOptionEnabled

readonly Func<(bool, string)> TaleWorlds.Library.InquiryData.GetIsNegativeOptionEnabled