forked from jaildesigner-jailgames/jaildoctors_dilemma
revisió de metodes de debug
This commit is contained in:
@@ -393,7 +393,7 @@ auto Screen::findPalette(const std::string& name) -> size_t {
|
||||
|
||||
// Muestra información por pantalla
|
||||
void Screen::renderInfo() const {
|
||||
if (show_debug_info_ && (Resource::Cache::get() != nullptr)) {
|
||||
if (show_fps_ && (Resource::Cache::get() != nullptr)) {
|
||||
auto text = Resource::Cache::get()->getText("smb2");
|
||||
auto color = static_cast<Uint8>(PaletteColor::YELLOW);
|
||||
auto shadow = static_cast<Uint8>(PaletteColor::BLACK);
|
||||
@@ -428,8 +428,8 @@ void Screen::hide() { SDL_HideWindow(window_); }
|
||||
// Establece la visibilidad de las notificaciones
|
||||
void Screen::setNotificationsEnabled(bool value) { notifications_enabled_ = value; }
|
||||
|
||||
// Activa / desactiva la información de debug
|
||||
void Screen::toggleDebugInfo() { show_debug_info_ = !show_debug_info_; }
|
||||
// Activa / desactiva el contador de FPS
|
||||
void Screen::toggleFPS() { show_fps_ = !show_fps_; }
|
||||
|
||||
// Alterna entre activar y desactivar el escalado entero
|
||||
void Screen::toggleIntegerScale() {
|
||||
|
||||
Reference in New Issue
Block a user