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,655
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 10-31-12, 09:39 AM  
madmatt91
A Kobold Labourer

Forum posts: 0
File comments: 27
Uploads: 0
Hi there, i would like to be able to have different button sizes on action bar 1 on different characters, this is how i edited the charspecific lua.

Code:
  --get the addon namespace
  local addon, ns = ...
  local cfg = ns.cfg

  -----------------------------
  -- CHARSPECIFIC REWRITES
  -----------------------------

  local playername, _ = UnitName("player")
  local _, playerclass = UnitClass("player")

  if playername == "Itsamemario" or playername == "Rothor" or playername == "Wolowizard" or playername == "Loral" then
    cfg.bars.stancebar.enable = false
    cfg.bars.bar1.uselayout2x6 = false
    cfg.bars.bar1.buttons = {
                    size            = 36,
                    margin          = -2,
      },
    cfg.bars.bar2.uselayout2x6 = false
    cfg.bars.bar2.mouseover.enable = false
    cfg.bars.bar3.mouseover.enable = false
    cfg.bars.bar4.mouseover.fadeOut.alpha = 0
    cfg.bars.bags.mouseover.fadeOut.alpha = 0
    cfg.bars.micromenu.mouseover.fadeOut.alpha = 0
  end
In game it doesnt change anything apart from the fact that i get this error

Code:
Error occured in: Global
Count: 1
Message: ..\AddOns\rActionBarStyler\charspecific.lua line 24:
   unexpected symbol near '='
Tnx for your time.

--------EDIT---------
NVM GOT IT WORKING


correct lua:
Code:
  -----------------------------
  -- INIT
  -----------------------------

  --get the addon namespace
  local addon, ns = ...
  local cfg = ns.cfg

  -----------------------------
  -- CHARSPECIFIC REWRITES
  -----------------------------

  local playername, _ = UnitName("player")
  local _, playerclass = UnitClass("player")

  if playername == "Itsamemario" or playername == "Rothor" or playername == "Wolowizard" or playername == "Loral" then
    cfg.bars.stancebar.enable = false
    cfg.bars.bar1.uselayout2x6 = false
    cfg.bars.bar1.buttons.size = 36
    cfg.bars.bar1.buttons.margin = -2
    cfg.bars.bar2.uselayout2x6 = false
    cfg.bars.bar2.mouseover.enable = false
    cfg.bars.bar3.mouseover.enable = false
    cfg.bars.bar4.mouseover.fadeOut.alpha = 0
    cfg.bars.bags.mouseover.fadeOut.alpha = 0
    cfg.bars.micromenu.mouseover.fadeOut.alpha = 0
  end
Last edited by madmatt91 : 10-31-12 at 09:48 AM.
Report comment to moderator  
Reply With Quote
Unread 11-16-12, 02:15 AM  
tomsu
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
"Always show actionbars"

Hi Zork! Real quick question:

When you enable "Always show actionbars" option from the interface menu, why doesn't actionbar1 react to it? Also, is there a way to fix it somewhere in the .lua?

Tried searching for it myself, but I'm not that expierenced with .lua yet and tried to find some answers in the comments, but couldn't find anything there either.

Here's a picture to demonstrate what I mean

Thanks
Report comment to moderator  
Reply With Quote
Unread 11-16-12, 05:42 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Re:

Interesting. Someone had the same question lately. That is due to Blizzard code.

The first actionbar has no grid, because by default the default MainActionBar has an actionbar textue (the one with the gryphons etc.) underneath with a grid included in the image. That's why Blizzard did not add a grid to the first actionbar.

Thus actionbar 1 has no grid to be displayed.
__________________
| 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 : 11-16-12 at 05:43 AM.
Report comment to moderator  
Reply With Quote
Unread 11-16-12, 07:18 AM  
tomsu
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re:

Originally Posted by zork
Interesting. Someone had the same question lately. That is due to Blizzard code.

The first actionbar has no grid, because by default the default MainActionBar has an actionbar textue (the one with the gryphons etc.) underneath with a grid included in the image. That's why Blizzard did not add a grid to the first actionbar.

Thus actionbar 1 has no grid to be displayed.
Thought this might be the case, but had to make sure from someone who actually knows lua Thanks anyways!
Report comment to moderator  
Reply With Quote
Unread 11-16-12, 03:36 PM  
Bloodier
A Fallenroot Satyr

Forum posts: 20
File comments: 54
Uploads: 0
I'm trying to modify the petbar to have one column only.

In petbar.lua I changed the following (lines that were changed by others are the commented):

Code:
local frame = CreateFrame("Frame", "rABS_PetBar", UIParent, "SecureHandlerStateTemplate")
  --frame:SetWidth(num*cfg.buttons.size + (num-1)*cfg.buttons.margin + 2*cfg.padding)
  --frame:SetHeight(cfg.buttons.size + 2*cfg.padding)
  frame:SetWidth(cfg.buttons.size + 2*cfg.buttons.margin)
  frame:SetHeight(num*cfg.buttons.size + (num-1)*cfg.buttons.margin + 2*cfg.padding)
Code:
 for i=1, num do
    local button = _G["PetActionButton"..i]
    table.insert(buttonList, button) --add the button object to the list
    button:SetSize(cfg.buttons.size, cfg.buttons.size)
    button:ClearAllPoints()
    if i == 1 then
      --button:SetPoint("LEFT", frame, cfg.padding, 0)
	  button:SetPoint("TOP", frame, cfg.buttons.margin, 0)
    else
      local previous = _G["PetActionButton"..i-1]
      --button:SetPoint("LEFT", previous, "RIGHT", cfg.buttons.margin, 0)
	  button:SetPoint("TOP", previous, "BOTTOM", cfg.padding, 0)
    end
I get a stepped bar without margin between buttons. What's wrong with the code?
Report comment to moderator  
Reply With Quote
Unread 11-16-12, 07:13 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
You inserted the values into the x, not the y value. Swap padding/margin with 0.
__________________
| 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-17-12, 07:35 AM  
Bloodier
A Fallenroot Satyr

Forum posts: 20
File comments: 54
Uploads: 0
Originally Posted by zork
You inserted the values into the x, not the y value. Swap padding/margin with 0.
Thanks that solved the step problem
Report comment to moderator  
Reply With Quote
Unread 11-17-12, 10:06 AM  
Bloodier
A Fallenroot Satyr

Forum posts: 20
File comments: 54
Uploads: 0
Another question. How can I use the same position for different characters? Where is it saved? Can't see any rActionBar file in WTF folder.
Last edited by Bloodier : 11-17-12 at 10:07 AM.
Report comment to moderator  
Reply With Quote
Unread 11-17-12, 01:32 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Originally Posted by Bloodier
Another question. How can I use the same position for different characters? Where is it saved? Can't see any rActionBar file in WTF folder.
That file is called layout-local.txt in your WTF/SERVER/CHAR folder.
__________________
| 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-18-12, 05:49 PM  
zohar101
A Cyclonian
 
zohar101's Avatar

Forum posts: 43
File comments: 188
Uploads: 0
Having trouble with doing festival tables. Addon doesn't switch to the vehicle bar on this for some reason. Haven't tested it though with today's version. Will add once I test it out in a little bit if anything changes.
Report comment to moderator  
Reply With Quote
Unread 11-19-12, 02:40 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
That is fixed. Make sure you have the latest version.
__________________
| 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 : 11-19-12 at 02:42 AM.
Report comment to moderator  
Reply With Quote
Unread 11-19-12, 07:14 PM  
Clamsoda
A Frostmaul Preserver

Forum posts: 269
File comments: 35
Uploads: 0
The latest version isn't packaged with rLib, not sure if that is intended or not.
Report comment to moderator  
Reply With Quote
Unread 11-20-12, 03:20 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Args. Thank you. Of course not intended.

Version 50001.08a will have rLib included. Sry.
__________________
| 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 : 11-20-12 at 03:25 AM.
Report comment to moderator  
Reply With Quote
Unread 11-25-12, 02:11 PM  
Siannus
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 90
Uploads: 2
Im considering using this instead of Bartendar for my UI, however, Ive noticed in all screenshots and videos Ive seen that utilize this addon, empty slots are just that, empty. Is there anyway to have it to where empty slots are filled so to speak with the button styler of choice? Like if the styler adds a say white border and semi-transparent background, will the empty slots show that?

Also, will this scale with different resolution? I know my Bartendar will scale correctly from one resolution to another (ie: 1920x1090 vs 1440x900).
Last edited by Siannus : 11-25-12 at 02:14 PM.
Report comment to moderator  
Reply With Quote
Unread 11-25-12, 02:26 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
If you want a Grid you can enable that in the default interface settings.
If you want different button border styles you can try rActionButtonStyler.
__________________
| 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
Post A Reply



Category Jump: