Afegides paletes a la classe Text
This commit is contained in:
@@ -272,4 +272,16 @@ void Text::reLoadTexture()
|
||||
void Text::setFixedWidth(bool value)
|
||||
{
|
||||
fixedWidth = value;
|
||||
}
|
||||
|
||||
// Carga una paleta de colores para el texto
|
||||
void Text::addPalette(std::string path)
|
||||
{
|
||||
texture->addPalette(path);
|
||||
}
|
||||
|
||||
// Establece una paleta de colores para el texto
|
||||
void Text::setPalette(int index)
|
||||
{
|
||||
texture->setPalette(index);
|
||||
}
|
||||
@@ -77,6 +77,12 @@ public:
|
||||
|
||||
// Establece si se usa un tamaño fijo de letra
|
||||
void setFixedWidth(bool value);
|
||||
|
||||
// Carga una paleta de colores para el texto
|
||||
void addPalette(std::string path);
|
||||
|
||||
// Establece una paleta de colores para el texto
|
||||
void setPalette(int index);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user