示例#1
0
        public void SetMenu()
        {
            Transition = new FKMenuHelper.MenuStruct.MouseEnter.Colors
            {
                Active  = Extensions.HexToColor("#ffffff"),
                Hover   = Extensions.HexToColor("#fbfbfb"),
                Reset   = Extensions.HexToColor("#f0f0f0"),
                FadeIn  = 400,
                FadeOut = 100
            };

            Menu.Add(0, new List <FKMenuHelper.MenuStruct>()
            {
                new FKMenuHelper.MenuStruct
                {
                    Title = "Settings",
                    Image = new Image
                    {
                        Width  = 16,
                        Height = 16,
                        Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/SettingActive.png"))
                    },
                    Invoke = new Settings(this),

                    MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                    {
                        Enter = "pack://application:,,,./Images/FK/Icons/SettingActive.png".ToImage(),
                        Leave = "pack://application:,,,./Images/FK/Icons/SettingActive.png".ToImage(),
                        Color = Transition
                    }
                },

                new FKMenuHelper.MenuStruct
                {
                    Title = "Minimap Options",
                    Image = new Image
                    {
                        Width  = 16,
                        Height = 16,
                        Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/minimap.png"))
                    },
                    Invoke     = new MinimapItem(this),
                    OwnResize  = true,
                    MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                    {
                        Enter = "pack://application:,,,./Images/FK/Icons/minimap.png".ToImage(),
                        Leave = "pack://application:,,,./Images/FK/Icons/minimap.png".ToImage(),
                        Color = Transition
                    }
                }
            });

            Menu.Add(1, new List <FKMenuHelper.MenuStruct>()
            {
                new FKMenuHelper.MenuStruct
                {
                    Title = "Minimap Settings",
                    Image = new Image
                    {
                        Width  = 16,
                        Height = 16,
                        Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/intersect.png"))
                    },
                    //  Invoke = new Overlay.OverlaySettings(this),
                    MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                    {
                        Enter = "pack://application:,,,./Images/FK/Icons/intersect.png".ToImage(),
                        Leave = "pack://application:,,,./Images/FK/Icons/intersect.png".ToImage(),
                        Color = Transition
                    }
                },

                new FKMenuHelper.MenuStruct
                {
                    Title = "Skillbar Settings",
                    Image = new Image
                    {
                        Width  = 16,
                        Height = 16,
                        Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/flags.png"))
                    },
                    Invoke     = new Overlay.Skillbar(this),
                    MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                    {
                        Enter = "pack://application:,,,./Images/FK/Icons/flags.png".ToImage(),
                        Leave = "pack://application:,,,./Images/FK/Icons/flags.png".ToImage(),
                        Color = Transition
                    }
                },

                new FKMenuHelper.MenuStruct
                {
                    Title = "Experiencebar Settings",
                    Image = new Image
                    {
                        Width  = 16,
                        Height = 16,
                        Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/pins.png"))
                    },
                    Invoke     = new Overlay.ExperienceBar(this),
                    MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                    {
                        Enter = "pack://application:,,,./Images/FK/Icons/pins.png".ToImage(),
                        Leave = "pack://application:,,,./Images/FK/Icons/pins.png".ToImage(),
                        Color = Transition
                    }
                },

                new FKMenuHelper.MenuStruct
                {
                    Title = "Misc Settings",
                    Image = new Image
                    {
                        Width  = 16,
                        Height = 16,
                        Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/droplets.png"))
                    },
                    Invoke     = new Overlay.MiscBar(this),
                    MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                    {
                        Enter = "pack://application:,,,./Images/FK/Icons/droplets.png".ToImage(),
                        Leave = "pack://application:,,,./Images/FK/Icons/droplets.png".ToImage(),
                        Color = Transition
                    }
                }
            });


            Menu.Add(2, new List <FKMenuHelper.MenuStruct>()
            {
                new FKMenuHelper.MenuStruct
                {
                    Title = "General Setting (Applies to all)",
                    Image = new Image
                    {
                        Width  = 16,
                        Height = 16,
                        Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/pins.png"))
                    },
                    Invoke     = new ElitePacks.GeneralSettings(this),
                    MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                    {
                        Enter = "pack://application:,,,./Images/FK/Icons/pins.png".ToImage(),
                        Leave = "pack://application:,,,./Images/FK/Icons/pins.png".ToImage(),
                        Color = Transition
                    }
                },

                new FKMenuHelper.MenuStruct
                {
                    Title = "Affix Settings",
                    Image = new Image
                    {
                        Width  = 16,
                        Height = 16,
                        Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/SettingActive.png"))
                    },
                    Invoke     = new ElitePacks.SetAffixes(this),
                    OwnResize  = true,
                    MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                    {
                        Enter = "pack://application:,,,./Images/FK/Icons/SettingActive.png".ToImage(),
                        Leave = "pack://application:,,,./Images/FK/Icons/SettingActive.png".ToImage(),
                        Color = Transition
                    }
                }
            });
        }
示例#2
0
        public void SetSubMenu()
        {
            FKMenuHelper.MenuStruct.MouseEnter.Colors Transition = new FKMenuHelper.MenuStruct.MouseEnter.Colors
            {
                Active  = Extensions.HexToColor("#ffffff"),
                Hover   = Extensions.HexToColor("#fbfbfb"),
                Reset   = Extensions.HexToColor("#f0f0f0"),
                FadeIn  = 400,
                FadeOut = 100
            };

            _root.SubMenu.Add(new FKMenuHelper.MenuStruct
            {
                Title = "Here you can add / delete or enable your item filters",
                Image = new Image
                {
                    Width  = 16,
                    Height = 16,
                    Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/pin.png"))
                },
                Invoke     = null,
                MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                {
                    Enter = "pack://application:,,,./Images/FK/Icons/pin.png".ToImage(),
                    Leave = "pack://application:,,,./Images/FK/Icons/pin.png".ToImage(),
                    Color = Transition
                }
            });

            _root.SubMenu.Add(new FKMenuHelper.MenuStruct
            {
                Title = "Add new Item filter",
                Image = new Image
                {
                    Width  = 16,
                    Height = 16,
                    Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/plus.png"))
                },
                Invoke       = null,
                InvokeMethod = (() => CreateFilter()),
                MouseEvent   = new FKMenuHelper.MenuStruct.MouseEnter
                {
                    Enter = "pack://application:,,,./Images/FK/Icons/plus.png".ToImage(),
                    Leave = "pack://application:,,,./Images/FK/Icons/plus.png".ToImage(),
                    Color = Transition
                }
            });

            _root.SubMenu.Add(new FKMenuHelper.MenuStruct
            {
                Title = "Delete selected filter",
                Image = new Image
                {
                    Width  = 16,
                    Height = 16,
                    Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/remove.png"))
                },
                Invoke       = null,
                InvokeMethod = (() => DeleteFilter()),
                MouseEvent   = new FKMenuHelper.MenuStruct.MouseEnter
                {
                    Enter = "pack://application:,,,./Images/FK/Icons/remove.png".ToImage(),
                    Leave = "pack://application:,,,./Images/FK/Icons/remove.png".ToImage(),
                    Color = Transition
                }
            });
        }
