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,624
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 01-17-09, 06:17 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 sush
but one question how can i change the spacing of the petbar?
You need to readjust the setpoints of every petbarbutton to do that, its not that hard. But I would advise you to do that inside the rActionButtonStyler since you want to adjust the setpoints of the buttons in this case.

Something like this could do it:
Code:
  for i=1, NUM_PET_ACTION_SLOTS do
    if i > 1 then
      local name = "PetActionButton"..i;
      local name2 = "PetActionButton"..(i-1);
      local bu  = _G[name]
      local bu2  = _G[name2]
      bu:ClearAllPoints()
      bu:SetPoint("LEFT", bu2, "RIGHT", 20, 0)
    end
  end
Add this to the petstyle function. Adjust the "20" to adjust your spacing and read http://www.wowwiki.com/API_Region_SetPoint

Could this be done with your actionbuttons aswell? Yes I think so.
__________________
| 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 : 01-17-09 at 06:25 PM.
Report comment to moderator  
Reply With Quote
Unread 01-19-09, 03:18 PM  
Balkeep
A Cyclonian
 
Balkeep's Avatar
AddOn Author - Click to view AddOns

Forum posts: 43
File comments: 58
Uploads: 2
Cool mod. 1 question thou, how are u supposed to exit tanks on WG/BGs if u do this
Code:
VehicleMenuBar:SetScale(0.001)
VehicleMenuBar:SetAlpha(0)
Last edited by Balkeep : 01-19-09 at 05:30 PM.
Report comment to moderator  
Reply With Quote
Unread 01-19-09, 05:03 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 Balkeep
Cool mod. 1 question thou, how do u supposed to exit tanks on WG/BGs if u do this
Code:
VehicleMenuBar:SetScale(0.001)
VehicleMenuBar:SetAlpha(0)
Right click unitframe -> Exit vehicle.
__________________
| 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 01-19-09, 05:30 PM  
Balkeep
A Cyclonian
 
Balkeep's Avatar
AddOn Author - Click to view AddOns

Forum posts: 43
File comments: 58
Uploads: 2
Sorry, seems it was noob comment from me =P Great mod thou!
Report comment to moderator  
Reply With Quote
Unread 01-21-09, 12:39 PM  
MoonWitch
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 455
File comments: 162
Uploads: 9
Could have sworn I replied here before...

Any hints on making the right sidebars alpha be .3 normal and on hover over .9? Or is that not possible?
Report comment to moderator  
Reply With Quote
Unread 01-23-09, 05:56 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
Giving this a quick try for the first time.

Say i want my MultiBarLeft and MultiBarRight to have the same shape as the main bar, 2 horizontal rows of 6 buttons, do i have to reanchor every button one by one or is there an easier way ?
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Report comment to moderator  
Reply With Quote
Unread 01-23-09, 06:57 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 Caellian
Giving this a quick try for the first time.

Say i want my MultiBarLeft and MultiBarRight to have the same shape as the main bar, 2 horizontal rows of 6 buttons, do i have to reanchor every button one by one or is there an easier way ?
This is how it works. Every button on screen needs some anchor. Currently the anchor and anchor positions of the both right bars are set to be vertical. So if you want them the other way round you need to re-point them button by button.

A "for"-loop will do much of the job here.

But be careful, the grade between tainting and not tainting is small.
__________________
| 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 : 01-23-09 at 06:58 AM.
Report comment to moderator  
Reply With Quote
Unread 01-23-09, 08:46 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
Aight well it's perfect now, the only thing i could be missing is to have my pet bar hidden unless i mouseover it.
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Last edited by Caellian : 01-23-09 at 08:48 AM.
Report comment to moderator  
Reply With Quote
Unread 01-23-09, 09: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 Caellian
Aight well it's perfect now, the only thing i could be missing is to have my pet bar hidden unless i mouseover it.
The problem is: you are not allowed to touch the petbarframe itself. This will cause tainting. So I am not able to position the petbarframe under your buttons because I am not allowed to re-point the petframe.

This code is untested but could be some kind of possibility:
Code:
    local alphahigh = 1
    local alphalow = 0.2

    local function myshowhidepet(alpha)
      for i=1, NUM_PET_ACTION_SLOTS do
        local pb = _G["PetActionButton"..i]
        pb:SetAlpha(alpha)
      end;
    end
    
    local f2 = CreateFrame("Frame","myPetBarHolderFrame",UIParent)
    f2:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", edgeFile = "Interface/Tooltips/UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 }});
    f2:SetWidth(200) -- size the width here
    f2:SetHeight(100) -- size the height here
    f2:SetPoint("BOTTOM",0,300)  --move it under your petbuttons here
    --f2:SetFrameLevel(0) -- may be needed
    f2:SetAlpha(alphalow) --onload alpha (could be 0 when finished with positioning)
    f2:EnableMouse(true)
    f2:SetScript("OnEnter", function(self) myshowhidepet(alphahigh) end)
    f2:SetScript("OnLeave", function(self) myshowhidepet(alphalow) end)

    --onload setup
    for i=1, NUM_PET_ACTION_SLOTS do
      local pb = _G["PetActionButton"..i]
      pb:SetAlpha(alphalow)
      pb:HookScript("OnEnter", function(self) myshowhidepet(alphahigh) end)
      pb:HookScript("OnLeave", function(self) myshowhidepet(alphalow) end)
    end;
What could be done is the following:
- Create a helper frame and move it under the pet buttons.
- Create OnEnter and OnLeave-Sripts for every PetButton

