Ejemplo n.º 1
0
 public override void LoadContent()
 {
     buttonColor = new Color(124, 137, 149);
     exitButtonColor = new Color(105, 82, 82);
     titleColor = new Color(190, 190, 190, 0);
     titleFont = ScreenManager.Game.Content.Load<SpriteFont>("Kremlin");
     canLoad = SaveFileManager.StorageMethods[0].GetSaveManifest().LastLoggedInUser.Username != null;
     hexBackground = new HexGridBackground(ScreenManager.Game.Content);
     HookUpCreationEvents();
 }
Ejemplo n.º 2
0
 public static void init(ContentManager content)
 {
     fileData = new Dictionary<OSTheme, string>();
     var utF8Encoding = new UTF8Encoding();
     hexGrid = new HexGridBackground(content);
     hexGrid.HexScale = 0.12f;
     foreach (OSTheme key in Enum.GetValues(typeof (OSTheme)))
     {
         byte[] bytes = utF8Encoding.GetBytes(key.ToString() + key.GetHashCode());
         var str = "";
         for (var index = 0; index < bytes.Length; ++index)
             str += bytes[index].ToString();
         fileData.Add(key, str);
     }
 }