Example #1
0
 /// <summary>
 /// Create a radio button
 /// </summary>
 public RadioButton(Vector2 position, Vector2 dimensions, string content, bool relative = false, GuiElement parent = null)
     : this(MtaClient.GuiCreateRadioButton(position.X, position.Y, dimensions.X, dimensions.Y, content, relative, parent?.MTAElement))
 {
 }
Example #2
0
 /// <summary>
 /// Create a new gridlist
 /// </summary>
 public GridList(Vector2 position, Vector2 dimensions, bool relative = false, GuiElement parent = null)
     : this(MtaClient.GuiCreateGridList(position.X, position.Y, dimensions.X, dimensions.Y, relative, parent?.MTAElement))
 {
 }
Example #3
0
 /// <summary>
 /// Create a new GUI browser
 /// </summary>
 public GuiBrowser(Vector2 position, float width, float height, bool isLocal, bool isTransparent, bool relative = false, GuiElement parent = null)
     : this(MtaClient.GuiCreateBrowser(position.X, position.Y, width, height, isLocal, isTransparent, relative, parent?.MTAElement))
 {
     browser = new Browser(MtaClient.GuiGetBrowser(element));
 }
Example #4
0
 /// <summary>
 /// Create a new combo box
 /// </summary>
 public ComboBox(Vector2 position, Vector2 dimensions, string caption, bool relative = false, GuiElement parent = null)
     : this(MtaClient.GuiCreateComboBox(position.X, position.Y, dimensions.X, dimensions.Y, caption, relative, parent?.MTAElement))
 {
 }
Example #5
0
 /// <summary>
 /// Create a new edit
 /// </summary>
 public Edit(Vector2 position, Vector2 dimensions, string defaultContent, bool relative = false, GuiElement parent = null, bool masked = false, int maxLength = 128)
     : this(MtaClient.GuiCreateEdit(position.X, position.Y, dimensions.X, dimensions.Y, defaultContent, relative, parent?.MTAElement))
 {
     Masked    = masked;
     MaxLength = maxLength;
 }
Example #6
0
 /// <summary>
 /// Create a static image
 /// </summary>
 public StaticImage(Vector2 position, Vector2 dimensions, string filePath, bool relative = false, GuiElement parent = null)
     : this(MtaClient.GuiCreateStaticImage(position.X, position.Y, dimensions.X, dimensions.Y, filePath, relative, parent?.MTAElement))
 {
 }
Example #7
0
 /// <summary>
 /// Create a scroll bar
 /// </summary>
 public ScrollBar(Vector2 position, Vector2 dimensions, bool horizontal, bool relative = false, GuiElement parent = null)
     : this(MtaClient.GuiCreateScrollBar(position.X, position.Y, dimensions.X, dimensions.Y, horizontal, relative, parent?.MTAElement))
 {
 }
Example #8
0
 /// <summary>
 /// Create a new checkbox
 /// </summary>
 public CheckBox(Vector2 position, Vector2 dimensions, string content, bool selected = false, bool relative = false, GuiElement parent = null)
     : this(MtaClient.GuiCreateCheckBox(position.X, position.Y, dimensions.X, dimensions.Y, content, selected, relative, parent?.MTAElement))
 {
 }
Example #9
0
 /// <summary>
 /// Create a new memo
 /// </summary>
 public Memo(Vector2 position, Vector2 dimensions, string defaultText, bool relative = false, GuiElement parent = null)
     : this(MtaClient.GuiCreateMemo(position.X, position.Y, dimensions.X, dimensions.Y, defaultText, relative, parent?.MTAElement))
 {
 }