C# 클래스 GiddyUpCore.Utilities.DrawUtility

파일 보기 프로젝트 열기: rheirman/GiddyUpCore

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CustomDrawer_Filter() 공개 정적인 메소드

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
리턴 bool

CustomDrawer_MatchingAnimals_active() 공개 정적인 메소드

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
리턴 bool

CustomDrawer_Tabs() 공개 정적인 메소드

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

filterAnimals() 공개 정적인 메소드

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