C# Class FluffyManager.History

Inheritance: IExposable
ファイルを表示 Open project: FluffierThanThou/RW_Manager Class Usage Examples

Public Properties

Property Type Description
AllowTogglingLegend bool
DefaultLineColor Color
DrawCounts bool
DrawIcons bool
DrawInfoInBar bool
DrawInlineLegend bool
DrawMaxMarkers bool
DrawOptions bool
DrawTargetLine bool
MaxPerChapter bool
Suffix string
periodShown Period
periods Period[]

Public Methods

Method Description
CeilToPrecision ( float x, int precision = 1 ) : int

Round up to given precision

DrawDetailedLegend ( Rect canvas, Vector2 &scrollPos, int max, bool positiveOnly = false, bool negativeOnly = false ) : void
DrawPlot ( Rect rect, int target, string label = "", bool positiveOnly = false, bool negativeOnly = false ) : void
ExposeData ( ) : void
FormatCount ( float x, int unit = 1000, string suffixes = null ) : string
History ( ) : System
History ( ThingCount thingCounts, Color colors = null ) : System
History ( string labels, Color colors = null ) : System
Interval ( Period period ) : int
Update ( ) : void
UpdateMax ( ) : void
UpdateThingCountAndMax ( int counts, int maxes ) : void
UpdateThingCounts ( ) : void

Method Details

CeilToPrecision() public method

Round up to given precision
public CeilToPrecision ( float x, int precision = 1 ) : int
x float input
precision int number of digits to preserve past the magnitude, should be equal to or greater than zero.
return int

DrawDetailedLegend() public method

public DrawDetailedLegend ( Rect canvas, Vector2 &scrollPos, int max, bool positiveOnly = false, bool negativeOnly = false ) : void
canvas UnityEngine.Rect
scrollPos Vector2
max int
positiveOnly bool
negativeOnly bool
return void

DrawPlot() public method

public DrawPlot ( Rect rect, int target, string label = "", bool positiveOnly = false, bool negativeOnly = false ) : void
rect UnityEngine.Rect
target int
label string
positiveOnly bool
negativeOnly bool
return void

ExposeData() public method

public ExposeData ( ) : void
return void

FormatCount() public method

public FormatCount ( float x, int unit = 1000, string suffixes = null ) : string
x float
unit int
suffixes string
return string

History() public method

public History ( ) : System
return System

History() public method

public History ( ThingCount thingCounts, Color colors = null ) : System
thingCounts ThingCount
colors Color
return System

History() public method

public History ( string labels, Color colors = null ) : System
labels string
colors Color
return System

Interval() public static method

public static Interval ( Period period ) : int
period Period
return int

Update() public method

public Update ( ) : void
return void

UpdateMax() public method

public UpdateMax ( ) : void
return void

UpdateThingCountAndMax() public method

public UpdateThingCountAndMax ( int counts, int maxes ) : void
counts int
maxes int
return void

UpdateThingCounts() public method

public UpdateThingCounts ( ) : void
return void

Property Details

AllowTogglingLegend public_oe property

public bool AllowTogglingLegend
return bool

DefaultLineColor public_oe static_oe property

public static Color DefaultLineColor
return Color

DrawCounts public_oe property

public bool DrawCounts
return bool

DrawIcons public_oe property

public bool DrawIcons
return bool

DrawInfoInBar public_oe property

public bool DrawInfoInBar
return bool

DrawInlineLegend public_oe property

public bool DrawInlineLegend
return bool

DrawMaxMarkers public_oe property

public bool DrawMaxMarkers
return bool

DrawOptions public_oe property

public bool DrawOptions
return bool

DrawTargetLine public_oe property

public bool DrawTargetLine
return bool

MaxPerChapter public_oe property

public bool MaxPerChapter
return bool

Suffix public_oe property

public string Suffix
return string

periodShown public_oe property

public Period periodShown
return Period

periods public_oe static_oe property

public static Period[] periods
return Period[]