M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.ItemMenuTooltipPropertyVM Class Reference

Inherits TaleWorlds.Core.ViewModelCollection.Information.TooltipProperty.

Public Member Functions

 ItemMenuTooltipPropertyVM ()
 
 ItemMenuTooltipPropertyVM (string definition, string value, int textHeight, bool onlyShowWhenExtended=false, HintViewModel propertyHint=null)
 
 ItemMenuTooltipPropertyVM (string definition, Func< string > _valueFunc, int textHeight, bool onlyShowWhenExtended=false, HintViewModel propertyHint=null)
 
 ItemMenuTooltipPropertyVM (Func< string > _definitionFunc, Func< string > _valueFunc, int textHeight, bool onlyShowWhenExtended=false, HintViewModel propertyHint=null)
 
 ItemMenuTooltipPropertyVM (Func< string > _definitionFunc, Func< string > _valueFunc, object[] valueArgs, int textHeight, bool onlyShowWhenExtended=false, HintViewModel propertyHint=null)
 
 ItemMenuTooltipPropertyVM (string definition, string value, int textHeight, Library.Color color, bool onlyShowWhenExtended=false, HintViewModel propertyHint=null, TooltipPropertyFlags propertyFlags=TooltipPropertyFlags.None)
 
 ItemMenuTooltipPropertyVM (string definition, Func< string > _valueFunc, int textHeight, Library.Color color, bool onlyShowWhenExtended=false, HintViewModel propertyHint=null)
 
 ItemMenuTooltipPropertyVM (Func< string > _definitionFunc, Func< string > _valueFunc, int textHeight, Library.Color color, bool onlyShowWhenExtended=false, HintViewModel propertyHint=null)
 
 ItemMenuTooltipPropertyVM (TooltipProperty property, HintViewModel propertyHint=null)
 
- Public Member Functions inherited from TaleWorlds.Core.ViewModelCollection.Information.TooltipProperty
 TooltipProperty ()
 
void RefreshValue ()
 
void RefreshDefinition ()
 
 TooltipProperty (string definition, string value, int textHeight, bool onlyShowWhenExtended=false, TooltipPropertyFlags modifier=TooltipPropertyFlags.None)
 
 TooltipProperty (string definition, Func< string > _valueFunc, int textHeight, bool onlyShowWhenExtended=false, TooltipPropertyFlags modifier=TooltipPropertyFlags.None)
 
 TooltipProperty (Func< string > _definitionFunc, Func< string > _valueFunc, int textHeight, bool onlyShowWhenExtended=false, TooltipPropertyFlags modifier=TooltipPropertyFlags.None)
 
 TooltipProperty (Func< string > _definitionFunc, Func< string > _valueFunc, object[] valueArgs, int textHeight, bool onlyShowWhenExtended=false, TooltipPropertyFlags modifier=TooltipPropertyFlags.None)
 
 TooltipProperty (string definition, string value, int textHeight, Color color, bool onlyShowWhenExtended=false, TooltipPropertyFlags modifier=TooltipPropertyFlags.None)
 
 TooltipProperty (string definition, Func< string > _valueFunc, int textHeight, Color color, bool onlyShowWhenExtended=false, TooltipPropertyFlags modifier=TooltipPropertyFlags.None)
 
 TooltipProperty (Func< string > _definitionFunc, Func< string > _valueFunc, int textHeight, Color color, bool onlyShowWhenExtended=false, TooltipPropertyFlags modifier=TooltipPropertyFlags.None)
 
 TooltipProperty (TooltipProperty property)
 
void DeserializeFrom (IReader reader)
 
void SerializeTo (IWriter writer)
 
- Public Member Functions inherited from TaleWorlds.Library.ViewModel
void OnPropertyChanged ([CallerMemberName] string propertyName=null)
 Method for notifying binded views about the changes in a property. Uses reflection to get the value of the property. If reflection is not needed or updated value of the property is already known, use OnPropertyChangedWithValue() instead.
 
