reordenades les layers del overlay
consola ara tanca i obri per temps en lloc de velocitat
This commit is contained in:
@@ -51,14 +51,14 @@ class Console {
|
||||
};
|
||||
|
||||
// Constantes visuales
|
||||
static constexpr Uint8 BG_COLOR = 0; // PaletteColor::BLACK
|
||||
static constexpr Uint8 BORDER_COLOR = 9; // PaletteColor::BRIGHT_GREEN
|
||||
static constexpr Uint8 MSG_COLOR = 8; // PaletteColor::GREEN
|
||||
static constexpr float SLIDE_SPEED = 180.0F;
|
||||
static constexpr Uint8 BG_COLOR = 0; // PaletteColor::BLACK
|
||||
static constexpr Uint8 BORDER_COLOR = 9; // PaletteColor::BRIGHT_GREEN
|
||||
static constexpr Uint8 MSG_COLOR = 8; // PaletteColor::GREEN
|
||||
static constexpr float ANIM_DURATION = 0.3F; // Duración de cualquier animación (segundos)
|
||||
|
||||
// Constantes de consola
|
||||
static constexpr std::string_view CONSOLE_NAME = "JDD Console";
|
||||
static constexpr std::string_view CONSOLE_VERSION = "v2.2";
|
||||
static constexpr std::string_view CONSOLE_VERSION = "v2.3";
|
||||
static constexpr int MAX_LINE_CHARS = 32;
|
||||
static constexpr int MAX_HISTORY_SIZE = 20;
|
||||
static constexpr float CURSOR_ON_TIME = 0.5F;
|
||||
@@ -99,9 +99,13 @@ class Console {
|
||||
int typewriter_chars_{0}; // Caracteres de msg_lines_ actualmente visibles
|
||||
float typewriter_timer_{0.0F};
|
||||
|
||||
// Animación basada en tiempo (0→1 en ANIM_DURATION)
|
||||
float anim_progress_{0.0F}; // Progreso normalizado [0, 1]
|
||||
float anim_start_{0.0F}; // Valor inicial (y_ o height_)
|
||||
float anim_end_{0.0F}; // Valor final
|
||||
|
||||
// Animación de altura dinámica
|
||||
float target_height_{0.0F}; // Altura objetivo (según número de líneas de mensaje)
|
||||
int notifier_offset_applied_{0}; // Acumulador del offset enviado al Notifier
|
||||
float target_height_{0.0F}; // Altura objetivo (según número de líneas de mensaje)
|
||||
|
||||
// Historial de comandos (navegable con flechas arriba/abajo)
|
||||
std::deque<std::string> history_;
|
||||
|
||||
Reference in New Issue
Block a user