HunT Posted October 30, 2011 Posted October 30, 2011 Hi All. It's possible set the custom font in Scoreboard? (dxScoreboard) I'm fail scripter with this no work: fontNames = { "default", "default-bold", "clear", "arial", "sans","pricedown", "bankgothic", "diploma", "beckett","myFont"} myFont = dxCreateFont( "myFont.ttf") and setting : defaultSettings = { ["useanimation"] = true, ["toggleable"] = false, ["showserverinfo"] = true, ["showgamemodeinfo"] = true, ["showteams"] = true, ["usecolors"] = true, ["drawspeed"] = 1.5, ["scale"] = 1, ["columnfont"] = "myFont", ["contentfont"] = "myFont", ["teamfont"] = "myFont", ["serverinfofont"] = "myFont", please help and Tnx @Huntone_
Aibo Posted October 30, 2011 Posted October 30, 2011 myFont is a variable with DX font element. so type it in as a variable, not as a string. ?
HunT Posted October 31, 2011 Author Posted October 31, 2011 myFont is a variable with DX font element. so type it in as a variable, not as a string. Ok now I understand Tnx Type dxDrawText( "dxDrawText", 100, 350, 300, 350, tocolor(255,255,0), 1, myFont ) myFont = dxCreateFont( "myFont.ttf", 20 ) or local myLabel = guiCreateLabel( 100, 300, 400, 50, "GUI label", false ) myFont = guiCreateFont( "myFont.ttf", 20 ) guiSetFont( myLabel, myFont ) Ok @Huntone_
Castillo Posted October 31, 2011 Posted October 31, 2011 You must create the font first. myFont = dxCreateFont( "myFont.ttf", 20 ) dxDrawText( "dxDrawText", 100, 350, 300, 350, tocolor(255,255,0), 1, myFont ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
HunT Posted October 31, 2011 Author Posted October 31, 2011 You must create the font first. myFont = dxCreateFont( "myFont.ttf", 20 ) dxDrawText( "dxDrawText", 100, 350, 300, 350, tocolor(255,255,0), 1, myFont ) I understand With "indipendent" element without string. i edit the gui rules with custom font Tnx Anyway Castillo @Huntone_
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now