M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Core.MultiSelectionInquiryData Class Reference

Public Member Functions

 MultiSelectionInquiryData (string titleText, string descriptionText, List< InquiryElement > inquiryElements, bool isExitShown, int maxSelectableOptionCount, string affirmativeText, string negativeText, Action< List< InquiryElement > > affirmativeAction, Action< List< InquiryElement > > negativeAction, string soundEventPath="")
 Parameter structure of the multi selection inquiry. More...
 

Public Attributes

readonly string TitleText
 
readonly string DescriptionText
 
readonly List< InquiryElementInquiryElements
 
readonly bool IsExitShown
 
readonly int MaxSelectableOptionCount
 
readonly int MinSelectableOptionCount
 
readonly string SoundEventPath
 
readonly string AffirmativeText
 
readonly string NegativeText
 
readonly Action< List< InquiryElement > > AffirmativeAction
 
readonly Action< List< InquiryElement > > NegativeAction
 

Constructor & Destructor Documentation

◆ MultiSelectionInquiryData()

TaleWorlds.Core.MultiSelectionInquiryData.MultiSelectionInquiryData ( string  titleText,
string  descriptionText,
List< InquiryElement inquiryElements,
bool  isExitShown,
int  maxSelectableOptionCount,
string  affirmativeText,
string  negativeText,
Action< List< InquiryElement > >  affirmativeAction,
Action< List< InquiryElement > >  negativeAction,
string  soundEventPath = "" 
)
Parameters
titleTextTitle of the inquiry.
descriptionTextDescription of the inquiry.
inquiryElementsList of selection elements to show and select from.
isExitShownDetermines of the exit action is shown. Forces user the make a selection to end the inquiry.
maxSelectableOptionCountDetermines the number of selections can the user make. 1 is equal to ForceOneSelection of legacy. -1 is limitless.
affirmativeTextDetermines the text content of the positive action.
negativeTextDetermines the text content of the negative action
affirmativeActionAction that happens when positive action is selected. Passes the selection as a list.
negativeActionAction that happens when negative action is selected. Passes the selection as a list.
soundEventPathPath of a sound file in the project. Plays at the start of the inquiry.

Member Data Documentation

◆ TitleText

readonly string TaleWorlds.Core.MultiSelectionInquiryData.TitleText

◆ DescriptionText

readonly string TaleWorlds.Core.MultiSelectionInquiryData.DescriptionText

◆ InquiryElements

readonly List<InquiryElement> TaleWorlds.Core.MultiSelectionInquiryData.InquiryElements

◆ IsExitShown

readonly bool TaleWorlds.Core.MultiSelectionInquiryData.IsExitShown

◆ MaxSelectableOptionCount

readonly int TaleWorlds.Core.MultiSelectionInquiryData.MaxSelectableOptionCount

◆ MinSelectableOptionCount

readonly int TaleWorlds.Core.MultiSelectionInquiryData.MinSelectableOptionCount

◆ SoundEventPath

readonly string TaleWorlds.Core.MultiSelectionInquiryData.SoundEventPath

◆ AffirmativeText

readonly string TaleWorlds.Core.MultiSelectionInquiryData.AffirmativeText

◆ NegativeText

readonly string TaleWorlds.Core.MultiSelectionInquiryData.NegativeText

◆ AffirmativeAction

readonly Action<List<InquiryElement> > TaleWorlds.Core.MultiSelectionInquiryData.AffirmativeAction

◆ NegativeAction

readonly Action<List<InquiryElement> > TaleWorlds.Core.MultiSelectionInquiryData.NegativeAction