console: update() en 4 sub-passos (cursor, typewriter, resize, open/close)
This commit is contained in:
@@ -79,6 +79,12 @@ class Console {
|
||||
void processCommand(); // Procesa el comando introducido por el usuario
|
||||
[[nodiscard]] auto wrapText(const std::string& text) const -> std::vector<std::string>; // Word-wrap por ancho en píxeles
|
||||
|
||||
// Sub-pasos de update() (extrets per reduir complexitat cognitiva)
|
||||
void updateCursorBlink(float delta_time); // Parpadeig del cursor
|
||||
void updateTypewriter(float delta_time); // Revelat lletra a lletra de msg_lines_
|
||||
void updateResizeAnimation(float delta_time); // Animació d'altura quan msg_lines_ canvia
|
||||
void updateOpenCloseAnimation(float delta_time); // Animació RISING/VANISHING
|
||||
|
||||
// Objetos de renderizado
|
||||
std::shared_ptr<Text> text_;
|
||||
std::shared_ptr<Surface> surface_;
|
||||
|
||||
Reference in New Issue
Block a user