void OnPropertyChangedWithValue< T > (T value, [CallerMemberName]string propertyName=null)
 Faster method for notifying binded views about the changes in a property. To avoid reflection, caller can pass changed value to this method. If caller does not have access rights to the value, use OnPropertyChanged() instead.
 
void OnPropertyChangedWithValue (bool value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (int value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (float value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (uint value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (Color value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (double value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (Vec2 value, [CallerMemberName] string propertyName=null)
 
object GetViewModelAtPath (BindingPath path, bool isList)
 
object GetViewModelAtPath (BindingPath path)
 
object GetPropertyValue (string name, PropertyTypeFeeder propertyTypeFeeder)
 
object GetPropertyValue (string name)
 
Type GetPropertyType (string name)
 
void SetPropertyValue (string name, object value)
 
virtual void OnFinalize ()
 
void ExecuteCommand (string commandName, object[] parameters)
 
virtual void RefreshValues ()
 Used for updating localized texts.
 
object GetViewModelAtPath (BindingPath path)
 
object GetViewModelAtPath (BindingPath path, bool isList)
 
object GetPropertyValue (string name)
 
object GetPropertyValue (string name, PropertyTypeFeeder propertyTypeFeeder)
 
void SetPropertyValue (string name, object value)
 
void ExecuteCommand (string commandName, object[] parameters)
 
void DeserializeFrom (IReader reader)
 
void SerializeTo (IWriter writer)
 

Properties

HintViewModel PropertyHint [get, set]
 
- Properties inherited from TaleWorlds.Core.ViewModelCollection.Information.TooltipProperty
bool OnlyShowWhenExtended = false [get, set]
 This is for using Alt(Extend) behavior for Custom Tooltips. Should not be used for anything else.
 
bool OnlyShowWhenNotExtended = false [get, set]
 This is for using Alt(Extend) behavior for Custom Tooltips. Should not be used for anything else.
 
int TextHeight [get, set]
 
Color TextColor [get, set]
 
string DefinitionLabel [get, set]
 
string ValueLabel [get, set]
 
int PropertyModifier [get, set]
 
- Properties inherited from TaleWorlds.Library.ViewModel
PropertyChangedEventHandler PropertyChanged
 
PropertyChangedWithValueEventHandler PropertyChangedWithValue
 
PropertyChangedWithBoolValueEventHandler PropertyChangedWithBoolValue
 
PropertyChangedWithIntValueEventHandler PropertyChangedWithIntValue
 
PropertyChangedWithFloatValueEventHandler PropertyChangedWithFloatValue
 
PropertyChangedWithUIntValueEventHandler PropertyChangedWithUIntValue
 
PropertyChangedWithColorValueEventHandler PropertyChangedWithColorValue
 
PropertyChangedWithDoubleValueEventHandler PropertyChangedWithDoubleValue
 
PropertyChangedWithVec2ValueEventHandler PropertyChangedWithVec2Value
 

Additional Inherited Members

- Public Types inherited from TaleWorlds.Core.ViewModelCollection.Information.TooltipProperty
enum  TooltipPropertyFlags {
  None = 0 ,
  MultiLine = 1 ,
  BattleMode = 2 ,
  BattleModeOver = 4 ,
  WarFirstEnemy = 8 ,
  WarFirstAlly = 16 ,
  WarFirstNeutral = 32 ,
  WarSecondEnemy = 64 ,
  WarSecondAlly = 128 ,
  WarSecondNeutral = 256 ,
  RundownSeperator = 512 ,
  DefaultSeperator = 1024 ,
  Cost = 2048 ,
  Title = 4096 ,
  RundownResult = 8192
}
 
- Static Public Member Functions inherited from TaleWorlds.Library.ViewModel
static void CollectPropertiesAndMethods ()
 
- Static Public Attributes inherited from TaleWorlds.Library.ViewModel
static bool UIDebugMode
 
- Protected Member Functions inherited from TaleWorlds.Library.ViewModel
 ViewModel ()
 
bool SetField< T > (ref T field, T value, string propertyName)
 
- Events inherited from TaleWorlds.Library.IViewModel
PropertyChangedWithValueEventHandler PropertyChangedWithValue
 
PropertyChangedWithBoolValueEventHandler PropertyChangedWithBoolValue
 
PropertyChangedWithIntValueEventHandler PropertyChangedWithIntValue
 
PropertyChangedWithFloatValueEventHandler PropertyChangedWithFloatValue
 
PropertyChangedWithUIntValueEventHandler PropertyChangedWithUIntValue
 
PropertyChangedWithColorValueEventHandler PropertyChangedWithColorValue
 
PropertyChangedWithDoubleValueEventHandler PropertyChangedWithDoubleValue
 
PropertyChangedWithVec2ValueEventHandler PropertyChangedWithVec2Value
 

Constructor & Destructor Documentation

◆ ItemMenuTooltipPropertyVM() [1/9]

TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.ItemMenuTooltipPropertyVM.ItemMenuTooltipPropertyVM ( )

◆ ItemMenuTooltipPropertyVM() [2/9]

TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.ItemMenuTooltipPropertyVM.ItemMenuTooltipPropertyVM ( string  definition,
string  value,
int  textHeight,
bool  onlyShowWhenExtended = false,
HintViewModel  propertyHint = null 
)

◆ ItemMenuTooltipPropertyVM() [3/9]

TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.ItemMenuTooltipPropertyVM.ItemMenuTooltipPropertyVM ( string  definition,
Func< string >  _valueFunc,
int  textHeight,
bool  onlyShowWhenExtended = false,
HintViewModel  propertyHint = null 
)

◆ ItemMenuTooltipPropertyVM() [4/9]

TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.ItemMenuTooltipPropertyVM.ItemMenuTooltipPropertyVM ( Func< string >  _definitionFunc,
Func< string >  _valueFunc,
int  textHeight,
bool  onlyShowWhenExtended = false,
HintViewModel  propertyHint = null 
)

◆ ItemMenuTooltipPropertyVM() [5/9]

TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.ItemMenuTooltipPropertyVM.ItemMenuTooltipPropertyVM ( Func< string >  _definitionFunc,
Func< string >  _valueFunc,
object[]  valueArgs,
int  textHeight,
bool  onlyShowWhenExtended = false,
HintViewModel  propertyHint = null 
)

◆ ItemMenuTooltipPropertyVM() [6/9]

TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.ItemMenuTooltipPropertyVM.ItemMenuTooltipPropertyVM ( string  definition,
string  value,
int  textHeight,
Library::Color  color,
bool  onlyShowWhenExtended = false,
HintViewModel  propertyHint = null,
TooltipPropertyFlags  propertyFlags = TooltipPropertyFlags::None 
)

◆ ItemMenuTooltipPropertyVM() [7/9]

TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.ItemMenuTooltipPropertyVM.ItemMenuTooltipPropertyVM ( string  definition,
Func< string >  _valueFunc,
int  textHeight,
Library::Color  color,
bool  onlyShowWhenExtended = false,
HintViewModel  propertyHint = null 
)

◆ ItemMenuTooltipPropertyVM() [8/9]

TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.ItemMenuTooltipPropertyVM.ItemMenuTooltipPropertyVM ( Func< string >  _definitionFunc,
Func< string >  _valueFunc,
int  textHeight,
Library::Color  color,
bool  onlyShowWhenExtended = false,
HintViewModel  propertyHint = null 
)

◆ ItemMenuTooltipPropertyVM() [9/9]

TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.ItemMenuTooltipPropertyVM.ItemMenuTooltipPropertyVM ( TooltipProperty  property,
HintViewModel  propertyHint = null 
)

Property Documentation

◆ PropertyHint

HintViewModel TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.ItemMenuTooltipPropertyVM.PropertyHint
getset