C# Class Terraria.IngameOptions

Show file 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 static property

public static int category
return int

inBar public static property

public static bool inBar
return bool

leftHover public static property

public static int leftHover
return int

leftScale public static property

public static float[] leftScale
return float[]

noSound public static property

public static bool noSound
return bool

notBar public static property

public static bool notBar
return bool

oldLeftHover public static property

public static int oldLeftHover
return int

oldRightHover public static property

public static int oldRightHover
return int

rightHover public static property

public static int rightHover
return int

rightLock public static property

public static int rightLock
return int

rightScale public static property

public static float[] rightScale
return float[]

valuePosition public static property

public static Vector2 valuePosition
return Vector2