Skip to content

Add SQL unlocks, persistent autoshow locks, and new Unlocks UI/actions#6

Open
Vynxly wants to merge 3 commits into
masterfrom
codex/add-features-from-fh6-allinone-trainer-evau6s
Open

Add SQL unlocks, persistent autoshow locks, and new Unlocks UI/actions#6
Vynxly wants to merge 3 commits into
masterfrom
codex/add-features-from-fh6-allinone-trainer-evau6s

Conversation

@Vynxly

@Vynxly Vynxly commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Provide a safe, user-invokable SQL-based path to unlock vehicles/upgrades and to re-apply important install/free-car flags periodically.
  • Expose gameplay cheat toggles (Sell Payout, Drift Score multiplier, No Skill Break) and one-click boosters through the Unlocks UI.
  • Improve Autoshow and Unlocks pages to surface SQL controls and quick actions for easier user access.
  • Clarify translation keys for related UI labels across English, French and ChineseSimplified resource files.

Description

  • Added many SQL command batches and helpers to AutoshowViewModel including FullAutoshowSql, FreeCarsSql, InstallFlagsSql, AddAllCarsSql, UnlockUpgradePresetsSql, ClearNewTagsSql, PhysicsPerformanceSql, FreeUpgradesSql, FreeWheelsSql, plus helper GetFreeUpgradeSql, GetUnlockEverythingSqlBatches, ApplyPersistentLocks, and a DispatcherTimer for re-applying persistent locks every 10 seconds.
  • Added UnlockEverything and TogglePersistentLocks relay commands to AutoshowViewModel and a UI panel in Views/Pages/Autoshow.xaml to run those SQL actions.
  • Expanded Views/SubPages/SelfVehicle/Unlocks.xaml with new layout sections for Quick Actions, Gameplay Features toggles, and SQL Database controls, and increased the window size in MainWindow.xaml.
  • Wired a new AutoshowViewModel into Unlocks.xaml.cs, implemented OneClickBooster and MaxAll quick-action handlers, and added toggle handlers SellPayoutSwitch_OnToggled, DriftScoreSwitch_OnToggled, and NoSkillBreakSwitch_OnToggled to call underlying cheat detours or fall back safely.
  • Reworked selection indices and removed several legacy unlock modules (XP, Accolades, Kudos, Forzathon, Seasonal) to match the new UI and behavior, and added helper SetToggleWithoutRunning to update toggles without triggering handlers.
  • Updated translation keys/values in Resources/Translations/English.xaml, French.xaml, and ChineseSimplified.xaml (e.g. SpinSellFactor -> "Sell Payout", DriftScoreMultiplier -> "Drift Score", UnbreakableSkillScore -> "No Skill Break").

Testing

  • No automated unit or integration tests were added for the new UI/cheat features as they interact with game memory and in-memory SQL; no CI test runs were executed for these changes.
  • Changes were implemented to avoid altering existing automated tests and to keep new SQL commands grouped into batches to reduce risk when executed against the in-memory DB.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant