canvi de pc

This commit is contained in:
2025-02-24 08:52:11 +01:00
parent 5bb5be9c33
commit 48971cd5d1
14 changed files with 420 additions and 392 deletions

View File

@@ -367,7 +367,7 @@ void Title::moveCheevosList(int direction)
cheevos_texture_view_.y = bottom;
}
cheevos_sprite_->setSpriteClip(cheevos_texture_view_);
cheevos_sprite_->setClip(cheevos_texture_view_);
}
// Rellena la textura de fondo con todos los gráficos
@@ -445,7 +445,7 @@ void Title::createCheevosTexture()
// Crea el sprite para el listado de logros
cheevos_sprite_ = new Sprite((GAMECANVAS_WIDTH - cheevos_texture_->getWidth()) / 2, cheevosTexturePosY, cheevos_texture_->getWidth(), cheevos_texture_->getHeight(), cheevos_texture_, renderer_);
cheevos_texture_view_ = {0, 0, cheevos_texture_->getWidth(), cheevosTextureViewHeight};
cheevos_sprite_->setSpriteClip(cheevos_texture_view_);
cheevos_sprite_->setClip(cheevos_texture_view_);
}
// Oculta la lista de logros
@@ -453,5 +453,5 @@ void Title::hideCheevosList()
{
show_cheevos_ = false;
cheevos_texture_view_.y = 0;
cheevos_sprite_->setSpriteClip(cheevos_texture_view_);
cheevos_sprite_->setClip(cheevos_texture_view_);
}