HunT Posted October 30, 2011 Share 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 Link to comment
Aibo Posted October 30, 2011 Share Posted October 30, 2011 myFont is a variable with DX font element. so type it in as a variable, not as a string. Link to comment
HunT Posted October 31, 2011 Author Share 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 Link to comment
Castillo Posted October 31, 2011 Share 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 ) Link to comment
HunT Posted October 31, 2011 Author Share 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 Link to comment
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