Class InGameHint
An in-game hint is a tutorial notification that can display with a given Condition, or that can be caused to be displayed manually using Display(). Each in-game hint is only displayed once, unless the list of displayed hints is reset in the Options.
public class InGameHint
- Inheritance
-
InGameHint
- Inherited Members
- Extension Methods
Constructors
InGameHint(string, TextureRegion, bool, Func<GameImpl, bool>, Action<CoveringGroup, Panel>)
Creates a new hint with the given settings
public InGameHint(string name, TextureRegion icon, bool important, Func<GameImpl, bool> condition = null, Action<CoveringGroup, Panel> additionalContent = null)
Parameters
namestringThe name of the hint
iconTextureRegionThe icon of this hint
importantboolWhether this hint is considered important.
conditionFunc<GameImpl, bool>An optional condition to cause this hint to be displayed
additionalContentAction<CoveringGroup, Panel>A function that can optionally add additional content to the hint's MLEM.Ui.Elements.Panel.
Fields
AdditionalContent
A function that can optionally add additional content to the hint's MLEM.Ui.Elements.Panel.
public readonly Action<CoveringGroup, Panel> AdditionalContent
Field Value
- Action<CoveringGroup, Panel>
ClothesIntentions
public static readonly InGameHint ClothesIntentions
Field Value
Condition
An optional condition that causes this hint to be displayed
public readonly Func<GameImpl, bool> Condition
Field Value
DeathEmotions
public static readonly InGameHint DeathEmotions
Field Value
EmotionInfluences
public static readonly InGameHint EmotionInfluences
Field Value
Hints
The registry for all InGameHint values. Use Register(InGameHint) to add to this list.
public static readonly ReadOnlyDictionary<string, InGameHint> Hints
Field Value
Icon
The icon of this hint.
public readonly TextureRegion Icon
Field Value
- TextureRegion
Important
Whether this hint is considered important.
public readonly bool Important
Field Value
InteractionPages
public static readonly InGameHint InteractionPages
Field Value
Interactions
public static readonly InGameHint Interactions
Field Value
Introduction
public static readonly InGameHint Introduction
Field Value
LotEmployments
public static readonly InGameHint LotEmployments
Field Value
MultiMaps
public static readonly InGameHint MultiMaps
Field Value
Name
The name of this hint
public readonly string Name
Field Value
OutOfTownActions
public static readonly InGameHint OutOfTownActions
Field Value
Outfits
public static readonly InGameHint Outfits
Field Value
PersonalityTypes
public static readonly InGameHint PersonalityTypes
Field Value
Properties
HasBeenDisplayed
A property that determines whether this hint has already been displayed
public bool HasBeenDisplayed { get; }
Property Value
Methods
Display()
Displays this hint as a Notifications panel and adds it to the list of already displayed hints in the Options
public void Display()
Register(InGameHint)
Registers the given hint to the Hints registry
public static InGameHint Register(InGameHint hint)
Parameters
hintInGameHintThe hint to register
Returns
- InGameHint
The hint passed, for chaining