Jump to content

[Help] dxScoreboard Custom Font


HunT

Recommended Posts

Hi All.

It's possible set the custom font in Scoreboard? (dxScoreboard)

I'm fail scripter :lol: 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", 

:oops: please help and Tnx

Link to comment
myFont is a variable with DX font element. so type it in as a variable, not as a string.

Ok now I understand Tnx :roll:

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 :wink:

Link to comment
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 :mrgreen:

216.png

Tnx Anyway Castillo

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...