C# Class GHud.DisplayModule

Inheritance: IDisposable
Afficher le fichier Open project: BGog/GHud Class Usage Examples

Méthodes publiques

Свойство 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

Свойство 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[]

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public Activate ( ) : void
Résultat void

CalcColumns() protected méthode

protected CalcColumns ( System font ) : void
font System
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Deactivate() public méthode

public Deactivate ( ) : void
Résultat void

DisplayModule() public méthode

public DisplayModule ( Device argdev ) : System
argdev Device
Résultat System

DisplayModuleName() public méthode

public DisplayModuleName ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FillRectGradient() public méthode

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
Résultat void

ModuleMsg() public méthode

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

Render() public méthode

public Render ( Rectangle rect ) : void
rect System.Drawing.Rectangle
Résultat void

RenderString() protected méthode

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
Résultat void

ResetBackRectBrush() protected méthode

protected ResetBackRectBrush ( ) : void
Résultat void

SetOrbit() public méthode

public SetOrbit ( Orbit argorbit, String obj_name = "Unknown" ) : void
argorbit Orbit
obj_name String
Résultat void

TestRender() public méthode

public TestRender ( Rectangle rect ) : void
rect System.Drawing.Rectangle
Résultat void

Property Details

active public_oe property

public bool active
Résultat bool

back_rect_brush protected_oe property

protected System.Drawing.Drawing2D.LinearGradientBrush back_rect_brush
Résultat System.Drawing.Drawing2D.LinearGradientBrush

back_rect_c1 protected_oe property

protected Color,System.Drawing back_rect_c1
Résultat System.Drawing.Color

back_rect_c2 protected_oe property

protected Color,System.Drawing back_rect_c2
Résultat System.Drawing.Color

companion_mod public_oe property

public DisplayModule,GHud companion_mod
Résultat DisplayModule

curfont protected_oe property

protected Font,System.Drawing curfont
Résultat System.Drawing.Font

dev protected_oe property

protected Device,GHud dev
Résultat Device

fmt_center protected_oe property

protected StringFormat,System.Drawing fmt_center
Résultat System.Drawing.StringFormat

fmt_default protected_oe property

protected StringFormat,System.Drawing fmt_default
Résultat System.Drawing.StringFormat

fmt_left protected_oe property

protected StringFormat,System.Drawing fmt_left
Résultat System.Drawing.StringFormat

fmt_right protected_oe property

protected StringFormat,System.Drawing fmt_right
Résultat System.Drawing.StringFormat

font_pt public_oe property

public float font_pt
Résultat float

height public_oe property

public int height
Résultat int

is_target_type_module public_oe property

public bool is_target_type_module
Résultat bool

line_offset protected_oe property

protected float line_offset
Résultat float

max_lab_width protected_oe property

protected int max_lab_width
Résultat int

max_suffix_width protected_oe property

protected int max_suffix_width
Résultat int

modid public_oe property

public int modid
Résultat int

name public_oe property

public string name
Résultat string

orb_obj_name protected_oe property

protected String orb_obj_name
Résultat String

orbit protected_oe property

protected Orbit orbit
Résultat Orbit

selectable protected_oe property

protected bool selectable
Résultat bool

two_column_labeled_offsets protected_oe property

protected int[] two_column_labeled_offsets
Résultat int[]

two_column_offsets protected_oe property

protected int[] two_column_offsets
Résultat int[]

width public_oe property

public int width
Résultat int

xoff public_oe property

public int xoff
Résultat int

yoff public_oe property

public int yoff
Résultat int