C# Class GiddyUpCore.Utilities.DrawUtility

Show file Open project: rheirman/GiddyUpCore

Public Methods

Method Description
CustomDrawer_Filter ( Rect rect, SettingHandle slider, bool def_isPercentage, float def_min, float def_max, Color background ) : bool
CustomDrawer_MatchingAnimals_active ( Rect wholeRect, SettingHandle setting, List allAnimals, SettingHandle filter = null, string yesText = "Is a mount", string noText = "Is not a mount" ) : bool
CustomDrawer_Tabs ( Rect rect, SettingHandle selected, Array defaultValues ) : bool
filterAnimals ( SettingHandle &setting, List allAnimals, SettingHandle filter = null ) : void

Private Methods

Method Description
DrawLabel ( string labelText, Rect textRect, float offset ) : void
DrawTileForAnimal ( KeyValuePair Animal, Rect contentRect, Vector2 iconOffset, int buttonID ) : bool
addNewAnimal ( ThingDef animal, Dictionary selection, bool shouldSelect, String settingName ) : void
drawBackground ( Rect rect, Color background ) : void
getColor ( ThingDef Animal ) : Color

Method Details

CustomDrawer_Filter() public static method

public static CustomDrawer_Filter ( Rect rect, SettingHandle slider, bool def_isPercentage, float def_min, float def_max, Color background ) : bool
rect Rect
slider SettingHandle
def_isPercentage bool
def_min float
def_max float
background Color
return bool

CustomDrawer_MatchingAnimals_active() public static method

public static CustomDrawer_MatchingAnimals_active ( Rect wholeRect, SettingHandle setting, List allAnimals, SettingHandle filter = null, string yesText = "Is a mount", string noText = "Is not a mount" ) : bool
wholeRect Rect
setting SettingHandle
allAnimals List
filter SettingHandle
yesText string
noText string
return bool

CustomDrawer_Tabs() public static method

public static CustomDrawer_Tabs ( Rect rect, SettingHandle selected, Array defaultValues ) : bool
rect Rect
selected SettingHandle
defaultValues Array
return bool

filterAnimals() public static method

public static filterAnimals ( SettingHandle &setting, List allAnimals, SettingHandle filter = null ) : void
setting SettingHandle
allAnimals List
filter SettingHandle
return void