You need to do this for the petbuttons aswell with a HookScript since when moving the mousing on a button you will leave the helper frame.
The helper frame is needed to fill the gap between the buttons, since when you leave the button they would turn off.

I cannot guarantee that this will not cause tainting or that it does work. Cannot test it right now.
__________________
| 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 : 01-23-09 at 09:50 AM.
Report comment to moderator  
Reply With Quote
Unread 01-23-09, 09:41 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
Going to try that right now.

Edit: Works perfectly, thanks, no taint at all.
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Last edited by Caellian : 01-23-09 at 09:57 AM.
Report comment to moderator  
Reply With Quote
Unread 01-23-09, 10:57 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Ok, I tested it right now and I like it aswell.

Here is what I did:
Code:
  -- on/off
  local petbar_on_mouseover = 1
  -- range 0 - 1
  local petbar_off_alpha = 0
  
  -- on/off
  local rightbars_on_mouseover = 1
  -- range 0 - 1
  local rightbars_off_alpha = 0
  
    local alphahigh = 1

  local function myshowhidepet(alpha)
    for i=1, NUM_PET_ACTION_SLOTS do
      local pb = _G["PetActionButton"..i]
      pb:SetAlpha(alpha)
    end;
  end
  
  local function myshowhiderightbar(alpha)
    if MultiBarLeft:IsShown() then
      for i=1, 12 do
        local pb = _G["MultiBarLeftButton"..i]
        pb:SetAlpha(alpha)
      end
    end
    if MultiBarRight:IsShown() then
      for i=1, 12 do
        local pb = _G["MultiBarRightButton"..i]
        pb:SetAlpha(alpha)
      end
    end
  end
  
  if petbar_on_mouseover == 1 then
  
    local f2 = CreateFrame("Frame","myPetBarHolderFrame",UIParent)
    --comment this in to see the frame
    --f2:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", edgeFile = "Interface/Tooltips/UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 }});
    f2:SetWidth(355) -- size the width here
    f2:SetHeight(50) -- size the height here
    f2:SetPoint("BOTTOM",-78,160)  --move it under your petbuttons here
    f2:SetScale(myscale)
    f2:EnableMouse(true)
    f2:SetScript("OnEnter", function(self) myshowhidepet(alphahigh) end)
    f2:SetScript("OnLeave", function(self) myshowhidepet(petbar_off_alpha) end)
  
    for i=1, NUM_PET_ACTION_SLOTS do
      local pb = _G["PetActionButton"..i]
      pb:SetAlpha(petbar_off_alpha)
      pb:HookScript("OnEnter", function(self) myshowhidepet(alphahigh) end)
      pb:HookScript("OnLeave", function(self) myshowhidepet(petbar_off_alpha) end)
    end;
  
  end
  
  if rightbars_on_mouseover == 1 then
  
    local f3 = CreateFrame("Frame","myRightBarHolderFrame",UIParent)
    --comment this in to see the frame
    --f3:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", edgeFile = "Interface/Tooltips/UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 }});
    f3:SetWidth(130) -- size the width here
    f3:SetHeight(500) -- size the height here
    f3:SetPoint("RIGHT",5,-20)  --move it under your petbuttons here
    f3:SetScale(myscale)
    f3:EnableMouse(true)
    f3:SetScript("OnEnter", function(self) myshowhiderightbar(alphahigh) end)
    f3:SetScript("OnLeave", function(self) myshowhiderightbar(rightbars_off_alpha) end)
    
    for i=1, 12 do
      local pb = _G["MultiBarLeftButton"..i]
      pb:SetAlpha(rightbars_off_alpha)
      pb:HookScript("OnEnter", function(self) myshowhiderightbar(alphahigh) end)
      pb:HookScript("OnLeave", function(self) myshowhiderightbar(rightbars_off_alpha) end)
      local pb = _G["MultiBarRightButton"..i]
      pb:SetAlpha(rightbars_off_alpha)
      pb:HookScript("OnEnter", function(self) myshowhiderightbar(alphahigh) end)
      pb:HookScript("OnLeave", function(self) myshowhiderightbar(rightbars_off_alpha) end)
    end;
  
  end
This will hide the right bars and the pet bar and makes them appear on mouseover. Need to test this before I will release it finally.
__________________
| 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 01-23-09, 11:18 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
Got one taint finally

Code:
blocked from using PetActionBarFrame:Show()
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Report comment to moderator  
Reply With Quote
Unread 01-26-09, 06:25 AM  
Lyncher
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Great job!

Is it possible to hide key bindings and macro names? Thanks in advance for your help.
Report comment to moderator  
Reply With Quote
Unread 01-27-09, 03:33 PM  
shkm
A Chromatic Dragonspawn
 
shkm's Avatar
AddOn Author - Click to view AddOns

Forum posts: 186
File comments: 98
Uploads: 9
Just found this. Beautiful! Been waiting for an 'update' to rBars2 and have been using rActionButtonStyler + Dominos in the meantime. I am way too happy now to get away from Dominos now!

Thank you!
Report comment to moderator  
Reply With Quote
Unread 01-30-09, 11:24 AM  
kubasniak
A Kobold Labourer

Forum posts: 1
File comments: 8
Uploads: 0
Hey I downloaded this addon, all is great BUT! How can I change the scale of bars? Because I don't know anything about programming, anything about LUA, wowwiki doesn't explain it how to :F or I just don't understand it, it's like BLACK MAGIC for me...

Just tell what, where and how to change please, coz it's rly nice addon
I'm playing on 800x600 Windowed Mode, and these bars are TOO small ;/
How can I change scales for that like your is on example screenshots :>?
Last edited by kubasniak : 01-30-09 at 11:25 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: