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

Static Public Member Functions

static void DisplayMessage (InformationMessage message)
 Adds a new message line to the chatlog.
 
static void ClearAllMessages ()
 Clears all lines in the chatlog.
 
static void AddSystemNotification (string message)
 Displays text on the top of the screen, notifying the player. Used for system/backend notifications. Not Used in Singleplayer.
 
static void ShowTooltip (Type type, params object[] args)
 Shows the tooltip that is associated to the given type.
 
static void HideTooltip ()
 Hides currently active tooltips.
 
static void ShowInquiry (InquiryData data, bool pauseGameActiveState=false, bool prioritize=false)
 Shows an inquiry panel with OK-Cancel options depending on Data.
 
static void ShowTextInquiry (TextInquiryData textData, bool pauseGameActiveState=false, bool prioritize=false)
 Shows an inquiry panel with OK-Cancel options and text input area depending on Data.
 
static void HideInquiry ()
 Removes on-screen inquiry if there is one.
 
static void RegisterIsAnyTooltipActiveCallback (Func< bool > callback)
 
static void UnregisterIsAnyTooltipActiveCallback (Func< bool > callback)
 
static void RegisterIsAnyTooltipExtendedCallback (Func< bool > callback)
 
static void UnregisterIsAnyTooltipExtendedCallback (Func< bool > callback)
 
static bool GetIsAnyTooltipActive ()
 Returns true if any tooltip is currently active.
 
static bool GetIsAnyTooltipExtended ()
 Returns true if any tooltip is currently extended.
 
static bool GetIsAnyTooltipActiveAndExtended ()
 Returns true if any tooltip is currently active and extended.
 
static void Clear ()
 Clears event registries of all information events.
 

Static Public Attributes

static Func< bool > IsAnyInquiryActive
 Returns if any inquiry is currently active. The system that implements ShowInquiry events, should also respond to this call.
 

Events

static Action< InformationMessageDisplayMessageInternal
 
static Action ClearAllMessagesInternal
 
static Action< string > OnAddSystemNotification
 
static Action< Type, object[]> OnShowTooltip
 
static Action OnHideTooltip
 
static Action< InquiryData, bool, bool > OnShowInquiry
 
static Action< TextInquiryData, bool, bool > OnShowTextInquiry
 
static Action OnHideInquiry
 

Member Function Documentation

◆ DisplayMessage()

static void TaleWorlds.Library.InformationManager.DisplayMessage ( InformationMessage  message)
static
Parameters
messageParameters of the message.

◆ ClearAllMessages()

static void TaleWorlds.Library.InformationManager.ClearAllMessages ( )
static
Parameters
messageParameters of the message.

◆ AddSystemNotification()

static void TaleWorlds.Library.InformationManager.AddSystemNotification ( string  message)
static
Parameters
messageMain message/text of the system notification.

◆ ShowTooltip()

static void TaleWorlds.Library.InformationManager.ShowTooltip ( Type  type,
params object[]  args 
)
static
Parameters
typeType that is associated with a tooltip.
argsArguments that will be used by the tooltip.

◆ HideTooltip()

static void TaleWorlds.Library.InformationManager.HideTooltip ( )
static

◆ ShowInquiry()

static void TaleWorlds.Library.InformationManager.ShowInquiry ( InquiryData  data,
bool  pauseGameActiveState = false,
bool  prioritize = false 
)
static
Parameters
dataParameters of the inquiry.
pauseGameActiveStatePauses the game's current active state while the inquiry is active.
prioritizeDetermines if the new query should be shown immediately if another query is active.

◆ ShowTextInquiry()

static void TaleWorlds.Library.InformationManager.ShowTextInquiry ( TextInquiryData  textData,
bool  pauseGameActiveState = false,
bool  prioritize = false 
)
static
Parameters
textDataParameters of the inquiry.
pauseGameActiveStatePauses the game's current active state while the inquiry is active.
prioritizeDetermines if the new query should be shown immediately if another query is active.

◆ HideInquiry()

static void TaleWorlds.Library.InformationManager.HideInquiry ( )
static

◆ RegisterIsAnyTooltipActiveCallback()

static void TaleWorlds.Library.InformationManager.RegisterIsAnyTooltipActiveCallback ( Func< bool >  callback)
static

◆ UnregisterIsAnyTooltipActiveCallback()

static void TaleWorlds.Library.InformationManager.UnregisterIsAnyTooltipActiveCallback ( Func< bool >  callback)
static

◆ RegisterIsAnyTooltipExtendedCallback()

static void TaleWorlds.Library.InformationManager.RegisterIsAnyTooltipExtendedCallback ( Func< bool >  callback)
static

◆ UnregisterIsAnyTooltipExtendedCallback()

static void TaleWorlds.Library.InformationManager.UnregisterIsAnyTooltipExtendedCallback ( Func< bool >  callback)
static

◆ GetIsAnyTooltipActive()

static bool TaleWorlds.Library.InformationManager.GetIsAnyTooltipActive ( )
static

◆ GetIsAnyTooltipExtended()

static bool TaleWorlds.Library.InformationManager.GetIsAnyTooltipExtended ( )
static

◆ GetIsAnyTooltipActiveAndExtended()

static bool TaleWorlds.Library.InformationManager.GetIsAnyTooltipActiveAndExtended ( )
static

◆ Clear()

static void TaleWorlds.Library.InformationManager.Clear ( )
static

Member Data Documentation

◆ IsAnyInquiryActive

Func<bool> TaleWorlds.Library.InformationManager.IsAnyInquiryActive
static

Event Documentation

◆ DisplayMessageInternal

Action<InformationMessage> TaleWorlds.Library.InformationManager.DisplayMessageInternal
static

◆ ClearAllMessagesInternal

Action TaleWorlds.Library.InformationManager.ClearAllMessagesInternal
static

◆ OnAddSystemNotification

Action<string> TaleWorlds.Library.InformationManager.OnAddSystemNotification
static

◆ OnShowTooltip

Action<Type, object[]> TaleWorlds.Library.InformationManager.OnShowTooltip
static

◆ OnHideTooltip

Action TaleWorlds.Library.InformationManager.OnHideTooltip
static

◆ OnShowInquiry

Action<InquiryData, bool, bool> TaleWorlds.Library.InformationManager.OnShowInquiry
static

◆ OnShowTextInquiry

Action<TextInquiryData, bool, bool> TaleWorlds.Library.InformationManager.OnShowTextInquiry
static

◆ OnHideInquiry

Action TaleWorlds.Library.InformationManager.OnHideInquiry
static