DuFraN Posted May 3, 2013 Posted May 3, 2013 Hola, como hago para que estos labeles me aparescan en un mismo sitio con cualquier resolucion? que funcion debo utilizar. GUIEditor = { label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.label[2] = guiCreateLabel(694, 493, 91, 27, "Restante", false) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 219, 112, 7) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.label[3] = guiCreateLabel(689, 533, 106, 27, "Transcurrido", false) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 219, 112, 7) guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[3], "center") end ) Otro: timeleft = guiCreateLabel(screenWidth/1.08-108/2, 520, 108, 30, '', false),
Alexs Posted May 3, 2013 Posted May 3, 2013 En los GUI existe un argumento llamado 'relative', usándolo, deberás usarlo posiciones entre 0 y 1, siendo 0 el inicio de la pantalla y el 1 el final (0,5 el medio), quizá te sirva.
Alexs Posted May 3, 2013 Posted May 3, 2013 Ejemplo para crear una ventana: guiCreateWindow( 0.25, 0.25, 0.5, 0.5, "Ejemplo", true ) --Es importante el 'true' al final.
Recommended Posts