Dgs-dxlabel: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
DGS Properties is always used to change the gui style and make it more fantastic. | [[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic. | ||
This page shows the properties of dgs-dxlabel that you could use. | This page shows the properties of dgs-dxlabel that you could use. | ||
Line 55: | Line 55: | ||
*'''alignX''' : Horizontal alignment of the text within the label. Can be "left", "center" or "right". | *'''alignX''' : Horizontal alignment of the text within the label. Can be "left", "center" or "right". | ||
*'''alignY''' : Vertical alignment of the text within the label. Can be "top", "center" or "bottom". | *'''alignY''' : Vertical alignment of the text within the label. Can be "top", "center" or "bottom". | ||
==See Also== | |||
{{DGSPROPERTIES}} |
Revision as of 05:42, 16 December 2017
DGS Properties is always used to change the gui style and make it more fantastic.
This page shows the properties of dgs-dxlabel that you could use.
Main Functions
Properties
text
This is equivalent to dgsDxGUISetText/dgsDxGUIGetText.
dgsDxGUISetProperty(label,"text",text)
- text : A string of the text of the label.
textcolor
The color which can be translated by tocolor of the text of the label.
dgsDxGUISetProperty(label,"textcolor",textcolor)
- textcolor : An integer of the color of the text of the label.
textsize
The scale of the text of the label. Learn More dxDrawText
dgsDxGUISetProperty(label,"textsize",{scaleX,scaleY})
- scaleX : A float of the 2D X scale of the text of the label.
- scaleY : A float of the 2D Y scale of the text of the label.
shadow
The shadow text of the label.
dgsDxGUISetProperty(label,"shadow",{offsetX,offsetY,color})
- offsetX : A float of the 2D X offset of the shadow text of the label.
- offsetY : A float of the 2D Y offset of the shadow text of the label.
- color : An integer of the color of the shadow text of the label.
font
This is equivalent to dgsDxGUISetFont/dgsDxGUIGetFont. Learn More dxDrawText
dgsDxGUISetProperty(label,"font",font)
- font : A dx font element of the text font of the label.
wordbreak
Whether the word-break is enabled or not. Learn More dxDrawText
dgsDxGUISetProperty(label,"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.
colorcoded
Whether the color code is enabled or not. Learn More dxDrawText
dgsDxGUISetProperty(label,"colorcoded",colorcoded)
- colorcoded : Set to true to enable embedded #FFFFFF color codes.
clip
Whether the clip property is enabled or not. Learn More dxDrawText
dgsDxGUISetProperty(label,"clip",clip)
- clip : If set to true, the parts of the text that don't fit within the bounding box will be cut off.
rightbottom
Alignment of the text within the label
dgsDxGUISetProperty(label,"rightbottom",{alignX,alignY})
- alignX : Horizontal alignment of the text within the label. Can be "left", "center" or "right".
- alignY : Vertical alignment of the text within the label. Can be "top", "center" or "bottom".
See Also
General Properties
Unique Properties For DGS Core Elements
- dgs-dx3dinterface
- dgs-dx3dimage
- dgs-dx3dtext
- dgs-dx3dline
- dgs-dxbutton
- dgs-dxcheckbox
- dgs-dxcombobox
- dgs-dxdetectarea
- dgs-dxedit
- dgs-dxgridlist
- dgs-dximage
- dgs-dxlabel
- dgs-dxline
- dgs-dxmemo
- dgs-dxprogressbar
- dgs-dxradiobutton
- dgs-dxscrollbar
- dgs-dxscrollpane
- dgs-dxselector
- dgs-dxswitchbutton
- dgs-dxtabpanel
- dgs-dxtab
- dgs-dxwindow