Platin Posted January 29, 2016 Posted January 29, 2016 ¿Hay alguna forma de que una columna de scoreboard detecte Hex-Codes? En caso de necesitar un script externo pasen. Gracias de antemano.
Tomas Posted January 29, 2016 Posted January 29, 2016 Busca en la parte que se dibujan los textos, el argumento 14 debe ser true
Platin Posted January 29, 2016 Author Posted January 29, 2016 Busca en la parte que se dibujan los textos, el argumento 14 debe ser true ¿Archivo? Hay muchos y como que la paja me gana, por algo el post. EDIT: ¿O te referis al propio scoreboardAddColumn?
Tomas Posted January 29, 2016 Posted January 29, 2016 Busca en la parte que se dibujan los textos, el argumento 14 debe ser true ¿Archivo? Hay muchos y como que la paja me gana, por algo el post. EDIT: ¿O te referis al propio scoreboardAddColumn? En el meta de la scoreboard debe haber una setting llamada allowColorcodedNames, debe estar en 'true'
Platin Posted January 29, 2016 Author Posted January 29, 2016 Busca en la parte que se dibujan los textos, el argumento 14 debe ser true ¿Archivo? Hay muchos y como que la paja me gana, por algo el post. EDIT: ¿O te referis al propio scoreboardAddColumn? En el meta de la scoreboard debe haber una setting llamada allowColorcodedNames, debe estar en 'true' Ah, entonces me vuelvo a explicar. No me refiero a los nombres de los usuarios, si no a las demás columnas. Se que hay una forma para hacer que también reaccionen con los Hex-Codes, pero me da un poco mucho de paja hacerlo. Te dejo una imagen de lo que me refiero: Source: http://i.imgur.com/eZlSXJi.png?1 Fue un editado rápido vía imgur
Tomas Posted January 30, 2016 Posted January 30, 2016 Ah, entonces me vuelvo a explicar. No me refiero a los nombres de los usuarios, si no a las demás columnas. Se que hay una forma para hacer que también reaccionen con los Hex-Codes, pero me da un poco mucho de paja hacerlo. Te dejo una imagen de lo que me refiero: Source: http://i.imgur.com/eZlSXJi.png?1 Fue un editado rápido vía imgur Hmm, intenta colocarle el código a ver si se colorea, si no se colorea tengo una idea.
Platin Posted January 30, 2016 Author Posted January 30, 2016 Ah, entonces me vuelvo a explicar. No me refiero a los nombres de los usuarios, si no a las demás columnas. Se que hay una forma para hacer que también reaccionen con los Hex-Codes, pero me da un poco mucho de paja hacerlo. Te dejo una imagen de lo que me refiero: Source: http://i.imgur.com/eZlSXJi.png?1 Fue un editado rápido vía imgur Hmm, intenta colocarle el código a ver si se colorea, si no se colorea tengo una idea. Lo intente antes y no lo hizo.
Platin Posted February 1, 2016 Author Posted February 1, 2016 Ah, entonces me vuelvo a explicar. No me refiero a los nombres de los usuarios, si no a las demás columnas. Se que hay una forma para hacer que también reaccionen con los Hex-Codes, pero me da un poco mucho de paja hacerlo. Te dejo una imagen de lo que me refiero: Source: http://i.imgur.com/eZlSXJi.png?1 Fue un editado rápido vía imgur Hmm, intenta colocarle el código a ver si se colorea, si no se colorea tengo una idea. UP ¿Cuál era la idea? Nunca la dijiste.
Tomas Posted February 1, 2016 Posted February 1, 2016 Ah, entonces me vuelvo a explicar. No me refiero a los nombres de los usuarios, si no a las demás columnas. Se que hay una forma para hacer que también reaccionen con los Hex-Codes, pero me da un poco mucho de paja hacerlo. Te dejo una imagen de lo que me refiero: Source: http://i.imgur.com/eZlSXJi.png?1 Fue un editado rápido vía imgur Hmm, intenta colocarle el código a ver si se colorea, si no se colorea tengo una idea. Lo intente antes y no lo hizo. Linea 733 y 774 dxDrawText( content, topX+theX+s(1), y+s(1), topX+x+s(1+column.width), y+s(11)+dxGetFontHeight( fontscale(teamHeaderFont, scoreboardScale), teamHeaderFont ), tocolor( 0, 0, 0, a or 255 ), fontscale(teamHeaderFont, s(1)), teamHeaderFont, "left", "top", true, false, drawOverGUI, true ) dxDrawText( content, topX+theX, y, topX+x+s(column.width), y+dxGetFontHeight( fontscale(teamHeaderFont, scoreboardScale), teamHeaderFont ), tocolor( r or 255, g or 255, b or 255, a or 255 ), fontscale(teamHeaderFont, s(1)), teamHeaderFont, "left", "top", true, false, drawOverGUI, true )
Platin Posted February 2, 2016 Author Posted February 2, 2016 Linea 733 y 774 dxDrawText( content, topX+theX+s(1), y+s(1), topX+x+s(1+column.width), y+s(11)+dxGetFontHeight( fontscale(teamHeaderFont, scoreboardScale), teamHeaderFont ), tocolor( 0, 0, 0, a or 255 ), fontscale(teamHeaderFont, s(1)), teamHeaderFont, "left", "top", true, false, drawOverGUI, true ) dxDrawText( content, topX+theX, y, topX+x+s(column.width), y+dxGetFontHeight( fontscale(teamHeaderFont, scoreboardScale), teamHeaderFont ), tocolor( r or 255, g or 255, b or 255, a or 255 ), fontscale(teamHeaderFont, s(1)), teamHeaderFont, "left", "top", true, false, drawOverGUI, true ) Ok, funciona más o menos, voy a ver si lo puedo arreglar pero si tenes una idea de lo que pasa avisame. Source: http://i.imgur.com/40yBMkY.png EDIT: Ya lo pude arreglar. if content:find("#%x%x%x%x%x%x") then contentB = string.gsub(content,"#%x%x%x%x%x%x","") dxDrawText( contentB, topX+theX+s(1), y+s(1), topX+x+s(1+column.width), y+s(11)+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( 0, 0, 0, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI ) dxDrawText( content, topX+theX, y, topX+x+s(column.width), y+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( r or 255, g or 255, b or 255, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI, true ) else contentB = string.gsub(content,"#%x%x%x%x%x%x","") dxDrawText( content, topX+theX+s(1), y+s(1), topX+x+s(1+column.width), y+s(11)+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( 0, 0, 0, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI, true ) dxDrawText( content, topX+theX, y, topX+x+s(column.width), y+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( r or 255, g or 255, b or 255, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI, true ) end http://i.imgur.com/GMLQk2a.png
Recommended Posts