Jump to content

destructionderby font


matito6

Recommended Posts

Posted

Welcome. How to add my font in destructionderby.lua

function DestructionDerby:handleFinishActivePlayer(player) 
    if not self.rankingBoard then 
    end 
    finishActivePlayer(player) 
    local activePlayers = getActivePlayers() 
    if #activePlayers == 1 then 
        showMessage(getPlayerName(activePlayers[1]) .. ' WON ! ', 255, 0, 0) 
    end 
end 

i want change "WON!" and "player name font " but how ? ;D

Posted

If u want to change this message font u need to make your own function.

For example:

function showMessage(player) 
dxDrawText(getPlayerName(player).." WON!",sX/2,sY/2,500,200,tocolor(255,255,255,255),1,"default-bold") 
end 

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...