Exemple #1
0
 public UiImage(GuiScreen parent, Point location, Point size, Color col) : base(parent, location, size)
 {
     this.location = location;
     this.size     = size;
     imageColor    = col;
     image         = TextureLoader.getWhitePixel();
 }
Exemple #2
0
 public UiImage(GuiScreen parent, Point location, Point size, string ImageResourceLocation, Color col) : base(parent, location, size)
 {
     this.location = location;
     this.size     = size;
     image         = TextureLoader.loadTexture(ImageResourceLocation);
     imageColor    = col;
 }
Exemple #3
0
 public UiImage(GuiScreen parent, int x, int y, int sX, int sY, Color col) : base(parent, x, y, sX, sY)
 {
     location   = new Point(x, y);
     size       = new Point(sX, sY);
     imageColor = col;
     image      = TextureLoader.getWhitePixel();
 }
Exemple #4
0
 public UiButton(GuiScreen parent, string text, Point location, Point size) : base(parent, location, size)
 {
     this.location = location;
     this.size     = size;
     this.text     = text;
     selectable    = true;
 }
Exemple #5
0
 public UiImage(GuiScreen parent, int x, int y, int sX, int sY, string ImageResourceLocation, Color col) : base(parent, x, y, sX, sY)
 {
     location   = new Point(x, y);
     size       = new Point(sX, sY);
     image      = TextureLoader.loadTexture(ImageResourceLocation);
     imageColor = col;
 }
Exemple #6
0
 public UiButton(GuiScreen parent, string text, int x, int y, int sX, int sY) : base(parent, x, y, sX, sY)
 {
     location   = new Point(x, y);
     size       = new Point(sX, sY);
     this.text  = text;
     selectable = true;
 }
Exemple #7
0
        public UiTextbox(GuiScreen parent, int x, int y, int sizeX, int sizeY, string placeholder) : base(parent, x, y, 0, 0)
        {
            location             = new Point(x, y);
            size                 = new Point(sizeX, sizeY);
            rawSize              = new Point(sizeX, sizeY);
            this.placeholderText = placeholder;
            this.text            = "";

            this.textColor        = Color.White;
            this.placeholderColor = Color.Gray;

            selectable = true;
        }
Exemple #8
0
 public UiLangText(GuiScreen parent, Point location, string text, Color color) : base(parent, location, Point.Zero)
 {
     this.location = location;
     this.text     = text;
     this.color    = color;
 }
Exemple #9
0
 public UiLangText(GuiScreen parent, int x, int y, string text, Color color) : base(parent, x, y, 0, 0)
 {
     location   = new Point(x, y);
     this.text  = text;
     this.color = color;
 }
 public UiText(GuiScreen parent, Point location, string text) : base(parent, location, Point.Zero)
 {
     this.location = location;
     this.text     = text;
     this.color    = Color.White;
 }
 public UiText(GuiScreen parent, int x, int y, string text) : base(parent, x, y, 0, 0)
 {
     location   = new Point(x, y);
     this.text  = text;
     this.color = Color.White;
 }
 public ItemImage(GuiScreen parent, Point location, Point size) : base(parent, location, size)
 {
     this.location = location;
     this.size     = size;
     item          = new ItemStack(0, 1);
 }
 public ItemImage(GuiScreen parent, int x, int y, int sX, int sY) : base(parent, x, y, sX, sY)
 {
     location = new Point(x, y);
     size     = new Point(sX, sY);
     item     = new ItemStack(0, 1);
 }
Exemple #14
0
 //Overload
 public UiTextbox(GuiScreen parent, Point location, Point size, string placeholder) : this(parent, location.X, location.Y, size.X, size.Y, placeholder)
 {
 }