feat(postfx): toggle F6 per activar/desactivar el postprocessat
This commit is contained in:
@@ -377,3 +377,13 @@ void SDLManager::toggleAntialias() {
|
||||
notifier->notifyInfo(cfg_->rendering.antialias != 0 ? "AA ACTIU" : "AA INACTIU");
|
||||
}
|
||||
}
|
||||
|
||||
void SDLManager::togglePostFx() {
|
||||
const bool NEW_STATE = !gpu_renderer_.isPostFxEnabled();
|
||||
gpu_renderer_.setPostFxEnabled(NEW_STATE);
|
||||
// No persistim: el toggle és per A/B testing visual, l'estat per defecte
|
||||
// del joc continua sent "postfx ON" segons defaults/YAML.
|
||||
if (auto* notifier = System::Notifier::get(); notifier != nullptr) {
|
||||
notifier->notifyInfo(NEW_STATE ? "POSTPROCESSAT ACTIU" : "POSTPROCESSAT INACTIU");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user