Dgs-dxradiobutton

From Multi Theft Auto: Wiki
Revision as of 15:27, 1 October 2019 by Thisdp (talk | contribs) (Created page with "DGS Properties is always used to change the gui style and make it more fantastic. This page shows the properties of dgs-dxradiobutton that you could use. ==Main Func...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DGS Properties is always used to change the gui style and make it more fantastic.

This page shows the properties of dgs-dxradiobutton that you could use.

Main Functions

Properties

alignment

Alignment of the text within the radiobutton.

The functions as follows are basic on this property.

dgsRadioButtonSetHorizontalAlign/dgsRadioButtonGetHorizontalAlign

dgsRadioButtonSetVerticalAlign/dgsRadioButtonGetVerticalAlign

dgsSetProperty(checkbx,"alignment",{alignX,alignY})
  • alignX: Horizontal alignment of the text within the radiobutton. Can be "left", "center" or "right".
  • alignY: Vertical alignment of the text within the radiobutton. Can be "top", "center" or "bottom".

clip

Whether the clip property is enabled or not. Learn More dxDrawText

dgsSetProperty(radiobutton,"clip",clip)
  • clip: If set to true, the parts of the text that don't fit within the bounding box will be cut off.

color_f

This property determines the color of the icon under 3 conditions when the radio button is unchecked.

dgsSetProperty(radiobutton,"color_f",{ColorNormal,ColorHover,ColorClick})
  • ColorNormal: An integer of the color of the icon under normal state. (unchecked)
  • ColorHover: An integer of the color of the icon under hovering state. (unchecked)
  • ColorClick: An integer of the color of the icon under clicked state. (unchecked)

color_t

This property determines the color of the icon under 3 conditions when the radio button is checked.

dgsSetProperty(radiobutton,"color_t",{ColorNormal,ColorHover,ColorClick})
  • ColorNormal: An integer of the color of the icon under normal state. (checked)
  • ColorHover: An integer of the color of the icon under hovering state. (checked)
  • ColorClick: An integer of the color of the icon under clicked state. (checked)

colorcoded

Whether the color code is enabled or not. Learn More dxDrawText

dgsSetProperty(radiobutton,"colorcoded",colorcoded)
  • colorcoded: Set to true to enable embedded #FFFFFF color codes.

font

This is equivalent to dgsSetFont/dgsGetFont. Learn More dxDrawText

dgsSetProperty(radiobutton,"font",font)

image_f

This property determines the icon under 3 conditions when the radio button is unchecked.

dgsSetProperty(radiobutton,"image_f",{ImageNormal,ImageHover,ImageClick})
  • ImageNormal: An image element of the icon under normal state. (unchecked)
  • ImageHover: An image element of the icon under hovering state. (unchecked)
  • ImageClick: An image element of the icon under clicked state. (unchecked)

image_t

This property determines the icon under 3 conditions when the radio button is checked.

dgsSetProperty(radiobutton,"image_t",{ImageNormal,ImageHover,ImageClick})
  • ImageNormal: An image element of the icon under normal state. (checked)
  • ImageHover: An image element of the icon under hovering state. (checked)
  • ImageClick: An image element of the icon under clicked state. (checked)

shadow

The shadow text of the radiobutton.

dgsSetProperty(radiobutton,"shadow",{offsetX,offsetY,color,outline})
  • offsetX: A float of the 2D X offset of the shadow text of the radiobutton.
  • offsetY: A float of the 2D Y offset of the shadow text of the radiobutton.
  • color: An integer of the color of the shadow text of the radiobutton.
  • outline: A bool of the outline state of the shadow text.

state

This property stores the state of the radio button.

dgsSetProperty(radiobutton,"state",state)
  • state: A bool/nil of the state. Values can be as follows:
    • true: Checked
    • false: Unchecked
    • nil: indeterminate

text

This is equivalent to dgsSetText/dgsGetText.

dgsSetProperty(radiobutton,"text",text)
  • text: A string of the text of the radiobutton.

textColor

The color which can be translated by tocolor of the text of the radiobutton.

dgsSetProperty(radiobutton,"textColor",textColor)
  • textColor: An integer of the color of the text of the radiobutton.

textImageSpace

This property determines the space between the text and icon.

dgsSetProperty(radiobutton,"textImageSpace",textImageSpace)
  • textImageSpace A float of the distance from the icon to the text of the radio button.

textSize

The scale of the text of the radiobutton. Learn More dxDrawText

dgsSetProperty(radiobutton,"textSize",{scaleX,scaleY})
  • scaleX: A float of the 2D X scale of the text of the radiobutton.
  • scaleY: A float of the 2D Y scale of the text of the radiobutton.

wordbreak

Whether the word-break is enabled or not. Learn More dxDrawText

dgsSetProperty(radiobutton,"wordbreak",wordbreak)
  • wordbreak: If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.

See Also

General Properties

Unique Properties For DGS Core Elements

Extra Properties For DGS Plugins