Afegides paletes a la classe Text

This commit is contained in:
2024-07-26 08:52:15 +02:00
parent 98caefb085
commit 89cea1c93e
10 changed files with 26 additions and 5 deletions

View File

@@ -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);
}