예제 #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>();
 }
예제 #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();
            };
        }