示例#3
0
        public void SetMenu()
        {
            FKMenuHelper.MenuStruct.MouseEnter.Colors Transition = new FKMenuHelper.MenuStruct.MouseEnter.Colors
            {
                Active  = Extensions.HexToColor("#ffffff"),
                Hover   = Extensions.HexToColor("#fbfbfb"),
                Reset   = Extensions.HexToColor("#f0f0f0"),
                FadeIn  = 400,
                FadeOut = 100
            };

            _root.Items.Add(new FKMenuHelper.MenuStruct
            {
                Title = "General Settings",
                Image = new Image
                {
                    Width  = 16,
                    Height = 16,
                    Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/SettingActive.png"))
                },
                // Invoke = new General(this),
                MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                {
                    Enter = "pack://application:,,,./Images/FK/Icons/SettingActive.png".ToImage(),
                    Leave = "pack://application:,,,./Images/FK/Icons/SettingActive.png".ToImage(),
                    Color = Transition
                }
            });

            _root.Items.Add(new FKMenuHelper.MenuStruct
            {
                Title = "Overlay Settings",
                Image = new Image
                {
                    Width  = 16,
                    Height = 16,
                    Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/intersect.png"))
                },
                //Invoke = new Overlay(this),
                MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                {
                    Enter = "pack://application:,,,./Images/FK/Icons/intersect.png".ToImage(),
                    Leave = "pack://application:,,,./Images/FK/Icons/intersect.png".ToImage(),
                    Color = Transition
                }
            });

            _root.Items.Add(new FKMenuHelper.MenuStruct
            {
                Title = "Sound & Multibox options",
                Image = new Image
                {
                    Width  = 16,
                    Height = 16,
                    Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/Multibox.png"))
                },
                Invoke     = new MultiboxFilter(this),
                MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                {
                    Enter = "pack://application:,,,./Images/FK/Icons/MultiboxActive.png".ToImage(),
                    Leave = "pack://application:,,,./Images/FK/Icons/Multibox.png".ToImage(),
                    Color = Transition
                }
            });

            _root.Items.Add(new FKMenuHelper.MenuStruct
            {
                Title = "Filters",
                Image = new Image
                {
                    Width  = 16,
                    Height = 16,
                    Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/Filters.png"))
                },
                Invoke     = new ItemFilter(this),
                MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                {
                    Enter = "pack://application:,,,./Images/FK/Icons/FiltersActive.png".ToImage(),
                    Leave = "pack://application:,,,./Images/FK/Icons/Filters.png".ToImage(),
                    Color = Transition
                }
            });

            _root.Items.Add(new FKMenuHelper.MenuStruct
            {
                Title = "Pickit",
                Image = new Image
                {
                    Width  = 16,
                    Height = 16,
                    Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/Icons/Pickit.png"))
                },
                Invoke     = null,
                MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                {
                    Enter = "pack://application:,,,./Images/FK/Icons/PickitActive.png".ToImage(),
                    Leave = "pack://application:,,,./Images/FK/Icons/Pickit.png".ToImage(),
                    Color = Transition
                }
            });
        }
示例#4
0
        public void SetSubMenuSelector()
        {
            FKMenuHelper.MenuStruct.MouseEnter.Colors Transition = new FKMenuHelper.MenuStruct.MouseEnter.Colors
            {
                Active  = Extensions.HexToColor("#fffff0"),
                Hover   = Extensions.HexToColor("#e9e9e9"),
                Reset   = Extensions.HexToColor("#ffffff"),
                FadeIn  = 400,
                FadeOut = 100
            };

            _root.SubMenuSelector.Add(new FKMenuHelper.MenuStruct
            {
                Title = "Create a new filter for Items",
                Image = new Image
                {
                    Width  = 20,
                    Height = 20,
                    Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/ItemFilter.png"))
                },
                Invoke     = null,
                MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                {
                    Enter = "pack://application:,,,./Images/FK/ItemFilter.png".ToImage(),
                    Leave = "pack://application:,,,./Images/FK/ItemFilter.png".ToImage(),
                    Color = Transition
                }
            });

            _root.SubMenuSelector.Add(new FKMenuHelper.MenuStruct
            {
                Title = "Create a new filter for Gems",
                Image = new Image
                {
                    Width  = 16,
                    Height = 16,
                    Source = Extensions.ItemImage("Gems/emerald_19")
                },
                Invoke     = null,
                MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                {
                    Enter = Extensions.ItemImage("Gems/emerald_19"),
                    Leave = Extensions.ItemImage("Gems/emerald_19"),
                    Color = Transition
                }
            });

            _root.SubMenuSelector.Add(new FKMenuHelper.MenuStruct
            {
                Title = "Create a new filter for Crafting Materials",
                Image = new Image
                {
                    Width  = 16,
                    Height = 16,
                    Source = new BitmapImage(new Uri("pack://application:,,,./Images/FK/FilterCrafting.png"))
                },
                Invoke     = null,
                MouseEvent = new FKMenuHelper.MenuStruct.MouseEnter
                {
                    Enter = "pack://application:,,,../Images/FK/FilterCrafting.png".ToImage(),
                    Leave = "pack://application:,,,./Images/FK/FilterCrafting.png".ToImage(),
                    Color = Transition,
                }
            });
        }