canvi de pc

This commit is contained in:
2025-03-05 07:44:12 +01:00
parent 57481a1e97
commit 33038e8509
23 changed files with 173 additions and 164 deletions

View File

@@ -86,7 +86,7 @@ void Notifier::update()
{
// const float step = ((float)notifications_[i].counter / notifications_[i].travel_dist);
// const int alpha = 255 * step;
//constexpr int ALPHA = 255;
// constexpr int ALPHA = 255;
if (options.notifications.getVerticalPosition() == NotificationPosition::TOP)
{
@@ -96,12 +96,12 @@ void Notifier::update()
{
notifications_[i].rect.y--;
}
//notifications_[i].surface->setAlpha(ALPHA);
// notifications_[i].surface->setAlpha(ALPHA);
if (notifications_[i].rect.y == notifications_[i].y)
{
notifications_[i].state = NotificationStatus::STAY;
//notifications_[i].surface->setAlpha(255);
// notifications_[i].surface->setAlpha(255);
notifications_[i].counter = 0;
}
}
@@ -119,7 +119,7 @@ void Notifier::update()
// const float step = (notifications_[i].counter / (float)notifications_[i].travel_dist);
// const int ALPHA = 255 * (1 - step);
//constexpr int ALPHA = 255;
// constexpr int ALPHA = 255;
if (options.notifications.getVerticalPosition() == NotificationPosition::TOP)
{
@@ -129,7 +129,7 @@ void Notifier::update()
{
notifications_[i].rect.y++;
}
//notifications_[i].surface->setAlpha(ALPHA);
// notifications_[i].surface->setAlpha(ALPHA);
if (notifications_[i].rect.y == notifications_[i].y - notifications_[i].travel_dist)
{
@@ -259,7 +259,7 @@ void Notifier::show(std::vector<std::string> texts, NotificationText text_is, in
else if (shape == NotificationShape::SQUARED)
{
Screen::get()->clear(bg_color_);
Screen::get()->clearSurface(bg_color_);
}
// Dibuja el icono de la notificación
@@ -294,7 +294,7 @@ void Notifier::show(std::vector<std::string> texts, NotificationText text_is, in
n.sprite = std::make_shared<SSprite>(n.surface, n.rect);
// Deja la notificación invisible
//n.surface->setAlpha(0);
// n.surface->setAlpha(0);
// Añade la notificación a la lista
notifications_.emplace_back(n);