Bartender4

132 - Switch Profile with Spec

What I request is an automatic switch of the profile, after changing the spec.

I am using different layouts for my healing spec and my pvp spec. Many addons already switch automatic, but I'm sad to say, that bartender doesn't. So I always have to manually change the profile. Additionally it would be great too, if bartender was saving the keybindings to each profile.

User When Change
AP0PlS Mon, 01 Jun 2009 12:48:48 Create

You must login to post a comment. Don't have an account? Register to get one!

  • 5 comments
  • Avatar of profalbert profalbert Sat, 10 Oct 2009 23:12:24

    Another approach: Bartender4_Dualspec

    An addon that can assign Bartender4-profiles to specs.
    It does not use LibDualSpec-1.0!

    Last edited on 10 Oct 2009 by profalbert
  • Avatar of profalbert profalbert Thu, 24 Sep 2009 14:14:59

    My patch brings up the following errors *sometimes* when logging in

    I was not able to track down what causes it.

    [2009/09/24 14:29:00-1907-x1]: Bartender4-3\ActionBars.lua:125: attempt to index field 'db' (a nil value)
    Bartender4-3\Bartender4.lua:155: in function `?'
    CallbackHandler-1.0-3 (Ace3):146: in function <...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:146>
    <string>:"safecall Dispatcher[3]":4: in function <[string "safecall Dispatcher[3]"]:4>
    <in C code>: ?
    <string>:"safecall Dispatcher[3]":13: in function `?'
    CallbackHandler-1.0-3 (Ace3):91: in function `Fire'
    AceDB-3.0-17 (DataStore):427: in function `SetProfile'
    LibDualSpec-1.0-3 (LibDualSpec-1.0):163: in function `CheckDualSpecState'
    LibDualSpec-1.0-3 (LibDualSpec-1.0):205: in function `EnhanceDatabase'
    Bartender4-3\Bartender4.lua:35: in function <Bartender4\Bartender4.lua:30>
    (tail call): ?:
    <in C code>: ?
    <string>:"safecall Dispatcher[1]":9: in function <[string "safecall Dispatcher[1]"]:5>
    (tail call): ?:
    AceAddon-3.0-5 (Ace3):502: in function `InitializeAddon'
    AceAddon-3.0-5 (Ace3):614: in function <Ace3\AceAddon-3.0\AceAddon-3.0.lua:607>
    

    and

    [2009/09/24 14:29:05-1907-x1]: Bartender4-3\ActionBars.lua:127: attempt to index field 'actionbars' (a nil value)
    Bartender4-3\Bartender4.lua:155: in function `?'
    CallbackHandler-1.0-5 (Ace3):146: in function <...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:146>
    <string>:"safecall Dispatcher[3]":4: in function <[string "safecall Dispatcher[3]"]:4>
    <in C code>: ?
    <string>:"safecall Dispatcher[3]":13: in function `?'
    CallbackHandler-1.0-5 (Ace3):91: in function `Fire'
    AceDB-3.0-17 (DataStore):427: in function `SetProfile'
    LibDualSpec-1.0-3 (LibDualSpec-1.0):163: in function `CheckDualSpecState'
    LibDualSpec-1.0-3 (LibDualSpec-1.0):302: in function <LibDualSpec-1.0\LibDualSpec-1.0.lua:297>
    
    Last edited on 24 Sep 2009 by profalbert
  • Avatar of profalbert profalbert Thu, 27 Aug 2009 20:31:05

    http://paste.wowace.com/1039/

    diff --git a/.pkgmeta b/.pkgmeta
    index bd74148..61acfcc 100644
    --- a/.pkgmeta
    +++ b/.pkgmeta
    @@ -14,3 +14,4 @@ externals:
       libs/LibKeyBound-1.0: svn://svn.wowace.com/wow/libkeybound-1-0/mainline/trunk/LibKeyBound-1.0
       libs/LibDBIcon-1.0: svn://svn.wowace.com/wow/libdbicon-1-0/mainline/trunk/LibDBIcon-1.0
       libs/LibWindow-1.1: svn://svn.wowace.com/wow/libwindow-1-1/mainline/trunk/LibWindow-1.1
    +  libs/LibDualSpec-1.0: git://git.wowace.com/wow/libdualspec-1-0/mainline.git
    diff --git a/Bartender4.lua b/Bartender4.lua
    index 413bb2c..a179336 100644
    --- a/Bartender4.lua
    +++ b/Bartender4.lua
    @@ -32,6 +32,7 @@ function Bartender4:OnInitialize()
     	self.db.RegisterCallback(self, "OnProfileChanged", "UpdateModuleConfigs")
     	self.db.RegisterCallback(self, "OnProfileCopied", "UpdateModuleConfigs")
     	self.db.RegisterCallback(self, "OnProfileReset", "UpdateModuleConfigs")
    +	LibStub("LibDualSpec-1.0"):EnhanceDatabase(self.db, "Bartender4")
     
     	self:SetupOptions()
     
    diff --git a/Bartender4.toc b/Bartender4.toc
    index 5c0c525..bbbf715 100644
    --- a/Bartender4.toc
    +++ b/Bartender4.toc
    @@ -14,7 +14,7 @@
     ## X-License: All rights reserved.
     
     ## SavedVariables: Bartender4DB
    -## OptionalDeps: Ace3, ButtonFacade, LibKeyBound-1.0, LibDBIcon-1.0, LibWindow-1.1
    +## OptionalDeps: Ace3, ButtonFacade, LibKeyBound-1.0, LibDBIcon-1.0, LibWindow-1.1, LibDualSpec-1.0
     
     #@no-lib-strip@
     libs\LibStub\LibStub.lua
    @@ -37,6 +37,7 @@ libs\AceConfig-3.0\AceConfig-3.0.xml
     libs\LibKeyBound-1.0\lib.xml
     libs\LibDBIcon-1.0\LibDBIcon-1.0.lua
     libs\LibWindow-1.1\LibWindow-1.1.lua
    +libs\LibDualSpec-1.0\LibDualSpec-1.0.lua
     #@end-no-lib-strip@
     
     libs\SimpleSticky.lua
    diff --git a/Options/Options.lua b/Options/Options.lua
    index 657a2a4..60b96f5 100644
    --- a/Options/Options.lua
    +++ b/Options/Options.lua
    @@ -233,6 +233,7 @@ local function getOptions()
     			},
     		}
     		Bartender4.options.plugins.profiles = { profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(Bartender4.db) }
    +		LibStub("LibDualSpec-1.0"):EnhanceOptions(Bartender4.options.plugins.profiles.profiles, Bartender4.db)
     		for k,v in Bartender4:IterateModules() do
     			if v.SetupOptions then
     				v:SetupOptions()
    
  • Avatar of profalbert profalbert Thu, 27 Aug 2009 20:00:07

    should be easy with adirelles LibDualSpec-1.0

  • Avatar of persheal persheal Mon, 17 Aug 2009 17:11:28

    Similar request, can we have the possibility to switch profile when using a vehicle ?

    Might not be doable if you are in combat though.

    Problem I have is I use :

    /,1,2,3,4,5 for my main actions although the "/" is used for charge, so its not used that often. however, on vehicles it defaults to the 1st action on the action bar..

    I really hate that.

  • 5 comments

Facts

Last updated on
19 Sep 2009
Reported on
01 Jun 2009
Status
New - Issue has not had initial review yet.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.

Reported by

Possible assignees

Votes (Total: +11, Average: +2.8)