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,650
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-09-09, 08:17 AM  
MoonWitch
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 455
File comments: 162
Uploads: 9
Zork?

Is there any way of sorting the stancebar issue? (Positioning) It's the only thing keeping me from using this. I recently started using a druid, which means I will be shapeshifting a lot.

If need be, I can take a look at the code as well (if that is ok with you). But I have to admit I am not that good with AB code since it's risky for tainting.
Report comment to moderator  
Reply With Quote
Unread 03-09-09, 08:20 AM  
MoonWitch
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 455
File comments: 162
Uploads: 9
Originally posted by zork
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.
Just thought I'd let you know, I've been using this for quite a while and have had no issues with this. So if you want to include it into your release, I think it's ok
Report comment to moderator  
Reply With Quote
Unread 03-09-09, 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 MoonWitch
Zork?

Is there any way of sorting the stancebar issue? (Positioning) It's the only thing keeping me from using this. I recently started using a druid, which means I will be shapeshifting a lot.

If need be, I can take a look at the code as well (if that is ok with you). But I have to admit I am not that good with AB code since it's risky for tainting.
Can you give me a hint on when this is happening to you? Tested it with vehicles, in and out of combat, I am not having any issues.

Make sure you have activated lua errors.

Code used:
Code:
  -- CONFIG
  
  local myscale = 0.82*0.75
  local petscale = 0.9
  
  -- bar1 and bar2 in 2x6 instead of 1x12
  -- 1 = 2x6
  -- 0 = 1x12
  local button_system = 1
  
  -- on/off
  local hide_shapeshift = 0
  
  -- 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
  
  -- CONFIG END
  
  
  local f = CreateFrame("Frame","rBars_Button_Holder_Frame",UIParent)
  f:SetWidth(498)
  f:SetHeight(100)
  --f: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 }});
  f:SetPoint("BOTTOM",0,30)
  f:Show()
  
  local bonushooks = {};
  local i;
  
  BonusActionBarFrame:SetParent(f)

  for i = 1, 12, 1 do
    _G["ActionButton"..i]:SetParent(f);
  end;

  ActionButton1:ClearAllPoints()
  ActionButton1:SetPoint("BOTTOMLEFT",f,"BOTTOMLEFT",0,0);    

  --need to do this since I reanchored the bonusactionbar to f
  BonusActionBarTexture0:Hide()
  BonusActionBarTexture1:Hide()
  
  BonusActionButton1:ClearAllPoints()
  BonusActionButton1:SetPoint("BOTTOMLEFT",f,"BOTTOMLEFT",0,0);
  
  if button_system == 0 then

    MultiBarBottomLeftButton1:ClearAllPoints()  
    MultiBarBottomLeftButton1:SetPoint("BOTTOMLEFT",ActionButton1,"TOPLEFT",0,5);

    MultiBarBottomRightButton1:ClearAllPoints()  
    MultiBarBottomRightButton1:SetPoint("BOTTOMLEFT",MultiBarBottomLeftButton1,"TOPLEFT",0,15);
  
  else

    ActionButton7:ClearAllPoints()  
    ActionButton7:SetPoint("BOTTOMLEFT",ActionButton1,"TOPLEFT",0,5);
  
    BonusActionButton7:ClearAllPoints()  
    BonusActionButton7:SetPoint("BOTTOMLEFT",BonusActionButton1,"TOPLEFT",0,5);
    
    MultiBarBottomLeftButton1:ClearAllPoints()  
    MultiBarBottomLeftButton1:SetPoint("BOTTOMLEFT",ActionButton6,"BOTTOMRIGHT",5,0);
  
    MultiBarBottomLeftButton7:ClearAllPoints()  
    MultiBarBottomLeftButton7:SetPoint("BOTTOMLEFT",MultiBarBottomLeftButton1,"TOPLEFT",0,5);
  
    MultiBarBottomRightButton1:ClearAllPoints()  
    MultiBarBottomRightButton1:SetPoint("BOTTOMLEFT",ActionButton7,"TOPLEFT",0,15);
  
  end

  -- want to move the keyring / bags / menu and such?!
  -- use this kind of system to do so.
  --CharacterMicroButton:SetParent(f)
  --CharacterMicroButton:ClearAllPoints()
  --CharacterMicroButton:SetPoint("CENTER",UIParent,"CENTER",0, 0)
  --KeyRingButton:SetParent(f)
  --KeyRingButton:ClearAllPoints()
  --KeyRingButton:SetPoint("CENTER",UIParent,"CENTER",0, 50)
  --MainMenuBarBackpackButton:SetParent(f)
  --MainMenuBarBackpackButton:ClearAllPoints()
  --MainMenuBarBackpackButton:SetPoint("CENTER",UIParent,"CENTER",0, 0)

  MultiBarRightButton1:ClearAllPoints()
  MultiBarRightButton1:SetPoint("RIGHT",UIParent,"RIGHT",-30, 190)

  MultiBarLeftButton1:ClearAllPoints()
  MultiBarLeftButton1:SetPoint("TOPLEFT",MultiBarRightButton1,"TOPLEFT",-43, 0)
  
  ShapeshiftBarFrame:SetParent(f)

  local myclass, myengclass = UnitClass("player")
  
  if myengclass == "DEATHKNIGHT" then
    ShapeshiftButton1:ClearAllPoints()
    ShapeshiftButton1:SetPoint("BOTTOMLEFT",MultiBarBottomRightButton10,"TOPLEFT",-5,15);
    ShapeshiftButton1.SetPoint = function() end
  else
    ShapeshiftButton1:ClearAllPoints()
    ShapeshiftButton1:SetPoint("BOTTOMLEFT",MultiBarBottomRightButton1,"TOPLEFT",5,15);
    ShapeshiftButton1.SetPoint = function() end
  end
  
  -- hide the shapeshift 
  if hide_shapeshift == 1 then
    ShapeshiftBarFrame:SetScale(0.001)
    ShapeshiftBarFrame:SetAlpha(0)
  end
  
  PetActionButton1:ClearAllPoints()
  PetActionBarFrame:SetParent(f)
  PetActionButton1:SetPoint("BOTTOMLEFT",MultiBarBottomRightButton1,"TOPLEFT",5,15);

  -- hmmm I don't know if this does anything since the PossesBar becomes the BonusActionBar upon possessing sth
  PossessButton1:ClearAllPoints()
  PossessBarFrame:SetParent(f)
  PossessButton1:SetPoint("BOTTOMLEFT",MultiBarBottomRightButton1,"TOPLEFT",5,15);
  
  --hack to make the mainbar unvisible >_<
  MainMenuBar:SetScale(0.001)
  MainMenuBar:SetAlpha(0)
  VehicleMenuBar:SetScale(0.001)
  VehicleMenuBar:SetAlpha(0)
  
  f:SetScale(myscale)
  BonusActionBarFrame:SetScale(1)
  MultiBarBottomLeft:SetScale(myscale)
  MultiBarBottomRight:SetScale(myscale)
  MultiBarRight:SetScale(myscale)
  MultiBarLeft:SetScale(myscale)
  PetActionBarFrame:SetScale(petscale)
  
  bonushooks["onshow"] = BonusActionBarFrame:GetScript("OnShow");
  bonushooks["onshide"] = BonusActionBarFrame:GetScript("OnHide");
  
  BonusActionBarFrame:SetScript("OnShow", function(self,...)
    if ( bonushooks["onshow"] ) then bonushooks["onshow"](self,...); end;
    for i = 1, 12, 1 do
      _G["ActionButton"..i]:SetAlpha(0);
    end;
  end);
  
  BonusActionBarFrame:SetScript("OnHide", function(self,...)
    if ( bonushooks["onhide"] ) then bonushooks["onhide"](self,...); end;
    for i = 1, 12, 1 do
      _G["ActionButton"..i]:SetAlpha(1);
    end;
  end); 
  

  
  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
