Module_main_menu_LGSG_ing.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using Microsoft.Xna.Framework;
  2. using Microsoft.Xna.Framework.Graphics;
  3. using Microsoft.Xna.Framework.Input;
  4. using System;
  5. using System.Collections.Generic;
  6. namespace FF8
  7. {
  8. public static partial class Module_main_menu_debug
  9. {
  10. private static void DrawLG_Loading() => DrawLGSG_ing(strLoadScreen[Litems.Load].Text, strLoadScreen[Litems.Loading].Text);
  11. private static void DrawSG_Saving() => DrawLGSG_ing(strLoadScreen[Litems.Save].Text, strLoadScreen[Litems.Saving].Text);
  12. private static void DrawLGSG_ing(FF8String topright, FF8String help)
  13. {
  14. DrawLGSGHeader(strLoadScreen[Litems.GameFolderSlot1 + SlotLoc].Text, topright, help);
  15. DrawLGSGLoadBar();
  16. }
  17. private static void UpdateLG_Loading()
  18. {
  19. if (PercentLoaded < 1.0f)
  20. {
  21. PercentLoaded += Memory.gameTime.ElapsedGameTime.Milliseconds / 1000.0f * 3;
  22. }
  23. else
  24. {
  25. State = MainMenuStates.InGameMenu; // start loaded game.
  26. Memory.State = Saves.FileList[SlotLoc, BlockLoc + blockpage * 3].Clone();
  27. InGameMenu.ReInit();
  28. //till we have a game to load i'm going to display ingame menu.
  29. init_debugger_Audio.PlaySound(36);
  30. }
  31. }
  32. private static void UpdateSG_Saving() => throw new NotImplementedException();
  33. }
  34. }