|
M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
|
Public Member Functions | |
| TextInquiryData (string titleText, string text, bool isAffirmativeOptionShown, bool isNegativeOptionShown, string affirmativeText, string negativeText, Action< string > affirmativeAction, Action negativeAction, bool shouldInputBeObfuscated=false, Func< string, Tuple< bool, string > > textCondition=null, string soundEventPath="", string defaultInputText="") | |
| Parameter structure of the inquiry. | |
Public Attributes | |
| string | TitleText |
| string | Text = "" |
| readonly bool | IsAffirmativeOptionShown |
| readonly bool | IsNegativeOptionShown |
| readonly bool | IsInputObfuscated |
| readonly string | AffirmativeText |
| readonly string | NegativeText |
| readonly string | SoundEventPath |
| readonly string | DefaultInputText |
| readonly Action< string > | AffirmativeAction |
| readonly Action | NegativeAction |
| readonly Func< string, Tuple< bool, string > > | TextCondition |
| TaleWorlds.Library.TextInquiryData.TextInquiryData | ( | string | titleText, |
| string | text, | ||
| bool | isAffirmativeOptionShown, | ||
| bool | isNegativeOptionShown, | ||
| string | affirmativeText, | ||
| string | negativeText, | ||
| Action< string > | affirmativeAction, | ||
| Action | negativeAction, | ||
| bool | shouldInputBeObfuscated = false, |
||
| Func< string, Tuple< bool, string > > | textCondition = null, |
||
| string | soundEventPath = "", |
||
| string | defaultInputText = "" |
||
| ) |
| titleText | Title of the inquiry. |
| text | Inner text of the inquiry. |
| isAffirmativeOptionShown | Determines if the positive action is shown. |
| isNegativeOptionShown | Determines if the negative action is shown. |
| affirmativeText | Determines the text content of the positive action. |
| negativeText | Determines the text content of the negative action. |
| affirmativeAction | Action that happens when positive action is selected. Returns input text. |
| negativeAction | Action that happens when negative action is selected. |
| shouldInputBeObfuscated | Determines if the text is obfuscated while input |
| textCondition | Func that asks if the current input text is permitted or not. Returns result and reason hint as a string. Null by default. |
| soundEventPath | Path of a sound file in the project. Plays at the start of the inquiry. |
| defaultInputText | Determines the default text the popup will open with |
| string TaleWorlds.Library.TextInquiryData.TitleText |
| string TaleWorlds.Library.TextInquiryData.Text = "" |
| readonly bool TaleWorlds.Library.TextInquiryData.IsAffirmativeOptionShown |
| readonly bool TaleWorlds.Library.TextInquiryData.IsNegativeOptionShown |
| readonly bool TaleWorlds.Library.TextInquiryData.IsInputObfuscated |
| readonly string TaleWorlds.Library.TextInquiryData.AffirmativeText |
| readonly string TaleWorlds.Library.TextInquiryData.NegativeText |
| readonly string TaleWorlds.Library.TextInquiryData.SoundEventPath |
| readonly string TaleWorlds.Library.TextInquiryData.DefaultInputText |
| readonly Action<string> TaleWorlds.Library.TextInquiryData.AffirmativeAction |
| readonly Action TaleWorlds.Library.TextInquiryData.NegativeAction |
| readonly Func<string, Tuple<bool,string> > TaleWorlds.Library.TextInquiryData.TextCondition |