Пример #1
0
        private void AddCustomCounter()
        {
            Logger.log.Info("Creating Custom Counter");

            CustomCounter counter = new CustomCounter
            {
                SectionName       = "fpsCounter",
                Name              = PluginName,
                BSIPAMod          = _metadata,
                Counter           = PluginName,
                Icon_ResourceName = "FPS_Counter.Resources.icon.png"
            };

            CustomCounterCreator.Create(counter);
        }
Пример #2
0
        private void AddPPCounter()
        {
            CustomCounter counter = new CustomCounter
            {
                SectionName            = "PPHelper Counter",
                Name                   = "PP",
                BSIPAMod               = PluginManager.EnabledPlugins.First(x => x.Name == Name),
                Counter                = "PP Counter",
                Description            = "Shows how much pp your current accuracy is worth on a ranked map",
                Icon_ResourceName      = "PP_Helper.Assets.pp.png",
                CustomSettingsResource = "PP_Helper.Counters_.settings.bsml",
                CustomSettingsHandler  = typeof(PPSettingsHandler)
            };

            CustomCounterCreator.Create(counter);
        }
Пример #3
0
        private void AddCustomCounter()
        {
            Logger.Log("Creating Custom Counter");
            CustomCounter counter = new CustomCounter
            {
                SectionName = "deviationCounter",
                Name        = "Deviation Counter",
                BSIPAMod    = this,
                Counter     = "Deviation Counter",
            };

            CustomConfigModel defaults = new CustomConfigModel(counter.Name)
            {
                Enabled  = true,
                Position = CountersPlus.Config.ICounterPositions.BelowCombo,
                Distance = 1
            };

            CustomCounterCreator.Create(counter, defaults);
        }
Пример #4
0
        void AddCustomCounter()
        {
            Log("Creating Custom Counter");
            CustomCounter counter = new CustomCounter
            {
                SectionName = "notesLeftCounter",     //Name in config system. Also used as an identifier. Don't plan on changing this.
                Name        = "Notes Left",           //Display name that will appear in the SettingsUI.
                Mod         = (IPA.Old.IPlugin) this, //IPA Plugin. Will show up in Credits in the SettingsUI.
                Counter     = "NotesLeftCounter",     //Name of the GameObject that holds your Counter component. Used to hook into the Counters+ system.
            };

            CustomConfigModel defaults = new CustomConfigModel(counter.Name)
            {
                Enabled  = true,
                Position = CountersPlus.Config.ICounterPositions.AboveHighway,
                Index    = 0,
            };

            CustomCounterCreator.Create(counter, defaults); //Using no ICounterPositions for params defaults to it being able to use all 6.
        }