Jump to content

Stroking DD Timeleft


StreetSaintz

Recommended Posts

Hey,

I have a problem i added stroke to timeleft and timepassed and after adding that i get this weird error on debugscript and race not working anymore because of it and if i delete those stroke again it starts working again (stroke is on line: 127-128)

        local screenWidth, screenHeight = guiGetScreenSize() 
        local scale = relativeScale(screenHeight) 
        g_dxGUI = { 
            ranknum = dxText:create('1', screenWidth - 160, 180, false, 'bankgothic'), 
            ranksuffix = dxText:create('Alive', screenWidth - 90, 180, false, 'bankgothic', 1), 
            checkpoint = dxText:create('0/0', screenWidth - 15, screenHeight - 54, false, 'bankgothic', 0.7, 'right'), 
            --mapdisplaytitle = dxText:create('Map: ', 3, screenHeight - dxGetFontHeight(scale, 'bankgothic')/2, false, 'bankgothic', scale, 'left'), 
            --mapdisplay = dxText:create('None',3 + dxGetTextWidth('Map :',scale,'bankgothic'), screenHeight - dxGetFontHeight(scale, 'bankgothic')/2, false, 'bankgothic', scale, 'left') 
        } 
        --g_dxGUI.mapdisplaytitle:color(0,255,0) 
        g_dxGUI.ranknum:color(0,255,0) 
        --g_dxGUI.mapdisplaytitle:type('stroke', 1.4, 0, 0, 0, 200) 
        --g_dxGUI.mapdisplay:type('stroke', 1.4, 0, 0, 0, 200) 
        g_dxGUI.ranknum:type('stroke', 2, 0, 0, 0, 255) 
        g_dxGUI.ranksuffix:type('stroke', 2, 0, 0, 0, 255) 
        g_dxGUI.checkpoint:type('stroke', 1, 0, 0, 0, 255) 
        g_dxGUI.timepassed:type('stroke', 2, 0, 0, 0, 255) 
        g_dxGUI.timeleft:type('stroke', 2, 0, 0, 0, 255) 
        g_GUI = {                                       -- / links of rechts endan tweede boven of onder 
            timeleftbg = guiCreateStaticImage(screenWidth - 280, 0, 280, 150, 'img/timeleft.png', false, nil), 
            timeleft = guiCreateLabel(screenWidth -190, 78, 100, 50, '', false), 
            timepassed = guiCreateLabel(screenWidth -158, 28, 100, 50, '', false), 
            healthbar = FancyProgress.create(250, 1000, 'img/progress_health_bg.png', -65, 200, 123, 30, 'img/progress_health.png', 8, 8, 108, 15), 
            speedbar = FancyProgress.create(0, 1.5, 'img/progress_speed_bg.png', -65, 230, 123, 30, 'img/progress_speed.png', 8, 8, 108, 15), 
        } 
        guiSetFont(g_GUI.timeleft, 'bankgothic') 
        guiSetFont(g_GUI.timepassed, 'bankgothic') 
        guiLabelSetHorizontalAlign(g_GUI.timeleft, 'center') 
        g_GUI.speedbar:setProgress(0) 
  
        hideGUIComponents('timeleft', 'healthbar', 'speedbar', 'ranknum', 'ranksuffix', 'checkpoint', 'timepassed') 
        RankingBoard.precreateLabels(10) 
  

i'm getting this error xB06Qw5.png

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