コード例 #1
0
ファイル: Program.cs プロジェクト: strcow/CowBuddy
        public static void Main(string[] args)
        {
            var addon =
                new Addon("CowAwareness").Add(new Clock())
                    .Add(new Clone())
                    .Add(new TowerRange())
                    .Add(new Gank())
                    .Add(new Teleport())
                    .Add(new Cooldown())
                    .Add(new Ward())
                    .Add(new WatermarkDisabler());

            addon.MenuInitialized += menu =>
                {
                    menu.AddGroupLabel("Version");
                    menu.AddLabel("release 1.0.2");

                    menu.AddSeparator();
                    menu.AddGroupLabel("Todo List");
                    menu.AddLabel("- try to fix cooldown for some special abilities");

                    menu.AddSeparator();
                    menu.AddGroupLabel("Credits");
                    menu.AddLabel("This project comes from lots of different sources");
                    menu.AddLabel(" if you think I should credit you, message me on EB");
                    menu.AddLabel("- Lizzaran for SFXUtility, got lots of nice things from him");
                    menu.AddLabel("- Kurttuu for the thread design");
                    menu.AddLabel("- MrArticuno's Tower Range code (with small improvements by me)");
                    menu.AddLabel("- Addon by strcow from elobuddy.net");
                    menu.AddLabel("https://www.elobuddy.net/topic/8526-cowawareness-utility-aio-my-way-always-updated");
                };
        }
コード例 #2
0
ファイル: Feature.cs プロジェクト: strcow/CowBuddy
        public virtual void Load(Addon owner)
        {
            this.Menu = owner.Menu.AddSubMenu(this.Name, this.Name);
            this.Menu.AddGroupLabel("Settings");

            var toggleFeature = this as IToggleFeature;

            if (toggleFeature != null)
            {
                this.ToggleFeatureLoad(toggleFeature);
            }

            this.Initialize();
        }