Beispiel #1
0
 public static void Draw(Gfx2D gfx, params Color[] cs)
 {
     for (int i = 0; i < cs.Length; i++)
     {
         Draw(gfx, cs[i]);
     }
 }
Beispiel #2
0
 public VolumeBar(Gfx2D line, string WheelSpriteName, int BarSize, Action <float> scrollAction)
 {
     Line         = line;
     Interval     = Line.Bound.Width - BarSize;
     ScrollAction = scrollAction;
     Wheel        = new Gfx2D(WheelSpriteName, new Rectangle(new REMOPoint(Line.Pos.X + Interval, Line.Pos.Y), new REMOPoint(BarSize, Line.Bound.Height)));
 }
Beispiel #3
0
 public CheckBox(int size, string description, REMOPoint pos)
 {
     Box         = new Gfx2D("Box", new Rectangle(pos.X, pos.Y, size * 2, size * 2));
     Description = new GfxStr(size, description, pos + new REMOPoint(size * 2 + size / 2, size / 4));
 }
Beispiel #4
0
 public SimpleGauge(Gfx2D gaugeGraphic)
 {
     Graphic  = gaugeGraphic;
     MaxBound = Graphic.Bound;
 }
Beispiel #5
0
        public static void DrawFullScreen(string SpriteName, Color c)
        {
            Gfx2D g = new Gfx2D(SpriteName, FullScreen);

            g.Draw(c);
        }
Beispiel #6
0
 public static void Vignette(Rectangle Bound, float opacity)
 {
     Lighter = new Gfx2D("Light", Bound);
     Lighter.Draw(Color.White * opacity);
 }
Beispiel #7
0
 public static void Absolute(Rectangle Bound, Color c)
 {
     Lighter = new Gfx2D("WhiteSpace", Bound);
     Lighter.Draw(c);
 }
Beispiel #8
0
 public static void Draw(Gfx2D gfx, Color c) => spriteBatch.Draw(gfx.Texture, new Rectangle(new REMOPoint(gfx.Pos.X + (gfx.ROrigin.X * gfx.Bound.Width) / gfx.Texture.Width, gfx.Pos.Y + (gfx.ROrigin.Y * gfx.Bound.Height) / gfx.Texture.Height), gfx.Bound.Size), null, c, gfx.Rotate, gfx.ROrigin, SpriteEffects.None, 0);
Beispiel #9
0
 public static void Draw(Gfx2D gfx) => Draw(gfx, Color.White);