Bc# Posted February 3, 2013 Share Posted February 3, 2013 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
Castillo Posted February 3, 2013 Share Posted February 3, 2013 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
Castillo Posted February 3, 2013 Share Posted February 3, 2013 Lo que pasa es que estas creando las labels fuera de la imagen. Link to comment
Bc# Posted February 3, 2013 Author Share Posted February 3, 2013 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
Recommended Posts