Jump to content

guiMoveToBack ayuda!


Bc#

Recommended Posts

Necesito enviar esto al fondo para poner un dxText por encima pero no he podido, ayuda por favor.

        g_GUI = { 
            timeleftstatic = guiCreateStaticImage(screenWidth-333, -20, 1920/4.8, 1024/4.4, 'img/timeleft.png', false,  
            timeleft = guiCreateLabel(screenWidth-156, 72, 100, 30, '', false), 
            timepassed = guiCreateLabel(screenWidth-140, 136, 100, 30, '', false), 
        } 
        guiMoveToBack(g_GUI) 

o por ultimo que me digan como enviar la staticimage al fondo

Link to comment
        g_GUI = { 
            timeleftstatic = guiCreateStaticImage(screenWidth-333, -20, 1920/4.8, 1024/4.4, 'img/timeleft.png', false), 
            timeleft = guiCreateLabel(screenWidth-156, 72, 100, 30, '', false), 
            timepassed = guiCreateLabel(screenWidth-140, 136, 100, 30, '', false), 
        } 
        guiMoveToBack(g_GUI.timeleftstatic) 

Link to comment

Ok lo integre dentro ahora se ve por ensima pero al hacer eso me surgio otro problema.

        g_GUI = { 
            timeleftstatic = guiCreateStaticImage(screenWidth-333, -20, 1920/4.8, 1024/4.4, 'img/timeleft.png', false, nil), 
            timeleft = guiCreateLabel(screenWidth-156, 72, 100, 30, '', false), 
            timepassed = guiCreateLabel(screenWidth-140, 136, 100, 30, '', false), 
            fpslbl = guiCreateLabel(screenWidth-220, 36, 100, 30, '', false), 
        } 
        guiSetText ( g_GUI.fpslbl, ""..getElementData(getLocalPlayer(),"fps").."") 

Al poner eso aparecen mis fps, pero aparece un numero estático no varia.

Ej: sale 56 y se queda en 56 no baja ni sube, siendo que en el scoreboard si varia.

¿ Tendría que usar alguna herramienta de refresh para que fuera variando, y si es así cual seria la sintaxis que tendría que usar?

Link to comment
  • Recently Browsing   0 members

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