public void LoadFFTPatch(FFTPatch FFTPatch)
        {
            this.Enabled = true;

            PatchUtility.BuildReferenceList(FFTPatch.ItemAttributes, FFTPatch.InflictStatuses, FFTPatch.Abilities, FFTPatch.Items);

            allAbilitiesEditor1.UpdateView(FFTPatch.Abilities, FFTPatch.InflictStatuses, FFTPatch.Context);
            allActionMenusEditor1.UpdateView(FFTPatch.ActionMenus);
            allInflictStatusesEditor1.UpdateView(FFTPatch.InflictStatuses, FFTPatch.Context);
            allItemAttributesEditor1.UpdateView(FFTPatch.ItemAttributes, FFTPatch.Context);
            allItemsEditor1.UpdateView(FFTPatch.Items, FFTPatch.StoreInventories, FFTPatch.InflictStatuses, FFTPatch.ItemAttributes, FFTPatch.Context);
            allJobsEditor1.UpdateView(FFTPatch.Jobs, FFTPatch.Context);
            allMonsterSkillsEditor1.UpdateView(FFTPatch.MonsterSkills, FFTPatch.Context);
            allPoachProbabilitiesEditor1.UpdateView(FFTPatch.PoachProbabilities, FFTPatch.Context);
            allSkillSetsEditor1.UpdateView(FFTPatch.SkillSets, FFTPatch.Context);
            allStatusAttributesEditor1.UpdateView(FFTPatch.StatusAttributes, FFTPatch.Context);
            jobLevelsEditor1.UpdateView(FFTPatch.JobLevels, FFTPatch.Context);
            entdEditor1.UpdateView(FFTPatch.ENTDs, FFTPatch.Context);
            allMoveFindItemsEditor1.UpdateView(FFTPatch.MoveFind, FFTPatch.Context);
            allStoreInventoryEditor1.UpdateView(FFTPatch.StoreInventories, FFTPatch.Items, FFTPatch.Context);
            allAnimationsEditor1.UpdateView(FFTPatch.AbilityAnimations);
            allPropositionsEditor1.UpdateView(FFTPatch.Propositions, FFTPatch.Context);

            codeCreator1.UpdateView(FFTPatch);
            codesTab.Text            = FFTPatch.Context == Context.US_PSP ? "CWCheat" : "Gameshark";
            propositionsTabPage.Text = FFTPatch.Context == Context.US_PSP ? "Errands" : "Propositions";

            fftPatch = FFTPatch;
            Focus();
        }
 public void ConsolidateItemAttributes()
 {
     PatchUtility.RepointItemAttributes(fftPatch.Items, fftPatch.ItemAttributes);
     allItemAttributesEditor1.UpdateSelectedEntry();
     allItemAttributesEditor1.UpdateListBox();
     allItemsEditor1.UpdateSelectedEntry();
     allItemsEditor1.UpdateListBox();
 }
 public void ConsolidateInflictStatuses()
 {
     PatchUtility.RepointInflictStatus(fftPatch.Items, fftPatch.Abilities, fftPatch.InflictStatuses);
     allInflictStatusesEditor1.UpdateSelectedEntry();
     allInflictStatusesEditor1.UpdateListBox();
     allItemsEditor1.UpdateSelectedEntry();
     allItemsEditor1.UpdateListBox();
     allAbilitiesEditor1.UpdateSelectedEntry();
     allAbilitiesEditor1.UpdateListBox();
 }
 private void OnItemAttributesRepoint(object sender, RepointEventArgs e)
 {
     if (fftPatch != null)
     {
         PatchUtility.RepointSpecificItemAttributes(fftPatch.Items, fftPatch.ItemAttributes, (byte)e.OldID, (byte)e.NewID);
         allItemAttributesEditor1.UpdateSelectedEntry();
         allItemAttributesEditor1.UpdateListBox();
         allItemsEditor1.UpdateSelectedEntry();
         allItemsEditor1.UpdateListBox();
     }
 }
Exemple #5
0
 public void UpdateView(AllInflictStatuses statuses, PatcherLib.Datatypes.Context context)
 {
     ourContext = context;
     offsetListBox.SelectedIndexChanged -= offsetListBox_SelectedIndexChanged;
     offsetListBox.DataSource            = statuses.InflictStatuses;
     offsetListBox.SelectedIndexChanged += offsetListBox_SelectedIndexChanged;
     offsetListBox.SelectedIndex         = 0;
     PatchUtility.CheckDuplicates <InflictStatus>(statuses.InflictStatuses);
     offsetListBox.SetChangedColors <InflictStatus>();
     //inflictStatusEditor.InflictStatus = offsetListBox.SelectedItem as InflictStatus;
     inflictStatusEditor.SetInflictStatus(offsetListBox.SelectedItem as InflictStatus, context);
 }
 private void itemAttributeEditor_DataChanged( object sender, EventArgs e )
 {
     offsetListBox.BeginUpdate();
     int top = offsetListBox.TopIndex;
     PatchUtility.CheckDuplicates<ItemAttributes>((ItemAttributes[])offsetListBox.DataSource);
     CurrencyManager cm = (CurrencyManager)BindingContext[offsetListBox.DataSource];
     cm.Refresh();
     offsetListBox.TopIndex = top;
     offsetListBox.EndUpdate();
     //offsetListBox.SetChangedColor();
     offsetListBox.SetChangedColors<ItemAttributes>();
 }
 private void OnInflictStatusRepoint(object sender, RepointEventArgs e)
 {
     if (fftPatch != null)
     {
         PatchUtility.RepointSpecificInflictStatus(fftPatch.Items, fftPatch.Abilities, fftPatch.InflictStatuses, (byte)e.OldID, (byte)e.NewID);
         allInflictStatusesEditor1.UpdateSelectedEntry();
         allInflictStatusesEditor1.UpdateListBox();
         allItemsEditor1.UpdateSelectedEntry();
         allItemsEditor1.UpdateListBox();
         allAbilitiesEditor1.UpdateSelectedEntry();
         allAbilitiesEditor1.UpdateListBox();
     }
 }
        public void UpdateView(AllItemAttributes attributes, Context context)
        {
            if (ourContext != context)
            {
                ourContext          = context;
                ClipBoardAttributes = null;
                offsetListBox.ContextMenu.MenuItems[1].Enabled = false;
            }

            offsetListBox.SelectedIndexChanged -= offsetListBox_SelectedIndexChanged;
            offsetListBox.DataSource            = attributes.ItemAttributes;
            offsetListBox.SelectedIndexChanged += offsetListBox_SelectedIndexChanged;
            offsetListBox.SelectedIndex         = 0;

            PatchUtility.CheckDuplicates <ItemAttributes>(attributes.ItemAttributes);
            offsetListBox.SetChangedColors <ItemAttributes>();

            //itemAttributeEditor.ItemAttributes = offsetListBox.SelectedItem as ItemAttributes;
            itemAttributeEditor.SetItemAttributes(offsetListBox.SelectedItem as ItemAttributes, context);
        }
 public void UpdateListBox()
 {
     PatchUtility.CheckDuplicates <ItemAttributes>((ItemAttributes[])offsetListBox.DataSource);
     offsetListBox.SetChangedColors <ItemAttributes>();
     offsetListBox.Invalidate();
 }
Exemple #10
0
 public void UpdateListBox()
 {
     PatchUtility.CheckDuplicates <InflictStatus>((InflictStatus[])offsetListBox.DataSource);
     offsetListBox.SetChangedColors <InflictStatus>();
     offsetListBox.Invalidate();
 }