Exemplo n.º 1
0
 public void ApplySettings(QuickButtonSettings settings, Action <QuickButtonSettings> saveSettings)
 {
     this.settings     = settings;
     this.saveSettings = saveSettings;
     this.mainButton.SetPosition(settings.XLocation, settings.YLocation);
     this.showAnimation = this.animationFactory.Create(settings.ShowAnimationType, 40);
     this.hideAnimation = this.animationFactory.Create(settings.HideAnimationType, 40);
     this.lastActive    = 0;
     this.mainButton.Button.Show();
 }
Exemplo n.º 2
0
        public QuickButtonModule()
        {
            var uiParent = Global.Frames.UIParent;

            this.defaultSettings = new QuickButtonSettings()
            {
                XLocation = uiParent.GetWidth() * 0.75,
                YLocation = uiParent.GetHeight() * 0.75,
            };
            var addonRegistry = ModuleFactory.ModuleFactorySingleton.GetModule <AddOnRegistry>();

            this.buttonCluster = new ButtonCluster(new ClusterButtonAnimationFactory(), new Wrapper(), addonRegistry);
        }