C# Class Terraria.IngameOptions

显示文件 Open project: EmuDevs/EDTerraria Class Usage Examples

Public Properties

Property Type Description
category int
inBar bool
leftHover int
leftScale float[]
noSound bool
notBar bool
oldLeftHover int
oldRightHover int
rightHover int
rightLock int
rightScale float[]
valuePosition Vector2

Public Methods

Method Description
Close ( ) : void
Draw ( Terraria.Main mainInstance, SpriteBatch sb ) : void
DrawLeftSide ( SpriteBatch sb, string txt, int i, Vector2 anchor, Vector2 offset, float scales, float minscale = 0.7f, float maxscale = 0.8f, float scalespeed = 0.01f ) : bool
DrawRightSide ( SpriteBatch sb, string txt, int i, Vector2 anchor, Vector2 offset, float scale, float colorScale, Color over = default(Color) ) : bool
DrawValue ( SpriteBatch sb, string txt, int i, float scale, Color over = default(Color) ) : bool
DrawValueBar ( SpriteBatch sb, float scale, float perc ) : float
MouseOver ( ) : void
Open ( ) : void

Method Details

Close() public static method

public static Close ( ) : void
return void

Draw() public static method

public static Draw ( Terraria.Main mainInstance, SpriteBatch sb ) : void
mainInstance Terraria.Main
sb SpriteBatch
return void

DrawLeftSide() public static method

public static DrawLeftSide ( SpriteBatch sb, string txt, int i, Vector2 anchor, Vector2 offset, float scales, float minscale = 0.7f, float maxscale = 0.8f, float scalespeed = 0.01f ) : bool
sb SpriteBatch
txt string
i int
anchor Vector2
offset Vector2
scales float
minscale float
maxscale float
scalespeed float
return bool

DrawRightSide() public static method

public static DrawRightSide ( SpriteBatch sb, string txt, int i, Vector2 anchor, Vector2 offset, float scale, float colorScale, Color over = default(Color) ) : bool
sb SpriteBatch
txt string
i int
anchor Vector2
offset Vector2
scale float
colorScale float
over Color
return bool

DrawValue() public static method

public static DrawValue ( SpriteBatch sb, string txt, int i, float scale, Color over = default(Color) ) : bool
sb SpriteBatch
txt string
i int
scale float
over Color
return bool

DrawValueBar() public static method

public static DrawValueBar ( SpriteBatch sb, float scale, float perc ) : float
sb SpriteBatch
scale float
perc float
return float

MouseOver() public static method

public static MouseOver ( ) : void
return void

Open() public static method

public static Open ( ) : void
return void

Property Details

category public_oe static_oe property

public static int category
return int

inBar public_oe static_oe property

public static bool inBar
return bool

leftHover public_oe static_oe property

public static int leftHover
return int

leftScale public_oe static_oe property

public static float[] leftScale
return float[]

noSound public_oe static_oe property

public static bool noSound
return bool

notBar public_oe static_oe property

public static bool notBar
return bool

oldLeftHover public_oe static_oe property

public static int oldLeftHover
return int

oldRightHover public_oe static_oe property

public static int oldRightHover
return int

rightHover public_oe static_oe property

public static int rightHover
return int

rightLock public_oe static_oe property

public static int rightLock
return int

rightScale public_oe static_oe property

public static float[] rightScale
return float[]

valuePosition public_oe static_oe property

public static Vector2 valuePosition
return Vector2