Download
(150Kb)
Download
Updated: 12-11-13 11:17 AM
Pictures
File Info
Updated:12-11-13 11:17 AM
Created:09-06-10 08:13 PM
Downloads:30,315
Favorites:77
MD5:

m ActionBars  Popular! (More than 5000 hits)

Version: 5.1.3
by: Monolit [More]

m_ActionBars or monoActionBars

  • IMPORTANT: if you update to version 4.x from 3.x and older, you must update cfg.lua because it was redesigned.

About
  • Originally inspired by zork's amazing work with rActionBarStyler and rActionButtonStyler.
  • m_ActionBars is a very flexible lightweight add-on that handles your action bars.
  • This add-on is making use of default blizzard's action bars
  • This add-on aimed mainly for people with at least some experience in using lua-configured add-ons as all settings located in cfg.lua.

Key features
  • no GUI;
  • allows user to use up to 6 action bars (5 default + 1 extra action bar);
  • removes all the default action bars textures;
  • supports vehicle, totem, pet, stance and shapeshift bars;
  • built in totem timers functionality and ability to remove totems by right-clicking them;
  • custom exit vehicle button position;
  • styles action buttons' borders;
  • out of range/mana coloring;
  • allows player to choose the orientation and amount of rows for each bar;
  • grants the ability to set custom position, size and spacing between the buttons;
  • allows user to set number of visible buttons for each bar;
  • the ButtonsStyler module allows to hide/show hotkeys, macro names, item count numbers, and also to set custom font for each of those text fields.
  • key-bindings shortcuts;
  • built in HoverBind functionality (/kb to enter bindings mode) that also works directly from spell book and macros menu;
  • supports MicroMenu bar;
  • option to show bars only in combat;
  • 2 special bars for raid marks and world marker flares;
  • option to control bars' opacity;

Credits
  • Zork - for rActionBarStyler
  • Nightcracker - for ncHoverBind
  • Tukz
  • Allez

====== v. 5.1 rev 3 ======
m_ActionBars: added button_size value for exit vehicle button to cfg.lua (only for user-placed buttons)
m_ActionBars: adjusted default user_placed position for exit vehicle button
m_ActionBars: fixed missing micro buttons
m_ActionBars: updated state driver for override bar (should fix galakras problem)

====== v. 5.1 rev 2 ======
m_ActionBars: re-implemented script that enables 4 additional action bars by default
m_ActionBars: force action bars grid to always be visible
m_ActionBars: fixed styling for flyout buttons with more than 6 buttons

====== v. 5.1 rev 1 ======
m_ActionBars: .toc bump for 5.3
m_ActionBars: .cfg structure updated
m_ActionBars: exit vehicle button when docked will always have its position locked by last available Bar1 button
m_ActionBars: PARTY/RAID events replaced with new GROUP_ROSTER_UPDATE event to properly handle mark bars
m_ActionBars: removed couple config values from RaidMark and WorldMarker bars
m_ActionBars: fixed the issue with bars not disappearing properly during a pet battle
m_ActionBars: raid mark bar will be shown in party group even if you are not a leader

====== v. 5.0 rev 3 ======
m_ActionBars: added [petbattle][overridebar] macro conditions to the OverrideBar frame (to fix some bars issues in DMF quests)
m_ActionBars: removed holy power coloring for Templar's Verdict in RangeCheck module (tullaRange update)
m_ActionBars: adjusted visibility conditions for raid mark bar
m_ActionBars: fixed new action bars texture names (to hide)
m_ActionBars: added possess bar (swaps with stance bar)
m_ActionBars: added styling for possess bar
m_ActionBars: reworked how the main bar works
m_ActionBars: propperly implemented OverrideBar
m_ActionBars: fixed taint issues with extra action bar (bar6)
m_ActionBars: updated raid / world mark bars spawning logic
m_ActionBars: code refactoring cfg.lua MUST BE UPDATED
m_ActionBars: removed depricated frames, updated styling function, fixed hooks
m_ActionBars: updated RaidMark with new group status requests
m_ActionBars: fixed extra action bar not updating on page swap, locking it to page 1
m_ActionBars: bye bye totembar, you sure wasted allot of my time
m_ActionBars: removed totembar styling functions and config vars
m_ActionBars: removed raid button from micro menu (replaced with companion and mounts button)
m_ActionBars: removed updater script to keep micro menu after swapping a spec
m_ActionBars: reworked art removing function
m_ActionBars: enabled stance bar & updated stance bar styling
m_ActionBars: Broker_Equipment updated to reflect API changes
m_ActionBars: new petbar varriable in cfg file - scale
m_ActionBars: simplified mAB.ShowInCombat function using RegisterStateDriver
m_ActionBars: added petbar holder state conditions so it's no longer clickable when invisible
m_ActionBars: fixed taint on manual page swap when in combat
m_ActionBars: updated cfg.lua, changed var names, but old versions should be fully compatible

====== v. 4.2 rev 2 ======
m_ActionBars: reworked button styler module, now compatible with 4.3
m_ActionBars: removed old cooldown scaling function (replaced with a simplier solution)
m_ActionBars: accidentally included old version of the add-on that caused huge CPU cycles leaks, so it's fixed now
m_ActionBars: minor fix for RangeCheck module
m_ActionBars: marking bar will now be available in party even if you are not a leader
m_ActionBars: fixed macro text being hidden even if set otherwise in cfg.lua
m_ActionBars: implemented new ExtraBar button (4.3)
m_ActionBars: reposition (update cfg.lua) for new ExtraActionButton1
m_ActionBars: slight ExtraActionBarButton1 rework
m_ActionBars: few fixes for the ButtonStyler module to avoid taint
m_ActionBars: little fix for the marking bar, now you should only see it in raid if you're either raid leader or assistant

====== v. 4.1 rev 5 ======
m_ActionBars: forgot to include default config in cfg.lua

====== v. 4.1 rev 4 ======
m_ActionBars: typo in combat visibility function for raid marks bar
m_ActionBars: raid marks bar visibility conditions
m_ActionBars: removed 'hide side bars' option as it was a little confusing, /extra will now toggle all hidden/disabled bars instead (remember to update cfg.lua)

====== v. 4.1 rev 3 ======
m_ActionBars: petbar will not 'jump' for shamans if it does not overlap with totembar anymore
m_ActionBars: added TotemBar holder to the testing function
m_ActionBars: added Dungeon Journal and Raid buttons to MicroMenu bar

====== v. 4.1 rev 2 ======
m_ActionBars: adjusted petbar and micromenu position due to scale of those bars, so changes in cfg.lua required for those 2 bars
m_ActionBars: removed old totembar scale and opacity vars
m_ActionBars: petbar repositioned to be right on top of your 2 main action bars (cfg.lua)
m_ActionBars: removed specific petbar position for Death Knights and Shamans
m_ActionBars: default value for ammount of buttons displayed @ stance bar now set to 6
m_ActionBars: fixed EVB_user_placed var
m_ActionBars: implemented 1 more action bar
m_ActionBars: modified visibility conditions for ExtraActionBar
m_ActionBars: added ability to set keybinginds for new ExtraActionBar via /kb mode
m_ActionBars: implemented experimental fix for a prowling bar hack incorrectly functioning after talent switch
m_ActionBars: removed MainMenuBar_UpdateKeyRing() call due to 4.2 changes
m_ActionBars: complete code overhaul and restructure
m_ActionBars: config file redesigned so it's easier to maintain and update it, so unfortunately you must update your cfg.lua

====== v. 3.7 rev 5 ======
m_ActionBars: implemented style for flyout multicast buttons (hunters, mages and warlocks rejoice!)
m_ActionBars: fix for recall totems button position
m_ActionBars: and another fix for totembar slot buttons having wrong size and missplaced anchores
m_ActionBars: reanchor totemtimers frame to buttons' slots so we can have them for any "Call" page
m_ActionBars: totembar moved down a little to compensate for summon button position adjustements

====== v. 3.7 rev 4 ======
m_ActionBars: fixed a bug with totembar for low level shamans who didn't have any totems yet

====== v. 3.7 rev 3 ======
m_ActionBars: disabled default PetActionBar frame
m_ActionBars: fixed some transparent frames being clickable
m_ActionBars: petbar visibility and transparency adjusted in cfg.lua
m_ActionBars: added totem timers coloring according to the totem group (earth, fire, water, wind)
m_ActionBars: fixed hotkey text on MulticastSummon/Recall button to match the style of other hotkeys
m_ActionBars: .toc update for 4.1

====== v. 3.7 rev 2 ======
m_ActionBars: bugfix for totem bar

====== v. 3.7 rev 1 ======
m_ActionBars: reworked the way TotemBar spawns, so now user has full controll of buttons (size, spacing)
m_ActionBars: new config section for totem bar in cfg.lua
m_ActionBars: main/bottomleft/totem-bars moved down few pixels
m_ActionBars: totem bar will now be visible for <30 level shamans
m_ActionBars: bugfix for totem bar
m_ActionBars: disabled default PetActionBar frame
m_ActionBars: fixed some transparent frames being clickable
m_ActionBars: petbar visibility and transparency adjusted in cfg.lua

====== v. 3.6 rev 3 ======
m_ActionBars: removed mainmenubar artwork at the bottom of the screen

====== v. 3.6 rev 2 ======
m_ActionBars: fixed hotkeys sometimes not working after talent switch
m_ActionBars: fixed the problem causing additional bars to disapear after reload ui / zoning
m_ActionBars: fixed some minor scaling issues with buttons overlay textures

====== v. 3.6 rev 1 ======
m_ActionBars: fixed the main action bar page for rogues during shadow dance
m_ActionBars: added little fix for world mark bar to prevent tainting (it will be hidden during the combat)
m_ActionBars: also changed available options for world mark bar
m_ActionBars: flares bar will only be visible for party/raid leaders.
m_ActionBars: implemented special visibility conditions for Main Action Bar, make sure to UPDATE CFG.LUA
m_ActionBars: added ability to completely disable main action bar
m_ActionBars: added opacity setting for totem bar

====== v. 3.5 rev 1 ======
m_ActionBars: implemented action bars alpha
m_ActionBars: added option to set actionbar alpha to cfg.lua
m_ActionBars: added option to set fade out alpha for action bars with "show on mouseover" enabled
m_ActionBars: new position for raid marks bar
m_ActionBars: removed pitchbar code
m_ActionBars: Removed Holy power spells that only do linear scaling (Inquisition)
m_ActionBars: REMEMBER TO UPDATE YOUR OLD CFG.LUA!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

====== v. 3.4 rev 1 ======
m_ActionBars: MiddleButton is now bindable via /kb
m_ActionBars: you can keybind spells straight from your spell book via /kb
m_ActionBars: fixed gametooltips sometimes not disappearing even if you're not in key bindings mode
m_ActionBars: added specific option to 'disembed' exit vehicle button from the main bar and to set custom position for it
m_ActionBars: holder name and test mode for exit vehicle button
m_ActionBars: RangeCheck update
m_ActionBars: added HoverBind functionality for totem bar
m_ActionBars: now sets a single key binding to the selected set of totems!
m_ActionBars: getting rid of the default totem bar multicast buttons' borders
m_ActionBars: and from the "empty" totem button too!
m_ActionBars: added right click to destroy totem functionality
m_ActionBars: implemented totem timers right on the totem bar buttons
m_ActionBars: added slightly transparent background to the totem timer
m_ActionBars: added option to enable/disable totem timers in cfg.lua (cfg.totembar_enable_timers)
m_ActionBars: added overlay coloring for exit vehicle button

====== v. 3.2 rev 1 ======
m_ActionBars: added "show when in combat" feature
m_ActionBars: cfg.lua updated again :S Captain Obvious was waay to generous this time
m_ActionBars: added /tm or /mab function allows user to enter testmode to see bars' holders
m_ActionBars: the buttons grid on main actionbar will be hidden by default to prevent it overlaping exit vehicle button
m_ActionBars: new border texture for exit vehicle button to match other bars style
m_ActionBars: adjusted exit vehicle button's dimensions so it fits exactly @ 8th button slot
m_ActionBars: exit vehicle button now propperly anchored to ActionButton8 slot
m_ActionBars: added overlay for totembar's holder
m_ActionBars: added 2 special bars: RaidIcon and WorldMarker
m_ActionBars: applied buttons style for RaidIcon and WorldMarker bars
m_ActionBars: added Mouseover and ShowInCombat functionality to special raid bars
m_ActionBars: overlay highlight for raid mark bars
m_ActionBars: orientation settings for raid mark bars now in cfg.lua
m_ActionBars: raid mark bar's holder frames adjusted relatively to orientation setting
m_ActionBars: tooltip anchor changed to "ANCHOR_TOPRIGHT" for raid mark bars
m_ActionBars: fixed typo preventing /eb and /extra commands to function properly

====== v. 3.1 rev 6 ======
m_ActionBars: cfg.lua updated with new options so you HAVE TO reconfigure your bars
m_ActionBars: added abiliy to set spacing for each bar individually
m_ActionBars: option to show micromenu on mouseover
m_ActionBars: fixed HotKeys apearing in combat even if cfg.hide_hotkey set to true

====== v. 3.1 rev 5 ======
m_ActionBars: fixed MicroMenu bar disappearing after talent switch

====== v. 3.1 rev 4 ======
m_ActionBars: cleaned up code a bit, removed few unused variables etc.
m_ActionBars: hidden bars toggling function reworked to avoid conflicts with other visibility options you may set in cfg.lua
m_ActionBars: added option to scale Micromenu
m_ActionBars: few bars position adjustments in cfg.lua
m_ActionBars: fixed vertical layout with multiple rows

====== v. 3.1 rev 3 ======
m_ActionBars: fixed mainbar button1 anchor
m_ActionBars: fixed /eb and /extra commands (now they actually do work
m_ActionBars: hidden bars toggling function reworked to avoid conflicts with other visibility options

====== v. 3.1 rev 2 ======
m_ActionBars: fixed mainbar holder size
m_ActionBars: fixed totembar error when it's actually disabled
m_ActionBars: Captain Obvious passed by the other day and left more comments in cfg.lua file
m_ActionBars: cleaned up code a bit, removed few unused variables etc.

====== v. 3.1 rev 1 ======
m_ActionBars: buttons borders always visible now
m_ActionBars: implemented "show on mouseover" feature, make sure you update you cfg file!
m_ActionBars: added micromenu, cfg.lua updated
m_ActionBars: added option to disable additional bars

====== v. 3.0 rev 4 ======
m_ActionBars: few code optimizations
m_ActionBars: fixed the mainbar holder size so it doesn't screw mainbar positioning

====== v. 3.0 rev 3 ======
m_ActionBars: added little script to enable default optional actionbars

====== v. 3.0 rev 2 ======
m_ActionBars: added key-bindings shortcuts
m_ActionBars: major code revamp
m_ActionBars: mainbar modifications are now done via RegisterStateDriver func (credits to Tukz)
m_ActionBars: config file is backward compatible!
m_ActionBars: fixed main bar size, position and rows settings
m_ActionBars: now includes ncHoverBind as module (credits to Nightcracker)
m_ActionBars: added global function name for toggling key bindings mode
m_ActionBars: OOR and OOM colors smoothened up a bit in cfg.lua

====== v. 2.1 rev 3 ======
m_ActionBars: just a small fix for pitchbar preventing empty slide bar from showing

====== v. 2.1 rev 2 ======
m_ActionBars: Added PitchBar modifications (position and scale may be set in cfg.lua)

====== v. 2.1 rev 1 ======
m_ActionBars: consolidated 2 of the bar styling functions
m_ActionBars: allow player to choose the exact amount of buttons he want to see for each bar
m_ActionBars: new ability to set up to 3 rows for each action bar (together with the ability to set bar orientation this should cover all possible bar layouts)
m_ActionBars: bar holder size now adjusts dynamically when you change the amount of visible buttons
m_ActionBars: added option for totembar scaling
m_ActionBars: added extensive options list
m_ActionBars: all the options transfered into a new file cfg.lua
Optional Files (0)


Post A Reply Comment Options
Unread 09-07-10, 01:14 AM  
leks0d
A Kobold Labourer
 
leks0d's Avatar

Forum posts: 1
File comments: 71
Uploads: 0
Пожелания приветствуются?
Было бы замечательно прикрутить сокращение горячих клавиш (Shift+MouseButton5 -> SB5) и т.д., как например в доминосе.
Last edited by leks0d : 09-07-10 at 07:12 AM.
Report comment to moderator  
Reply With Quote
Unread 09-07-10, 09:34 AM  
ezarra
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 123
File comments: 47
Uploads: 2
Short Bars

All the action bars are showing up as short 8 button bars. I looked at the lua but didn't see an obvious setting for setting the bars to either normal or short without going in and changing the calls for mainbar, bottomleftbar, etc.

I guess this is the way to go, though I would suggest setting something up top in the configuration area

local barstyle = {
[1] = { style="short" }, --main bar
[2] = { style="regular" }, --bottomleft



Or else integrate it into the existing frame-positions:


local frame_positions = {
[1] = { a= "BOTTOM", x= 58, y= 218, style="short" }, -- MainBar

which is, now I think about it, probably better.
__________________
Dude, if you wanted to win, why'd you let me play?
Report comment to moderator  
Reply With Quote
Unread 09-07-10, 11:08 AM  
Evilsithgirl
A Kobold Labourer
 
Evilsithgirl's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 11
Uploads: 1
I am only getting the main bar to show (and the shapeshift bar). I've set hide side bars to false however they do not show (even though I know there are actions on them) and the /extra command does nothing for me.
Report comment to moderator  
Reply With Quote
Unread 09-07-10, 02:14 PM  
Monolit
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 81
File comments: 428
Uploads: 7
Re: Short Bars

Originally posted by ezarra
All the action bars are showing up as short 8 button bars. I looked at the lua but didn't see an obvious setting ...
Oh Gosh people, would you make haste slowly?
This add-on was developed for whole 2 days (!) and in-before making any options my aim was to simply get actionbars functioning like they normally should. Having done that, now I can put some time into making it more user friendly thus new version (1.1) has a proper configuration file with a decent number of settings including stuff like specific number of rows and visible buttons for each bar.

Evilsithgirl
This add-on utilizes default blizzard action bars so you have to enable them in interface menu under ActionBars section.
Last edited by Monolit : 09-07-10 at 02:15 PM.
Report comment to moderator  
Reply With Quote
Unread 09-07-10, 04:01 PM  
doomy
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
First off, great addon! Thanks for getting this working so fast on beta.

Even with no gui it was very easy to edit, but I do have a suggestion. If you can would it be possible to add an area in the cfg.lua file to turn back on the display of bags and the micro menu? I already have so much crap keybound that it's hard to have to do those as well.

Thanks!
Report comment to moderator  
Reply With Quote
Unread 09-07-10, 08:14 PM  
tukz
A Fallenroot Satyr
 
tukz's Avatar
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 50
Uploads: 3
hehehe you wrote a "angry" comment to Blizzard with SetupBonusActionBar() function too. I hate Blizzard for what they have done with bonusbar in cataclysm. I'm actually using the same method since first day mods are enabled and seriously i don't understand why Blizzard did that this way.
Report comment to moderator  
Reply With Quote
Unread 09-08-10, 04:06 AM  
Monolit
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 81
File comments: 428
Uploads: 7
Originally posted by tukz
hehehe you wrote a "angry" comment to Blizzard with SetupBonusActionBar() function too. I hate Blizzard for what they have done with bonusbar in cataclysm. I'm actually using the same method since first day mods are enabled and seriously i don't understand why Blizzard did that this way.
Oh Dear, indeed that thing was driving me nuts before I realized that I have to replace whole function to get my bonusbar properly functioning :/
Lets hope they will change it... But well, if they don't, I guess this is the only way to solve this issue without major taint issues. After all it's working!
Report comment to moderator  
Reply With Quote
Unread 09-08-10, 07:36 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Tell me. I tried my rActionBarStyler on beta yesterday. What have they done to the BonusActionBar? What is this SetupBonusActionBar() you are talking about?
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 09-08-10, 09:46 AM  
Voxxel
A Chromatic Dragonspawn

Forum posts: 193
File comments: 44
Uploads: 0
uf

hello,
quick question: What is that Unitframe addon you used on those screenshots please?
Report comment to moderator  
Reply With Quote
Unread 09-08-10, 11:50 AM  
Monolit
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 81
File comments: 428
Uploads: 7
Originally posted by zork
Tell me. I tried my rActionBarStyler on beta yesterday. What have they done to the BonusActionBar? What is this SetupBonusActionBar() you are talking about?
http://github.com/tukz/wow-ui-source...onBarFrame.lua

search for SetupBonusActionBar

Originally Posted by Voxxel
hello,
quick question: What is that Unitframe addon you used on those screenshots please?
it's my oUF layout: oUF_mono (can be found here)
Last edited by Monolit : 09-08-10 at 11:50 AM.
Report comment to moderator  
Reply With Quote
Unread 09-08-10, 01:52 PM  
tukz
A Fallenroot Satyr
 
tukz's Avatar
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 50
Uploads: 3
edit: replied at the same time as monolit. :/

Originally posted by zork
Tell me. I tried my rActionBarStyler on beta yesterday. What have they done to the BonusActionBar? What is this SetupBonusActionBar() you are talking about?
http://github.com/tukz/wow-ui-source...onBarFrame.lua
ctrl + f : SetupBonusActionBar()

atm we need to rewrite this shit to have a working bonusbar but cause taint with vehicle. That's what i have, Monolit use the same method at the moment.

Code:
-- TEMP REWROTE OF A SHITTY BLIZZZARD FUNCTION FOR BUILD 12875
-- SERIOUSLY BLIZZARD WHY YOU RESCALE BONUS BUTTON 1 TO 12 WHEN BONUSBAR SWITCH
-- AND WHY YOU REPARENT IT EACH TIME? SERIOUSLY LOL
-- WE CAN DO ANYTHING AT THE MOMENT WITH IT WITHOUT CRASHING OR TAINTING UI.
-- REWROTE UNTIL WE FIGURE OUT A WAY TO NOT REPARENT - RESIZE WITHOUT TAINTING/CRASH
-- THX FOR DESTROYING BONUS BAR, OMFG
do
    if TukuiCF.actionbar.enable ~= true then return end
    TukuiDB.SwitchBar = function()
        local barType = GetBonusBarOverrideBarType() or "default"
        BonusActionBarFrame.currentType = barType
    end
    SetupBonusActionBar = TukuiDB.SwitchBar
end



Originally posted by Monolit
Oh Dear, indeed that thing was driving me nuts before I realized that I have to replace whole function to get my bonusbar properly functioning :/
Lets hope they will change it... But well, if they don't, I guess this is the only way to solve this issue without major taint issues. After all it's working!
Yeah but it's tainting/crash sometime (rarely) when entering or exiting vehicle while in combat but it work 100% fine with bonus bar/stance. Also i see you are using EnableMouse() bar switch and buttons. It doesn't taint UI at all? i doubt a lot on this. I tried everything, EnableMouse(), SetScale(), SetPoint() while the bar switch and nothing was working 100% fine while entering/exiting vehicle in combat, same for just a stance bar switch, it taint when in combat.
Last edited by tukz : 09-08-10 at 01:54 PM.
Report comment to moderator  
Reply With Quote
Unread 09-09-10, 09:49 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
I actually know why they did this. I asked myself why they did not do this until now.

On live they have duplicate actionbuttons when in a vehicle. So if you hide the vehicle frame completly you still have all the buttons on your bonusactionbar.

I have no clue why Blizz did not make use of that earlier or even worked around it.

So they finally kicked the vehicle buttons and reparented and rescaled the bonusactionbarbuttons instead when in a vehicle.

Good choice, to bad it gives us a hard time using the BonusActionBarFrame again.

But I think this should be easy to handle. We just need to hook the Blizzard API widgets they are using to re-parent, re-size.

Example for SetTexCoord on a given frame "nt"

Code:
  local function ntSetVertexColorFunc(nt, r, g, b, a)
    if nt and r==1 and g==1 and b==1 then
      nt:SetVertexColor(1,0,0,1)
    end        
  end  
  
  local nt = texture
  hooksecurefunc(nt, "SetVertexColor", ntSetVertexColorFunc)
Same can be done for SetParent, SetSize and so on. Just make sure you check the values inside that function. Otherwise you cause a stack overflow.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 09-09-10 at 09:54 AM.
Report comment to moderator  
Reply With Quote
Unread 09-09-10, 11:28 AM  
Monolit
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 81
File comments: 428
Uploads: 7
Originally posted by zork
</...>
That's a very good point there, sir. Gonna play around a bit with such hooks, thanks for the idea :]
Report comment to moderator  
Reply With Quote
Unread 09-10-10, 08:10 AM  
Hoern
Not THAT kind of Orc
 
Hoern's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 13
Uploads: 10
Just a suggestion. If you're using cfg.lua (loving it, btw), could you include a "cfg-sample.lua" into archives instead of a cfg.lua? That way configs aren't getting overwritten every time the addon is updated.
Report comment to moderator  
Reply With Quote
Unread 09-13-10, 06:55 PM  
dyerseve
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
I noticed in your screen shot you're using the Mono UI. Do you have a Cata version available for public download? I tried the regular one and while some parts of it works, I get a bunch of errors and the unit frames don't work.

Thanks!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.