public override void OnLoaded(object sender, RoutedEventArgs e)
        {
            if (HasLoaded)
            {
                return;
            }
            var job = EditingMod?.GetJob(ModJob.JobHeader.GAME1_EMBEDDED_TLK);

            UsesFeature = job != null;
            HasLoaded   = true;
        }
 public override void OnLoaded(object sender, RoutedEventArgs e)
 {
     if (HasLoaded)
     {
         return;
     }
     if (EditingMod.Game == MEGame.ME3)
     {
         BalanceChangesJob = EditingMod.GetJob(ModJob.JobHeader.BALANCE_CHANGES);
         BalanceChangesJob?.BuildParameterMap(EditingMod);
     }
     HasLoaded = true;
 }
Exemple #3
0
        public override void OnLoaded(object sender, RoutedEventArgs e)
        {
            if (HasLoaded)
            {
                return;
            }
            if (EditingMod.Game == MEGame.ME1)
            {
                ConfigJob = EditingMod.GetJob(ModJob.JobHeader.ME1_CONFIG);
                if (ConfigJob != null)
                {
                    ModDir = ConfigJob.JobDirectory;
                    Files.ReplaceAll(ConfigJob.ConfigFilesRaw.Split(';')
                                     .Select(x => new MDParameter(@"string", M3L.GetString(M3L.string_configFile), x)));
                }
            }

            HasLoaded = true;
        }
        public override void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
        {
            if (!HasLoaded)
            {
                CustomDLCJob = EditingMod?.GetJob(ModJob.JobHeader.CUSTOMDLC);
                if (CustomDLCJob != null)
                {
                    Alternates.ReplaceAll(CustomDLCJob.AlternateDLCs);
                    foreach (var a in Alternates)
                    {
                        a.BuildParameterMap(EditingMod);
                    }
                }
                else
                {
                    Alternates.ClearEx();
                }

                HasLoaded = true;
            }
        }
Exemple #5
0
        public override void OnLoaded(object sender, RoutedEventArgs e)
        {
            if (HasLoaded)
            {
                return;
            }
            if (EditingMod.Game >= MEGame.ME2)
            {
                TargetMod       = EditingMod?.RequiredDLC.FirstOrDefault();
                LocalizationJob = EditingMod?.GetJob(ModJob.JobHeader.LOCALIZATION);
                if (LocalizationJob != null)
                {
                    SetToLocalizationModText = M3L.GetString(M3L.string_modAlreadyLocalizationMod);
                    Files.ReplaceAll(LocalizationJob.LocalizationFilesStrRaw.Split(';').Select(x => new MDParameter(@"string", M3L.GetString(M3L.string_tlkFilename), x)));
                }
                else
                {
                    SetToLocalizationModText = M3L.GetString(M3L.string_setToLocalizationMod);
                    Files.ClearEx();
                }
            }

            HasLoaded = true;
        }
 private bool CanAddAlternateDLC() => EditingMod != null && EditingMod.GetJob(ModJob.JobHeader.CUSTOMDLC) != null;