C# Class GHud.DisplayModule

Inheritance: IDisposable
Datei anzeigen Open project: BGog/GHud Class Usage Examples

Public Properties

Property Type Description
active bool
companion_mod DisplayModule
font_pt float
height int
is_target_type_module bool
modid int
name string
width int
xoff int
yoff int

Protected Properties

Property Type Description
back_rect_brush System.Drawing.Drawing2D.LinearGradientBrush
back_rect_c1 System.Drawing.Color
back_rect_c2 System.Drawing.Color
curfont System.Drawing.Font
dev Device
fmt_center System.Drawing.StringFormat
fmt_default System.Drawing.StringFormat
fmt_left System.Drawing.StringFormat
fmt_right System.Drawing.StringFormat
line_offset float
max_lab_width int
max_suffix_width int
orb_obj_name String
orbit Orbit
selectable bool
two_column_labeled_offsets int[]
two_column_offsets int[]

Public Methods

Method Description
Activate ( ) : void
Clear ( ) : void
Deactivate ( ) : void
DisplayModule ( Device argdev ) : System
DisplayModuleName ( ) : void
Dispose ( ) : void
FillRectGradient ( Rectangle rect, float pct1, Color c1, Color c2, float pct2, Color c3, Color c4 ) : void
ModuleMsg ( String msg, Rectangle rect, bool invert = false ) : void
Render ( Rectangle rect ) : void
SetOrbit ( Orbit argorbit, String obj_name = "Unknown" ) : void
TestRender ( Rectangle rect ) : void

Protected Methods

Method Description
CalcColumns ( System font ) : void
RenderString ( String str, int line, int column, int &c_offsets, StringFormat fmt, System style = System.Drawing.FontStyle.Regular, bool back_rect = false, float cur_font_pt = 0.0f, float xoffset = 0.0f, float yoffset = 0.0f ) : void
ResetBackRectBrush ( ) : void

Method Details

Activate() public method

public Activate ( ) : void
return void

CalcColumns() protected method

protected CalcColumns ( System font ) : void
font System
return void

Clear() public method

public Clear ( ) : void
return void

Deactivate() public method

public Deactivate ( ) : void
return void

DisplayModule() public method

public DisplayModule ( Device argdev ) : System
argdev Device
return System

DisplayModuleName() public method

public DisplayModuleName ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

FillRectGradient() public method

public FillRectGradient ( Rectangle rect, float pct1, Color c1, Color c2, float pct2, Color c3, Color c4 ) : void
rect System.Drawing.Rectangle
pct1 float
c1 Color
c2 Color
pct2 float
c3 Color
c4 Color
return void

ModuleMsg() public method

public ModuleMsg ( String msg, Rectangle rect, bool invert = false ) : void
msg String
rect System.Drawing.Rectangle
invert bool
return void

Render() public method

public Render ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

RenderString() protected method

protected RenderString ( String str, int line, int column, int &c_offsets, StringFormat fmt, System style = System.Drawing.FontStyle.Regular, bool back_rect = false, float cur_font_pt = 0.0f, float xoffset = 0.0f, float yoffset = 0.0f ) : void
str String
line int
column int
c_offsets int
fmt System.Drawing.StringFormat
style System
back_rect bool
cur_font_pt float
xoffset float
yoffset float
return void

ResetBackRectBrush() protected method

protected ResetBackRectBrush ( ) : void
return void

SetOrbit() public method

public SetOrbit ( Orbit argorbit, String obj_name = "Unknown" ) : void
argorbit Orbit
obj_name String
return void

TestRender() public method

public TestRender ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

Property Details

active public_oe property

public bool active
return bool

back_rect_brush protected_oe property

protected System.Drawing.Drawing2D.LinearGradientBrush back_rect_brush
return System.Drawing.Drawing2D.LinearGradientBrush

back_rect_c1 protected_oe property

protected Color,System.Drawing back_rect_c1
return System.Drawing.Color

back_rect_c2 protected_oe property

protected Color,System.Drawing back_rect_c2
return System.Drawing.Color

companion_mod public_oe property

public DisplayModule,GHud companion_mod
return DisplayModule

curfont protected_oe property

protected Font,System.Drawing curfont
return System.Drawing.Font

dev protected_oe property

protected Device,GHud dev
return Device

fmt_center protected_oe property

protected StringFormat,System.Drawing fmt_center
return System.Drawing.StringFormat

fmt_default protected_oe property

protected StringFormat,System.Drawing fmt_default
return System.Drawing.StringFormat

fmt_left protected_oe property

protected StringFormat,System.Drawing fmt_left
return System.Drawing.StringFormat

fmt_right protected_oe property

protected StringFormat,System.Drawing fmt_right
return System.Drawing.StringFormat

font_pt public_oe property

public float font_pt
return float

height public_oe property

public int height
return int

is_target_type_module public_oe property

public bool is_target_type_module
return bool

line_offset protected_oe property

protected float line_offset
return float

max_lab_width protected_oe property

protected int max_lab_width
return int

max_suffix_width protected_oe property

protected int max_suffix_width
return int

modid public_oe property

public int modid
return int

name public_oe property

public string name
return string

orb_obj_name protected_oe property

protected String orb_obj_name
return String

orbit protected_oe property

protected Orbit orbit
return Orbit

selectable protected_oe property

protected bool selectable
return bool

two_column_labeled_offsets protected_oe property

protected int[] two_column_labeled_offsets
return int[]

two_column_offsets protected_oe property

protected int[] two_column_offsets
return int[]

width public_oe property

public int width
return int

xoff public_oe property

public int xoff
return int

yoff public_oe property

public int yoff
return int