mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-10-12 07:41:13 -04:00
34 lines
872 B
C#
34 lines
872 B
C#
using System;
|
|
using System.Drawing;
|
|
using ClassicalSharp.GraphicsAPI;
|
|
|
|
namespace ClassicalSharp {
|
|
|
|
public struct DrawTextArgs {
|
|
|
|
public Color TextColour;
|
|
public string Text;
|
|
|
|
public bool UseShadow;
|
|
public Color ShadowColour;
|
|
public IGraphicsApi Graphics;
|
|
internal bool SkipPartsCheck;
|
|
|
|
public DrawTextArgs( IGraphicsApi graphics, string text, Color col, bool useShadow ) :
|
|
this( graphics, text, col, useShadow, Color.Black ) {
|
|
}
|
|
|
|
public DrawTextArgs( IGraphicsApi graphics, string text, bool useShadow ) :
|
|
this( graphics, text, Color.White, useShadow, Color.Black ) {
|
|
}
|
|
|
|
public DrawTextArgs( IGraphicsApi graphics, string text, Color col, bool useShadow, Color shadowCol ) {
|
|
Graphics = graphics;
|
|
Text = text;
|
|
TextColour = col;
|
|
UseShadow = useShadow;
|
|
ShadowColour = shadowCol;
|
|
SkipPartsCheck = false;
|
|
}
|
|
}
|
|
} |