Download
(4Kb)
Download
Updated: 08-16-18 01:34 PM
Pictures
File Info
Compatibility:
Battle for Azeroth (8.0.1)
Updated:08-16-18 01:34 PM
Created:12-27-08 08:46 PM
Downloads:85,206
Favorites:309
MD5:
Categories:Action Bar Mods, Buff, Debuff, Spell

rButtonTemplate  Popular! (More than 5000 hits)

Version: 800.20180816
by: zork [More]


Intro

rButtonTemplate is a framework to theme Blizzard action, aura and item buttons. It does nothing on its own, needs a theme like rButtonTemplate_Zork.
API documentation
rButtonTemplate API documentation
Quick-Links
rActionBar, rActionBar_Zork, rBuffFrame, rBuffFrame_Zork, rButtonTemplate, rButtonTemplate_Zork
Git
https://github.com/zorker/rothui/tre...ButtonTemplate

Optional Files (20)
File Name
Version
Size
Author
Date
Type
800.20180901
14kB
09-02-18 03:34 AM
Addon
801-2018081101
4kB
08-11-18 04:55 AM
Addon
700.20161004
23kB
10-04-16 06:24 AM
Addon
1.3
80kB
11-29-10 02:09 PM
Addon
1.0
22kB
11-14-10 06:23 PM
Addon
1.2
24kB
11-09-10 02:59 PM
Addon
1.0
3kB
11-05-10 09:22 AM
Addon
rev3
6kB
07-06-10 06:25 PM
Addon
1.0
8kB
04-25-10 01:32 PM
Patch
1.0
2kB
12-06-09 12:47 PM
Addon
1.0
3kB
08-18-09 11:37 AM
Addon
1.0
10kB
07-06-09 12:02 PM
Addon
v1
16kB
06-17-09 06:57 PM
Addon
v1.3
18kB
02-19-09 12:10 PM
Addon
001
21kB
01-23-09 03:24 AM
Addon
1.0
5kB
01-22-09 09:38 AM
Addon
003
6kB
01-20-09 08:16 PM
Patch
001
15kB
01-20-09 03:59 PM
Addon
001
10kB
01-20-09 03:58 PM
Addon
0.1
7kB
01-17-09 10:12 AM
Addon


Post A Reply Comment Options
Unread 10-21-13, 06:18 PM  
Jansus
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 28
File comments: 73
Uploads: 1
Originally Posted by zork
That is because the config files of that plugin are outdated. Copy the textures in and edit the config manually.
I know how to edit the config, but I'm not sure exactly what to edit. Took a chance and removed the media the skin didn't have.
Code:
    buttonback        = "",
    buttonbackflat    = "",
    outer_shadow      = "",
Is this what you meant?
Report comment to moderator  
Reply With Quote
Unread 12-26-13, 11:18 AM  
Solvexx
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 29
Uploads: 2
It looks like the original default UI border is present
no matter which skin I use - Any ideas?
Report comment to moderator  
Reply With Quote
Unread 05-27-14, 05:56 PM  
Turulo
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
In case anyone wants to use this styler with the ButtonTimers addon you can use this tweak:

In core.lua in the init() function:

Code:
--ButtonTimers styling
if IsAddOnLoaded("ButtonTimers") then
   for n = 1, 4 do
      for i = 1, 12 do
         styleActionButton(_G["ABTWidbar"..n.."button"..i.."Button"])
      end 
   end
end
Last edited by Turulo : 05-27-14 at 05:57 PM.
Report comment to moderator  
Reply With Quote
Unread 06-28-14, 02:20 AM  
Sylen
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 65
Uploads: 4
Everytime i use this addon, it seems to zoom the buttons after skinning. No idea why.
Report comment to moderator  
Reply With Quote
Unread 11-17-14, 12:40 AM  
Dhaern
A Kobold Labourer

Forum posts: 0
File comments: 63
Uploads: 0
Hi zork, I'm using this code for num pad shortcuts:

Code:
  local function updateName(self, actionButtonType)
	local replace = string.gsub
	local ho = _G[self:GetName() .. "HotKey"]
	local key = ho:GetText()
	key = replace(key, '(s%-)', 'S')
	key = replace(key, '(a%-)', 'A')
	key = replace(key, '(c%-)', 'C')
	key = replace(key, '(Mouse Button )', 'M')
	key = replace(key, '(Middle Mouse)', 'M3')
	key = replace(key, '(Mouse Wheel Down)', 'MWD')
	key = replace(key, '(Mouse Wheel Up)', 'MWU')
	key = replace(key, '(Num Pad )', 'N')
	key = replace(key, '(Page Up)', 'PU')
	key = replace(key, '(Page Down)', 'PD')
	key = replace(key, '(Spacebar)', 'SpB')
	key = replace(key, '(Insert)', 'Ins')
	key = replace(key, '(Home)', 'Hm')
	key = replace(key, '(Delete)', 'Del')
	if ho:GetText() == _G['RANGE_INDICATOR'] then
		ho:SetText('')
	else
		ho:SetText(key)
	end
  end
