Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CurrencyModifierQuery Class Reference

Public Types

enum  TextStyling {
  TextStyling.None, TextStyling.OnGUI, TextStyling.EzGUIRichText, TextStyling.OnGUI_LessIsGood,
  TextStyling.EzGUIRichText_LessIsGood
}
 

Public Member Functions

void AddDelta (Currency c, float val)
 
bool CanAfford (Action< Currency > onInsufficientCurrency=null)
 
bool CanAfford (Currency c)
 
 CurrencyModifierQuery (TransactionReasons reason, float f0, float s0, float r0)
 
string GetCostLine (bool displayInverted=true, bool useCurrencyColors=false, bool useInsufficientCurrencyColors=true, bool includePercentage=false, string seperator=", ")
 
float GetEffectDelta (Currency c)
 
string GetEffectDeltaText (Currency c, string format, TextStyling textStyle=TextStyling.None)
 
string GetEffectPercentageText (Currency c, string format, TextStyling textStyle=TextStyling.None)
 
float GetInput (Currency c)
 
float GetTotal (Currency c)
 

Static Public Member Functions

static CurrencyModifierQuery RunQuery (TransactionReasons reason, float f0, float s0, float r0)
 

Public Attributes

TransactionReasons reason
 

Member Enumeration Documentation

Enumerator
None 
OnGUI 
EzGUIRichText 
OnGUI_LessIsGood 
EzGUIRichText_LessIsGood 

Constructor & Destructor Documentation

CurrencyModifierQuery.CurrencyModifierQuery ( TransactionReasons  reason,
float  f0,
float  s0,
float  r0 
)
inline

Member Function Documentation

void CurrencyModifierQuery.AddDelta ( Currency  c,
float  val 
)
inline
bool CurrencyModifierQuery.CanAfford ( Action< Currency onInsufficientCurrency = null)
inline
bool CurrencyModifierQuery.CanAfford ( Currency  c)
inline
string CurrencyModifierQuery.GetCostLine ( bool  displayInverted = true,
bool  useCurrencyColors = false,
bool  useInsufficientCurrencyColors = true,
bool  includePercentage = false,
string  seperator = ", " 
)
inline
float CurrencyModifierQuery.GetEffectDelta ( Currency  c)
inline
string CurrencyModifierQuery.GetEffectDeltaText ( Currency  c,
string  format,
TextStyling  textStyle = TextStyling.None 
)
inline
string CurrencyModifierQuery.GetEffectPercentageText ( Currency  c,
string  format,
TextStyling  textStyle = TextStyling.None 
)
inline
float CurrencyModifierQuery.GetInput ( Currency  c)
inline
float CurrencyModifierQuery.GetTotal ( Currency  c)
inline
static CurrencyModifierQuery CurrencyModifierQuery.RunQuery ( TransactionReasons  reason,
float  f0,
float  s0,
float  r0 
)
inlinestatic

Member Data Documentation

TransactionReasons CurrencyModifierQuery.reason

The documentation for this class was generated from the following file: