Download
(14Kb)
Download
Updated: 08-16-18 01:18 PM
Pictures
File Info
Compatibility:
Battle for Azeroth (8.0.1)
Updated:08-16-18 01:18 PM
Created:01-09-09 09:43 PM
Downloads:129,627
Favorites:284
MD5:

rActionBar  Popular! (More than 5000 hits)

Version: 800.20180816
by: zork [More]


Intro

rActionBar is a framework for Blizzard actionbars. It does nothing on its own, needs a layout like rActionBar_Zork.
API documentation
rActionBar API documentation
Quick-Links
rActionBar, rActionBar_Zork, rBuffFrame, rBuffFrame_Zork, rButtonTemplate, rButtonTemplate_Zork
Requires
rLib
Git
https://github.com/zorker/rothui/tre...8.0/rActionBar

Optional Files (3)
File Name
Version
Size
Author
Date
Type
800.20180901
2kB
09-02-18 03:34 AM
Addon
801-2018081101
2kB
08-11-18 04:38 AM
Addon
700.20161004
1kB
10-04-16 06:07 AM
Addon


Post A Reply Comment Options
Unread 03-31-13, 04:40 PM  
Pown
A Defias Bandit
 
Pown's Avatar

Forum posts: 2
File comments: 16
Uploads: 0
So help me out by explaining it in an easy way, I do in fact understand a little but enough to just change it myself, otherwise I wouldn't have asked for your help. Easiest would be for you to just "give" me the code and tell me what I should replace it with.
Report comment to moderator  
Reply With Quote
Unread 05-10-13, 12:30 PM  
VXT
A Murloc Raider
 
VXT's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 6
File comments: 169
Uploads: 3
Hey, is there any way to make bar 4 & 5 horizontal instead of vertical? I was looking through the LUA and didn't see it.
__________________
Thanks to Duskmoon for the awesome Sig/Avatar/Banner!
Report comment to moderator  
Reply With Quote
Unread 05-11-13, 06:26 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Originally Posted by VXT
Hey, is there any way to make bar 4 & 5 horizontal instead of vertical? I was looking through the LUA and didn't see it.
Only by changing the hardcoded setpoints in bar4.lua corresponding to bar3.lua.
__________________
| 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-11-13, 09:51 PM  
Twidget
An Aku'mai Servant
 
Twidget's Avatar

Forum posts: 33
File comments: 401
Uploads: 0
No XP bar

After installing the mod my XP bar is gone. How do I get it back?
Report comment to moderator  
Reply With Quote
Unread 09-12-13, 02:25 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Re: No XP bar

rActionBarStyler does not provide an XP bar. You need another mod/macro for that purpose.
__________________
| 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-12-13 at 03:49 AM.
Report comment to moderator  
Reply With Quote
Unread 09-12-13, 05:21 AM  
Twidget
An Aku'mai Servant
 
Twidget's Avatar

Forum posts: 33
File comments: 401
Uploads: 0
Re: Re: No XP bar

Originally Posted by zork
rActionBarStyler does not provide an XP bar. You need another mod/macro for that purpose.
OK, thanks. Decided to use Obar instead. It looks almost exactly likes yours but includes the XP bar.
Report comment to moderator  
Reply With Quote
Unread 09-13-13, 01:55 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Re: can make look like this with Diablo 3 layout?

__________________
| 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-13-13 at 05:42 AM.
Report comment to moderator  
Reply With Quote
Unread 09-28-13, 10:29 AM  
Syliha
A Flamescale Wyrmkin
 
Syliha's Avatar
AddOn Author - Click to view AddOns

Forum posts: 104
File comments: 160
Uploads: 4
Alright I hope you see this:

I want to "hardcode" the position of my actionbars so they stay consistent whatever character i am on.

But if the position of bar 2 is not set to use the userplacement it will ALWAYS be next to bar one. I have no idea how i can change that. Both are 2x6 btw.

Hope you can help me out with that ty!
__________________
Balance is, when everyone is unhappy.
Last edited by Syliha : 09-28-13 at 04:40 PM.
Report comment to moderator  
Reply With Quote
Unread 10-24-13, 12:16 AM  
Solvexx
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 29
Uploads: 2
Hello Zork! I love your stuff.
How many I go about reducing the amount of buttons shown from 12 on bar 3 down to only 3 shown?

Thank you very much, I am happy to use LUA. and if needed to just be pointed in the direction of a website with the information if easier.

Thanks mate.
Report comment to moderator  
Reply With Quote
Unread 10-24-13, 12:40 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Check bar3.lua. Change the num variable to 3.
http://code.google.com/p/rothui/sour...re/bar3.lua#19
__________________
| 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 : 10-24-13 at 12:40 AM.
Report comment to moderator  
Reply With Quote
Unread 11-07-13, 08:04 PM  
Mirrikh
A Flamescale Wyrmkin
 
Mirrikh's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 111
File comments: 74
Uploads: 3
Hey Zork, love the addon, so nice and pretty .lua friendly though i am wondering, how do i go about making bar5 horizontal orientation instead of vertical?
Last edited by Mirrikh : 11-07-13 at 08:08 PM.
Report comment to moderator  
Reply With Quote
Unread 11-08-13, 10:31 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Originally Posted by Mirrikh
Hey Zork, love the addon, so nice and pretty .lua friendly though i am wondering, how do i go about making bar5 horizontal orientation instead of vertical?
Well you can compare bar1 and bar4 SetPoints().
__________________
| 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 11-08-13, 10:59 AM  
Mirrikh
A Flamescale Wyrmkin
 
Mirrikh's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 111
File comments: 74
Uploads: 3
Originally Posted by zork
Originally Posted by Mirrikh
Hey Zork, love the addon, so nice and pretty .lua friendly though i am wondering, how do i go about making bar5 horizontal orientation instead of vertical?
Well you can compare bar1 and bar4 SetPoints().
Well i've looked around through the code, but i'm not too good at .lua so i couldn't figure out how to do it. I hate to bother you too much, but could you show me where to edit it?
Last edited by Mirrikh : 11-10-13 at 10:09 AM.
Report comment to moderator  
Reply With Quote
Unread 11-11-13, 02:20 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Originally Posted by Mirrikh
...but could you show me where to edit it?
I was off for the weekend so here we go:

Put this into bar4.lua
Lua Code:
  1. -----------------------------
  2.   -- INIT
  3.   -----------------------------
  4.  
  5.   --get the addon namespace
  6.   local addon, ns = ...
  7.   local gcfg = ns.cfg
  8.   --get some values from the namespace
  9.   local cfg = gcfg.bars.bar4
  10.   local dragFrameList = ns.dragFrameList
  11.  
  12.   --MultiBarRight
  13.  
  14.   -----------------------------
  15.   -- FUNCTIONS
  16.   -----------------------------
  17.  
  18.   if not cfg.enable then return end
  19.  
  20.   local num = NUM_ACTIONBAR_BUTTONS
  21.   local buttonList = {}
  22.  
  23.   --create the frame to hold the buttons
  24.   local frame = CreateFrame("Frame", "rABS_MultiBarRight", UIParent, "SecureHandlerStateTemplate")
  25.   frame:SetWidth(num*cfg.buttons.size + (num-1)*cfg.buttons.margin + 2*cfg.padding)
  26.   frame:SetHeight(cfg.buttons.size + 2*cfg.padding)
  27.   frame:SetPoint(cfg.pos.a1,cfg.pos.af,cfg.pos.a2,cfg.pos.x,cfg.pos.y)
  28.   frame:SetScale(cfg.scale)
  29.  
  30.   --move the buttons into position and reparent them
  31.   MultiBarRight:SetParent(frame)
  32.   MultiBarRight:EnableMouse(false)
  33.  
  34.   for i=1, num do
  35.     local button = _G["MultiBarRightButton"..i]
  36.     table.insert(buttonList, button) --add the button object to the list
  37.     button:SetSize(cfg.buttons.size, cfg.buttons.size)
  38.     button:ClearAllPoints()
  39.     if i == 1 then
  40.       button:SetPoint("LEFT", frame, cfg.padding, 0)
  41.     else
  42.       local previous = _G["MultiBarRightButton"..i-1]
  43.       button:SetPoint("LEFT", previous, "RIGHT", cfg.buttons.margin, 0)
  44.     end
  45.   end
  46.  
  47.   --show/hide the frame on a given state driver
  48.   RegisterStateDriver(frame, "visibility", "[petbattle][overridebar][vehicleui][possessbar,@vehicle,exists] hide; show")
  49.  
  50.   --create drag frame and drag functionality
  51.   if cfg.userplaced.enable then
  52.     rCreateDragFrame(frame, dragFrameList, -2 , true) --frame, dragFrameList, inset, clamp
  53.   end
  54.  
  55.   --create the mouseover functionality
  56.   if cfg.mouseover.enable then
  57.     rButtonBarFader(frame, buttonList, cfg.mouseover.fadeIn, cfg.mouseover.fadeOut) --frame, buttonList, fadeIn, fadeOut
  58.     frame.mouseover = cfg.mouseover
  59.   end
  60.  
  61.   --create the combat fader
  62.   if cfg.combat.enable then
  63.     rCombatFrameFader(frame, cfg.combat.fadeIn, cfg.combat.fadeOut) --frame, buttonList, fadeIn, fadeOut
  64.   end

Put this into bar5.lua
Lua Code:
  1. -----------------------------
  2.   -- INIT
  3.   -----------------------------
  4.  
  5.   --get the addon namespace
  6.   local addon, ns = ...
  7.   local gcfg = ns.cfg
  8.   --get some values from the namespace
  9.   local cfg = gcfg.bars.bar5
  10.   local dragFrameList = ns.dragFrameList
  11.  
  12.   --MultiBarLeft
  13.  
  14.   -----------------------------
  15.   -- FUNCTIONS
  16.   -----------------------------
  17.  
  18.   if not cfg.enable then return end
  19.  
  20.   local num = NUM_ACTIONBAR_BUTTONS
  21.   local buttonList = {}
  22.  
  23.   --create the frame to hold the buttons
  24.   local frame = CreateFrame("Frame", "rABS_MultiBarLeft", UIParent, "SecureHandlerStateTemplate")
  25.   frame:SetWidth(num*cfg.buttons.size + (num-1)*cfg.buttons.margin + 2*cfg.padding)
  26.   frame:SetHeight(cfg.buttons.size + 2*cfg.padding)
  27.   frame:SetPoint(cfg.pos.a1,cfg.pos.af,cfg.pos.a2,cfg.pos.x,cfg.pos.y)
  28.   frame:SetScale(cfg.scale)
  29.  
  30.   --move the buttons into position and reparent them
  31.   MultiBarLeft:SetParent(frame)
  32.   MultiBarLeft:EnableMouse(false)
  33.  
  34.   for i=1, num do
  35.     local button = _G["MultiBarLeftButton"..i]
  36.     table.insert(buttonList, button) --add the button object to the list
  37.     button:SetSize(cfg.buttons.size, cfg.buttons.size)
  38.     button:ClearAllPoints()
  39.     if i == 1 then
  40.       button:SetPoint("LEFT", frame, cfg.padding, 0)
  41.     else
  42.       local previous = _G["MultiBarLeftButton"..i-1]
  43.       button:SetPoint("LEFT", previous, "RIGHT", cfg.buttons.margin, 0)
  44.     end
  45.   end
  46.  
  47.   --show/hide the frame on a given state driver
  48.   RegisterStateDriver(frame, "visibility", "[petbattle][overridebar][vehicleui][possessbar,@vehicle,exists] hide; show")
  49.  
  50.   --create drag frame and drag functionality
  51.   if cfg.userplaced.enable then
  52.     rCreateDragFrame(frame, dragFrameList, -2 , true) --frame, dragFrameList, inset, clamp
  53.   end
  54.  
  55.   --create the mouseover functionality
  56.   if cfg.mouseover.enable then
  57.     rButtonBarFader(frame, buttonList, cfg.mouseover.fadeIn, cfg.mouseover.fadeOut) --frame, buttonList, fadeIn, fadeOut
  58.     frame.mouseover = cfg.mouseover
  59.   end
  60.  
  61.   --create the combat fader
  62.   if cfg.combat.enable then
  63.     rCombatFrameFader(frame, cfg.combat.fadeIn, cfg.combat.fadeOut) --frame, buttonList, fadeIn, fadeOut
  64.   end

That makes both bars horizontal.
__________________
| 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 11-11-13, 10:06 AM  
Mirrikh
A Flamescale Wyrmkin
 
Mirrikh's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 111
File comments: 74
Uploads: 3
Thank you a bunch Zork!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: