Reverts visual mod states when exiting songs.
| 379 | /// Reverts visual mod states when exiting songs. |
| 380 | /// </summary> |
| 381 | void HandleMenuVisualMods(GameLoopState& state) { |
| 382 | if (Settings::ReturnSettingValue("RemoveHeadstockEnabled") == "on" && |
| 383 | Settings::ReturnSettingValue("RemoveHeadstockWhen") == "song") { |
| 384 | D3DHooks::RemoveHeadstockInThisMenu = false; |
| 385 | } |
| 386 | |
| 387 | if (Settings::ReturnSettingValue("ToggleLoftEnabled") == "on" && |
| 388 | Settings::ReturnSettingValue("ToggleLoftWhen") == "song") { |
| 389 | if (state.loftOff) { |
| 390 | Loft::ToggleLoft(); |
| 391 | state.loftOff = false; |
| 392 | } |
| 393 | if (!GameState::LessonMode) { |
| 394 | D3DHooks::GreenScreenWall = false; |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | if (D3DHooks::SkylineOff && |
| 399 | Settings::ReturnSettingValue("RemoveSkylineEnabled") == "on" && |
| 400 | Settings::ReturnSettingValue("ToggleSkylineWhen") == "song") { |
| 401 | D3DHooks::toggleSkyline = true; |
| 402 | D3DHooks::DrawSkylineInMenu = true; |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | /// <summary> |
| 407 | /// Handles menu-specific features like Guitar Speak and song previews. |
no test coverage detected