Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Access some class members to force the static constructors to run.
            object dummy = AllAbilities.PSPNames;

            dummy = PSPResources.Lists.AbilityAttributes;
            dummy = PSXResources.Lists.AbilityAttributes;
            dummy = SkillSet.GetDummySkillSets(PatcherLib.Datatypes.Context.US_PSX);
            dummy = AllMonsterSkills.PSXNames;
            dummy = AllJobs.GetNames(PatcherLib.Datatypes.Context.US_PSX);
            dummy = ActionMenuEntry.AllActionMenuEntries;
            dummy = ShopAvailability.GetAllAvailabilities(PatcherLib.Datatypes.Context.US_PSX);
            dummy = SpriteSet.GetSpriteSets(PatcherLib.Datatypes.Context.US_PSX);
            dummy = SpecialName.GetSpecialNames(PatcherLib.Datatypes.Context.US_PSX);
            dummy = Event.GetEventNames(PatcherLib.Datatypes.Context.US_PSX);

            Application.Run(new MainForm());
        }
Beispiel #2
0
        private void UpdateDataSources()
        {
            foreach (ComboBoxWithDefault itemComboBox in
                     new ComboBoxWithDefault[] { rightHandComboBox, leftHandComboBox, headComboBox, bodyComboBox, accessoryComboBox, warTrophyComboBox })
            {
                itemComboBox.BindingContext = new BindingContext();
                itemComboBox.DataSource     = Item.GetEventItems(ourContext);
            }

            primarySkillComboBox.BindingContext    = new BindingContext();
            primarySkillComboBox.DataSource        = new List <SkillSet>(SkillSet.GetEventSkillSets(ourContext).Values);
            secondaryActionComboBox.BindingContext = new BindingContext();
            secondaryActionComboBox.DataSource     = new List <SkillSet>(SkillSet.GetEventSkillSets(ourContext).Values);
            foreach (ComboBoxWithDefault abilityComboBox in
                     new ComboBoxWithDefault[] { reactionComboBox, supportComboBox, movementComboBox })
            {
                abilityComboBox.BindingContext = new BindingContext();
                abilityComboBox.DataSource     = AllAbilities.GetEventAbilities(ourContext);
            }

            faithComboBox.BindingContext   = new BindingContext();
            faithComboBox.DataSource       = zeroTo100;
            braveryComboBox.BindingContext = new BindingContext();
            braveryComboBox.DataSource     = zeroTo100;
            dayComboBox.DataSource         = zeroTo31;
            levelComboBox.DataSource       = levelStrings;
            experienceComboBox.DataSource  = byteNumberWithRandom;

            spriteSetComboBox.DataSource       = SpriteSet.GetSpriteSets(ourContext);
            specialNameComboBox.DataSource     = SpecialName.GetSpecialNames(ourContext);
            jobComboBox.DataSource             = AllJobs.GetDummyJobs(ourContext);
            monthComboBox.DataSource           = Enum.GetValues(typeof(Month));
            teamColorComboBox.DataSource       = Enum.GetValues(typeof(TeamColor));
            facingDirectionComboBox.DataSource = Enum.GetValues(typeof(Facing));
            preRequisiteJobComboBox.DataSource = Enum.GetValues(typeof(PreRequisiteJob));
        }