Пример #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();
 }
Пример #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;
 }
Пример #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();
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
        }
Пример #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;
 }
Пример #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;
 }
Пример #10
0
 public UiText(GuiScreen parent, Point location, string text) : base(parent, location, Point.Zero)
 {
     this.location = location;
     this.text     = text;
     this.color    = Color.White;
 }
Пример #11
0
 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;
 }
Пример #12
0
 public ItemImage(GuiScreen parent, Point location, Point size) : base(parent, location, size)
 {
     this.location = location;
     this.size     = size;
     item          = new ItemStack(0, 1);
 }
Пример #13
0
 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);
 }
Пример #14
0
 //Overload
 public UiTextbox(GuiScreen parent, Point location, Point size, string placeholder) : this(parent, location.X, location.Y, size.X, size.Y, placeholder)
 {
 }