M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
|
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 | RegisterTooltip< TRegistered, TTooltip > (Action< TTooltip, object[]> onRefreshData, string movieName) |
Register a given type to a tooltip type. When the given type is used with the ShowTooltip method, an object of the tooltip type will be instantiated and used as a datasource to the movie with the given movieName. | |
static void | UnregisterTooltip< TRegistered > () |
Unregister a previously registered tooltip. | |
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. | |
Properties | |
static IReadOnlyDictionary< Type,(Type tooltipType, object onRefreshData, string movieName)> | RegisteredTypes [get] |
Events | |
static Action< InformationMessage > | DisplayMessageInternal |
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 |
|
static |
message | Parameters of the message. |
|
static |
message | Parameters of the message. |
|
static |
message | Main message/text of the system notification. |
|
static |
type | Type that is associated with a tooltip. |
args | Arguments that will be used by the tooltip. |
|
static |
|
static |
data | Parameters of the inquiry. |
pauseGameActiveState | Pauses the game's current active state while the inquiry is active. |
prioritize | Determines if the new query should be shown immediately if another query is active. |
|
static |
textData | Parameters of the inquiry. |
pauseGameActiveState | Pauses the game's current active state while the inquiry is active. |
prioritize | Determines if the new query should be shown immediately if another query is active. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
TRegistered | Registered type |
TTooltip | Tooltip type |
onRefreshData | A method that is used to refresh the tooltip data |
movieName | Name of the movie to be used with the given tooltip type |
TTooltip | : | TooltipBaseVM |
|
static |
TRegistered | Registered type |
|
static |
|
static |
|
staticget |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |