fix/options-discard-confirm · PurpleFuchs · 9 Dateien · +217 −11 · 2026-11-03
Zusammenfassung
Card e463ba — both analyst design flags honored: keyed registry (multi-page unsaved safe) + IsActive guard folded into the hooks (#1354 not merged yet — this subsumes it for the options leave paths). New leaf module OptionsUnsavedState (Set/Get/Revert per page); 4 staged pages register their revert closures; Esc/back hooks in Stages/Options + PauseMenue; localized 'Unsaved' label on the capsule. Note: openStage moved above requestLeave — it must be a visible local (was a nil-global forward ref).
Geänderte Dateien (9)
| Source/Data/Locale/English.lua | geändert | +3 −0 |
| Source/Data/Locale/German.lua | geändert | +3 −0 |
| Source/GuiElements/Options/DrawGameOptions.lua | geändert | +24 −1 |
| Source/GuiElements/Options/DrawGraphicsOptions.lua | geändert | +28 −1 |
| Source/GuiElements/Options/DrawSaveOptions.lua | geändert | +22 −1 |
| Source/GuiElements/Options/DrawSoundOptions.lua | geändert | +27 −1 |
| Source/GuiElements/Options/OptionsUnsavedState.lua | neu | +38 −0 |
| Source/Stages/Options.lua | geändert | +45 −7 |
| Source/Update/PauseMenue.lua | geändert | +27 −0 |