Пример #1
0
 public Number(Scene scene, Material[] materials, float left, float top, float height,
               Alignment align, int digitCount, Color color, GameRenderLayer layer = GameRenderLayer.Hud)
 {
     this.scene      = scene;
     this.materials  = materials;
     this.align      = align;
     this.digitCount = digitCount;
     this.layer      = layer;
     this.color      = color;
     digitHeight     = height;
     digitWidth      = height / materials[0].DiffuseMap.PixelSize.AspectRatio;
     this.left       = left;
     this.top        = top;
 }
Пример #2
0
		public Number(Scene scene, Material[] materials, float left, float top, float height,
			Alignment align, int digitCount, Color color, GameRenderLayer layer = GameRenderLayer.Hud)
		{
			this.scene = scene;
			this.materials = materials;
			this.align = align;
			this.digitCount = digitCount;
			this.layer = layer;
			this.color = color;
			digitHeight = height;
			digitWidth = height / materials[0].DiffuseMap.PixelSize.AspectRatio;
			this.left = left;
			this.top = top;
		}
Пример #3
0
 public Number CreateNumber(Scene scene, float left, float top, float height, Alignment align,
                            int digitCount, Color color, GameRenderLayer layer = GameRenderLayer.Hud)
 {
     return(new Number(scene, materials, left, top, height, align, digitCount, color, layer));
 }
Пример #4
0
		public Number CreateNumber(Scene scene, float left, float top, float height, Alignment align,
			int digitCount, Color color, GameRenderLayer layer = GameRenderLayer.Hud)
		{
			return new Number(scene, materials, left, top, height, align, digitCount, color, layer);
		}