Dgs-dxbutton: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Client Function}}
DGS Properties is always used to change the gui style and make it more fantastic.
*[[dgsDxGUISetProperty]]
*[[dgsDxGUIGetProperty]]
dgsSetData(button,"image",{defimg,selimg,cliimg})
dgsSetData(button,"image",{defimg,selimg,cliimg})
dgsSetData(button,"color",{defcolor,selcolor,clicolor})
dgsSetData(button,"color",{defcolor,selcolor,clicolor})

Revision as of 12:45, 9 September 2017

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

dgsSetData(button,"image",{defimg,selimg,cliimg}) dgsSetData(button,"color",{defcolor,selcolor,clicolor}) dgsSetData(button,"text",tostring(text)) dgsSetData(button,"textcolor",textcolor or tocolor(255,255,255,255)) dgsSetData(button,"textsize",{tonumber(scalex) or 1,tonumber(scaley) or 1}) dgsSetData(button,"shadow",{_,_,_}) dgsSetData(button,"font",systemFont) dgsSetData(button,"clickoffset",{0,0}) dgsSetData(button,"clip",false) dgsSetData(button,"clickType",1) dgsSetData(button,"wordbreak",false) dgsSetData(button,"colorcoded",false) dgsSetData(button,"rightbottom",{"center","center"})