Esempio n. 1
0
 static ModData()
 {
     Api               = new Api();
     Config            = ModEntry.Helper.ReadConfig <TabConfig>();
     FavoriteMod       = new List <Mod>();
     Tabs              = ModEntry.Helper.Content.Load <Texture2D>("assets/Tabs.png");
     FavoriteTabSource = new Dictionary <string, Rectangle>();
 }
Esempio n. 2
0
        static ModData()
        {
            Api     = new Api();
            Config  = Helper.ReadConfig <TabConfig>();
            Texture = Helper.Content.Load <Texture2D>("assets/Texture.png");

            Helper.Events.GameLoop.GameLaunched += (sender, args) =>
            {
                Init();
                LocalizedContentManager.OnLanguageChange += code => Init();
                TitleOptionsButton.UpdatePosition();
            };
        }