public static void Prefix(this Window __instance)
 {
     if (__instance.GetType() == typeof(Page_ModsConfig))
     {
         Page_ModsConfig_Controller.ExtraOnGUI((Page_ModsConfig)__instance);
     }
 }
Example #2
0
        /// <summary>
        /// Import selected file
        /// </summary>
        /// <param name="file">The save file that was selected</param>
        private void DoFileInteraction(string file)
        {
            SelectedFile = file;

            SaveFileHandler.ImportMods(file);
            Page_ModsConfig_Controller.SetStatus("Status_Message_Imported".Translate());
            this.Close(true);
        }
 internal static void RestoreModList(int Modlist)
 {
     if (!ModListIsSet(Modlist))
     {
         Page_ModsConfig_Controller.SetStatus("Status_Message_Null".Translate());
     }
     else
     {
         LoadModList(Modlist);
         Page_ModsConfig_Controller.SetStatus("Status_Message_Restore".Translate());
     }
 }
 public static bool Prefix()
 {
     Page_ModsConfig_Controller.Notify_ModsListChanged();
     return(false);
 }
 public static bool Prefix(this Page_ModsConfig __instance, ref Rect rect)
 {
     Page_ModsConfig_Controller.DoWindowContents(__instance, rect);
     return(false);
 }
Example #6
0
 public static bool Prefix(ref PublishedFileId_t pfid)
 {
     Page_ModsConfig_Controller.Notify_SteamItemUnsubscribed(pfid);
     return(false);
 }
Example #7
0
 public static void Postfix(this Page_ModsConfig __instance)
 {
     Page_ModsConfig_Controller.PreOpen(__instance);
 }