Okay still looking into doing the addons, I think I have worked out what I need to do with the button template, it needs to be type spell not action, then it does not need an ActionID, I also need to pass the spell I am adding in the Create function parameters.
I also need to remove the parts that are specific to "Action" buttons, and add anything that is needed for "Spell" buttons. I am not good with widget coding, my strength is with LUA coding, so I must admit I am struggling over this. I hope that I am on the right track here.
- Curse Premium
Member for 14 years, 6 months, and 27 days
Last active Fri, Sep, 13 2019 16:17:23
- 0 Followers
- 13 Total Posts
- 0 Thanks
Jun 7, 2008Posted in: General AddOnsQuote from Nevcairiel »
What you want to do is perfectly possible, i would start writing a simple button prototype that allows to use items, spells, and macros without Action IDs.
You would then create a new Bar Module based on my ButtonBar template (like i said, look for example at the BagBar, it creates a _very_ basic ButtonBar - essentially you just insert the buttons you have in "self.buttons" and the ButtonBar code will align them for you)
I could probably help you with that button prototype, because i was planning to create one like that for quite some time now.
Sadly, my time is limited :(
I'll give creating the button prototype a go, if I have trouble, I will ask for help again. I never thought to look at the Bag Bar, hopefully that will point me onto the right track, I had checked, Stance, Pet and Action Bars, when I tried to remove the module specific coding to get just a template to start with, I couldn't seem to get it to work, now I have new ideas.
Also knowing I have to build a button template is invaluable, that really had me stumped, I presume I can look at Button.lua is the prototype I need to look at for an idea on how to create my own.
Jun 7, 2008Posted in: General AddOnsQuote from ant1pathy »
If you get some Autobar esque things working, would you possibly release them >.> ?
Of course, that was the intention, at present I have set up a makeshift way of doing it with profiles and using one of the unused action bars, but ultimately I want bars that will automatically add the appropriate spells.
The idea is not actually mine, the author of Bartender4 said he had intended doing them, but decided he wanted a lean package. If I am able to work it out, I would release each bonus bar as a seperate package allowing users to add whichever special bars they want to their Bartender 4 install.
As I said, I would like these bars to be the first of many plugins, other options I could see would be Trinket Bar, Weapon Set Bar (to change weapons in combat), Buff Bar which has bars for Party1 to Party5, they could have the unit property set so it auto casts on that player then they could be moved besides/underneath the player frame, etc... the possibilities are only limited by users imagination.
Jun 6, 2008Posted in: General AddOnsQuote from Kerecha »
Honestly it feels like it would be a better and easier choise to just use Autobar.
Maybe, but that doesn't give the satisfaction of having made it myself, besides if I write it myself, it will do exactly what I want, the way I want it, add to that, I would like it to be a Bartender4 plugin so its configured inside the Bartender 4 configuration screen instead of seperate.
Jun 6, 2008Okay, I decided I am going to make some of the bar Plugins, or at least try to. I have in mind what ones I will do, Hunter Aspect Bar, Hunter Tracking Bar, Hunter Trap Bar, Mage Teleport Bar, Warlock Summoning Bar, Paladin Blessing Bar and a general Class Bar which will contain spells like, Priest Shadow Form and Shadow Fiend, Shaman Ghost Wolf, Earth Elemental, Fire Elemental and Bloodlust/Heroism, and Mage Water Elemental. Obviously the Class Bar will only put spells on it from the current class.Posted in: General AddOns
So, I have made up my mind, worked out what plugins I will make, I have been playing around and have been able to copy the pet bar so that there is two of them, the second registered as a different name, so that means two with two different option settings, the first step to plugins, bartender can see them.
Now I am stuck, there seems to be several templates in the Bartender4 directory, what look like blank bar lua's.
1. Which one am I supposed to use? I want the bars to be similar to the pet and stance bar, 10 buttons max, no dragging and dropping spells onto them.
2. I don't want the bars to use ActionID's, I know this is possible with SecureButtonTemplate, so my question is, Can it be done in Bartender4? If yes, How?
I would really appreciate some help with this, as I would like to get started, and hopefully produce the first of many Bartender4 Plugins.
Jun 3, 2008Okay, let me see if I have this right, to create my class bar:Posted in: General AddOns
1. I make a copy of Bars.lua which is the basic framework for the bar.
2. At the top I register it by putting 'local BT4ClassBar = Bartender4:NewModule("ClassBar", "AceEvent-3.0")'
3. In Bar:Create register the events I want to watch.
4. Create an event handler to call an update function to update the buttons automatically when an event is fired such as a new spell is learned etc...
5. Rename the various variables in the lua to be meaningful to my Class Bar plugin.
Jun 3, 2008Here is an idea, how about a new bar which is based off of the Stance Bar, but can only be made visible if the character does not have a stance bar. It could be called a Class Bar, 10 button at 30 x 30, which can have spells dragged and dropped onto it like a normal Action Bar, and the keybindings could be automatically mapped to the Special Action Keys like the Stance Bar.Posted in: General AddOns
Okay, yeah I am lazy and don't want to write a new addon :p
Jun 3, 2008Well my modified version of AspectedAgain, is alot more then just hunter aspects, it has warlock summons, mage portals, shaman ghost wolf, heroism/bloodlust, and elementals, etc... Its kinda why I don't want to lose it.Posted in: General AddOns
Me I am mostly chasing after the problem, because of curiousity, I find it strange Bartender 4 can see them, draw them, and use keyboard input for them but not mouse, it seems, bizzare.
Jun 3, 2008Posted in: General AddOnsQuote from Nevcairiel »
I'm sorry, i cannot support 3rd Party Addons at this time, i suggest contacting the author of said addon.
Saying that, BT4 is very flexible now, and it would be really easy to write a new Aspects Bar based on purely the Bartender4 Module Interface
I have done some rewriting of the addon in question for my own personal use, it works by hooking the shapeshift/stance bar functions, and adding its own buttons for the extra classes. As far as the base blizzard interface is concerned they are real Shapeshift/Stance buttons, thats why they still work on the hotkeys for Shapeshift/Stance buttons. Bartender 4 sees the buttons, changes the graphics, everything, except respond to mouse clicks.
I understand from reading your code, you make a copy of the shapeshift buttons and create them on the stance bar, you then on the fly keybind the new buttons to the old buttons. All of that is working fine for keyboard input, it is only the mouse click that fails to send any response to the interface.
If I need to write a new addon, then so be it, is there any public interface to the StanceBar Module to allow other addons to add buttons to the Stance Bar?
Jun 2, 2008Question about Stance Bar.Posted in: General AddOns
I use an addon called AspectedAgain to add buttons to the Stance Bar, namely Hunter Aspects, hence the name. The Stance Bar is populated with the new spells on log on just fine. If I use the Blizzard default Keybindings for Special Action 1 (Ctrl-F1) etc... I can change aspects and the graphic on the Bartender Stance Bar changes perfectly to show which aspect is active.
So far so good, right?
Wrong, it seems spells added by this addon can be seen by Bartender 4, can be seen by the Blizzard interface, but the Bartender 4 Buttons themselves can not be pressed to change aspects, at present my only option is to use the hot keys. Blizzard Stances like stealth work just fine.
Coincidently, Bartender 3 worked fine with this addon, though it used to require a "/reload" to see the buttons, once it detected the buttons it would interact fine. This behaviour has left me confused, as the option screen says I have 4 Stance Buttons, will allow me to organise the horizontally or vertically, everything works except the mouse press on the buttons.
Jun 2, 2008Posted in: General AddOnsQuote from Nevcairiel »
No, there isnt.
However, you can access the table |Bartender4:GetModule("ActionBars").actionbars| .. it contains all action bars registered. Good luck with porting that addon
Thanks alot Nevcairiel, using that, and a little peeking inside your code, I was able to update the addon to use Bartender 4 instead of Bartender 3. It ended up being a lot easier then I thought, once you gave me the start. Changing the Button names to BT4Button1Secure instead of BT4Button1 gave me a little grief until I found out the new naming convention.
Jun 2, 2008I am still trying to do a port of Macrotexter to Bartender 4 Bars, my main problem seems to be that the addon uses the following Bartender 3 function "Bartender3:GetBarObject(barid, special)" to get the bars.Posted in: General AddOns
Is there an equivilent Bartender 4 function? I can't seem to find one.
Jun 2, 2008I use an Addon that does a similar function to the Auto-Assist feature. The Addon is called Macrotexter: http://www.curse.com/downloads/details/6520/Posted in: General AddOns
I tried porting it to Bartender 4, but had no luck, I was wondering, if the MacroText of the Auto-Assist feature might be extended to have spells use set categories as Macrotexter does. I know this is getting away from an action bar addon, but I think this would be a welcomed addition.
- To post a comment, please login or register a new account.