Code:
hooksecurefunc("ActionButton_UpdateHotkeys", updateName)
It's working when i login into game but when I reload UI shortcuts dont work until I exit game/login again. Why I have this problem now in 6.0?? Can you help me to work this code when I reload UI?? Thx
Report comment to moderator  
Reply With Quote
Unread 11-17-14, 02:24 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
After all this years. Are you sure you have not memorized those shortcuts already?
__________________
| 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-14, 09:14 AM  
Dhaern
A Kobold Labourer

Forum posts: 0
File comments: 63
Uploads: 0
Originally Posted by zork
After all this years. Are you sure you have not memorized those shortcuts already?
Yeah but I like to see shortcuts always for alts and abilities changes/removal as 6.0

then can't you help me with this code works when reload UI too??

My core.lua:
http://pastebin.com/dY7hvQ62
Last edited by Dhaern : 11-17-14 at 09:54 AM.
Report comment to moderator  
Reply With Quote
Unread 01-03-15, 01:48 PM  
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view AddOns

Forum posts: 37
File comments: 548
Uploads: 13
excuse me,
can i only show 8 button for bar2 and bar3?
also, can i use 2*6 style for bar4 and bar5?
Report comment to moderator  
Reply With Quote
Unread 01-05-15, 02:01 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
@EKE
Yeah you can do that but only by hacking the specific lua files. (bar4.lua etc.)
You need to do that in rActionBarStyler.
__________________
| 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-05-15 at 02:02 AM.
Report comment to moderator  
Reply With Quote
Unread 01-05-15, 12:02 PM  
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view AddOns

Forum posts: 37
File comments: 548
Uploads: 13
Originally Posted by zork
@EKE
Yeah you can do that but only by hacking the specific lua files. (bar4.lua etc.)
You need to do that in rActionBarStyler.
OH sorry i post at wrong page......
Report comment to moderator  
Reply With Quote
Unread 03-22-15, 04:03 AM  
devilArt
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 51
File comments: 203
Uploads: 2
hi zork
could you add this feature

Lua Code:
  1. local text = ho:GetText()
  2.  
  3.         if text then
  4.             text = text:gsub("(s%-)", "S")
  5.             text = text:gsub("(a%-)", "A")
  6.             text = text:gsub("(c%-)", "C")
  7.             if locale == "zhCN" then
  8.         text = text:gsub("鼠标按键", "M")
  9.         text = text:gsub("鼠标中键", "M3")
  10.         text = text:gsub("鼠标滚轮向上滚动", "MU")
  11.         text = text:gsub("鼠标滚轮向下滚动", "MD")
  12.             end
  13.             text = text:gsub("Mouse Button", "M")
  14.             text = text:gsub("Middle Mouse", "M3")
  15.             text = text:gsub("Mouse Wheel Up", "MU")
  16.             text = text:gsub("Mouse Wheel Down", "MD")
  17.             text = text:gsub("Delete", "Del")
  18.             text = text:gsub("Num Pad", "N")
  19.             text = text:gsub("Page Up", "PU")
  20.             text = text:gsub("Page Down", "PD")
  21.             text = text:gsub("Spacebar", "SpB")
  22.             text = text:gsub("Insert", "Ins")
  23.             text = text:gsub("Num Lock", "NL")
  24.             text = text:gsub("Home", "Hm")
  25.  
  26.             ho:SetText("|cffffffff"..text)
  27.         end
Report comment to moderator  
Reply With Quote
Unread 10-04-16, 07:04 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
rButtonTemplate is updated for Legion.
__________________
| 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 10-08-16, 07:01 PM  
Vuo
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Thanks for the update.

I noticed the config is quite a bit different from the old rActionButtonStyler. Forgive me, but I'm having trouble navigating the new config within any theme.

Previously there were options to set the textures of:

normal
flash
hover
pushed
checked
equipped

Now I can only find the options to set the textures for:

normal
highlight
pushed
checked

Are there some lines I can add to regain all the previous options for setting textures? Also is there a line that I could change to adjust the font?

Thanks
Report comment to moderator  
Reply With Quote
Unread 10-09-16, 04:32 AM  
pas06
A Theradrim Guardian

Forum posts: 62
File comments: 18
Uploads: 0
Hi, so wie es aussieht unterstützt rButtonTemplate im Gegensatz zu rActionButtonStyler nicht mehr Bartender4 oder Dominos. Würde mich freuen, wenn das in einer zukünftigen Version wieder funktioniert
Report comment to moderator  
Reply With Quote
Unread 10-09-16, 12:01 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
@pas06
You can use the rButtonTemplate api for any action button as long as it supports the blizzard actionbutton template.
Lua Code:
  1. --dominos styling
  2. if dominos then
  3.   --print("Dominos found")
  4.   for i = 1, 60 do
  5.     rButtonTemplate:StyleActionButton(_G["DominosActionButton"..i], actionButtonConfig)
  6.   end
  7. end
  8. --bartender4 styling
  9. if bartender4 then
  10.   --print("Bartender4 found")
  11.   for i = 1, 120 do
  12.     rButtonTemplate:StyleActionButton(_G["BT4Button"..i], actionButtonConfig)
  13.   end
  14. end
@Vuo
Check the readme.
https://github.com/zorker/rothui/tre...ButtonTemplate
Highlight = hover. Equipped = border. Normal, flash, pushed and checked are the same.
__________________
| 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: