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(); }
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; }
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(); }
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; }
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; }
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; }
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; }
public UiLangText(GuiScreen parent, Point location, string text, Color color) : base(parent, location, Point.Zero) { this.location = location; this.text = text; this.color = color; }
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); }
//Overload public UiTextbox(GuiScreen parent, Point location, Point size, string placeholder) : this(parent, location.X, location.Y, size.X, size.Y, placeholder) { }