__________________
| 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 : 03-09-09 at 01:37 PM.
Report comment to moderator  
Reply With Quote
Unread 03-09-09, 09:24 PM  
MoonWitch
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 455
File comments: 162
Uploads: 9
I've not received an error.

The issue is the large distance between the bars (bar 1) and stancebar, I understand this is due to coding and placement, but would there be a way to make the stancebar adjust to the amount of bars active?

And the backdrop (the holder texture behind the stance-icons) shows for me on the bottom of the screen. (If I hide the bar, I can't use stances as druid, if I do not hide it, I see that texture.)

Report comment to moderator  
Reply With Quote
Unread 03-11-09, 02:42 AM  
algo
A Kobold Labourer

Forum posts: 1
File comments: 5
Uploads: 0
Fantastic mod! Just one question. Is there any simple way to define standard blizz castbar placement also? Right now, it's too close, and with petbar active, too damn close to buttons. :-)

I can imagine it's just a couple of additional lines in .lua, but I have no clue what would that be. Could you give me those lines, please? I can try to put them in pace myself. :-)

Thanks!
Report comment to moderator  
Reply With Quote
Unread 03-11-09, 08:29 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 MoonWitch
The issue is the large distance between the bars (bar 1) and stancebar, I understand this is due to coding and placement, but would there be a way to make the stancebar adjust to the amount of bars active?
Ah OK, you need some files from the RothUI package. They make the default stancebar background textures transparent. That are the files that are inside the "interface" folder, but not inside Addons.

This will fix the background texture thing. The other one is, just change the anchor-frame of the stancebar to ActionButton1. Or build some conditions like...

Code:
if MultiBarLeft:IsShown() then 
  do something...
elseif MultiBarRight:IsShown() then
  do something...
else
  etc...
end
You could adjust the SetPoint of the StanceBar for example in each condition, based on which Bar is shown.

Originally posted by algo
...
Check http://wowcompares.com/3099551/Frame...ngBarFrame.xml and read http://www.wowwiki.com/API_Region_SetPoint

The frame is called: "CastingBarFrame", so you can do something like this:
Code:
CastingBarFrame:ClearAllPoints();
CastingBarFrame:SetPoint("BOTTOM", 0, 200);
__________________
| 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 : 03-11-09 at 08:30 AM.
Report comment to moderator  
Reply With Quote
Unread 03-11-09, 09:12 AM  
algo
A Kobold Labourer

Forum posts: 1
File comments: 5
Uploads: 0
Originally posted by zork
Check http://wowcompares.com/3099551/Frame...ngBarFrame.xml and read http://www.wowwiki.com/API_Region_SetPoint

The frame is called: "CastingBarFrame", so you can do something like this:
Code:
CastingBarFrame:ClearAllPoints();
CastingBarFrame:SetPoint("BOTTOM", 0, 200);
That's exactly what I was looking for!

Somehow it works only when I put UIPARENT_MANAGED_FRAME_POSITIONS[ "CastingBarFrame" ] = nil; in the end (yeah, I googled a bit in the direction you gave). But it looks sweet now. Thanks again!
Report comment to moderator  
Reply With Quote
Unread 03-12-09, 03:20 AM  
Nixie
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 1
Thanks for your excellent work ^^
Recnetly I bewildered by an issue with the vehicle bar.It's often switch my own actionbar or pet's when I got vehicle,whenever I'm in a battle or into combat.
It's do a disaster happen in raid ...

I conside it's not an error,as I wish you to show me if there's any way to switch vehicle bar correctly in battle? >_<
Report comment to moderator  
Reply With Quote
Unread 03-13-09, 05:58 PM  
nidraj
A Deviate Faerie Dragon

Forum posts: 10
File comments: 8
Uploads: 0
Originally posted by nidraj
hi

it would have means to add a line For right Clic -> self Cast ?

thx

no body ?
Report comment to moderator  
Reply With Quote
Unread 03-18-09, 11:28 AM  
demitri
A Fallenroot Satyr

Forum posts: 20
File comments: 36
Uploads: 0
i really wannna use this addon but i want to be able to fade the bars :S
Report comment to moderator  
Reply With Quote
Unread 03-18-09, 04:08 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 demitri
i really wannna use this addon but i want to be able to fade the bars :S
Use Dominos, its a great bar mod.
__________________
| 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 03-18-09, 04:26 PM  
demitri
A Fallenroot Satyr

Forum posts: 20
File comments: 36
Uploads: 0
yeah but i like ur bar :S
Report comment to moderator  
Reply With Quote
Unread 03-18-09, 10:26 PM  
Dinian
A Murloc Raider
 
Dinian's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 3
Uploads: 1
Zork, do you have any plans to bring up the "dismount from vehicle" button to the right of the action bar area when you are on a vehicle?

I love your stuff but I'm concerned about vehicle features since Ulduar will have more important raid events that use them.
Report comment to moderator  
Reply With Quote
Unread 03-19-09, 03:56 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 Dinian
"dismount from vehicle" button
afaik you can use a macro.
Code:
/run VehicleExit()
Or just rightclick the Vehicle Unitframe and hit "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)
Last edited by zork : 03-19-09 at 03:57 AM.
Report comment to moderator  
Reply With Quote
Unread 03-21-09, 12:42 AM  
123noob
A Frostmaul Preserver
 
123noob's Avatar
AddOn Author - Click to view AddOns

Forum posts: 256
File comments: 57
Uploads: 4
so it's not possible to have the minimenu bar and bag bars showing a tthe bottom right corner? or even if just for mouseover?
__________________
  • Sever: Twisting Nether
  • Character: BloodElf Paladin (Level - 35)
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: