示例#1
0
        private void SettingsMiscInit(MenuItemFactory factory)
        {
            Credits =
                factory.WithName("                                             .:Credits:.")
                .Build();

            Credits1 =
                factory.WithName("Developer: SupportExTraGoZ")
                .WithFont(FontStyle.Bold, Color.DeepPink)
                .Build();

            Credits2 =
                factory.WithName("Designer: gimleey")
                .WithFont(FontStyle.Bold, Color.DeepPink)
                .Build();

            Credits3 =
                factory.WithName("Really Good Mentor: You know who you're I thank you alot <3")
                .WithFont(FontStyle.Bold)
                .Build();
        }
示例#2
0
        private void PredictionInit(MenuItemFactory factory)
        {
            SelectedPrediction =
                factory.WithName("Prediction")
                .WithValue(new StringList(new[] { "Common", "OKTW/Sebby", "SPrediction", "ExoryPrediction (Soon)" }, 1))
                .Build();

            SelectedPrediction.ValueChanged += (sender, eventArgs) =>
            {
                if (eventArgs.GetNewValue <StringList>().SelectedIndex == 2)
                {
                    SPrediction.Prediction.Initialize(Prediction);
                    SPreditctionLoaded = factory.WithName("SPrediction Loaded!").Build();
                }
            };

            SelectedHitChance =
                factory.WithName("HitChance")
                .WithValue(new StringList(new[] { "Medium", "High", "Very High" }, 1))
                .Build();
        }