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,228
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 12-05-11, 01:16 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 PatrickC
In any case, thanks for your mods, couldnt live without them anymore.
Thanks but you should really consider that.
__________________
| 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 : 12-05-11 at 01:20 AM.
Report comment to moderator  
Reply With Quote
Unread 12-05-11, 03:05 AM  
Haleth
This Space For Rent
 
Haleth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1173
File comments: 1146
Uploads: 17
Hey zork,

Not sure if this is intentional, but this won't restyle the ExtraActionButton . The regular function doesn't work if you add it, too, because that the button doesn't appear to have a NormalTexture.

It works fine if you make an exception for it (not sure about taint though).
Last edited by Haleth : 12-05-11 at 03:43 AM.
Report comment to moderator  
Reply With Quote
Unread 12-05-11, 12:06 PM  
Maxen
A Fallenroot Satyr

Forum posts: 23
File comments: 235
Uploads: 0
Originally Posted by Haleth
but this won't restyle the ExtraActionButton .
This! Thanks
Report comment to moderator  
Reply With Quote
Unread 01-20-12, 12:54 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Added a new style function for the ExtraActionButton1.

Result:


Function:
http://code.google.com/p/rothui/sour...vn796&r=796#86
__________________
| 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-20-12 at 12:56 PM.
Report comment to moderator  
Reply With Quote
Unread 02-16-12, 03:02 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
The update from yesterday is quite a rewrite on how the style functions get called. I know some of you use this mod together with Dominos.
This may not work anymore with the latest version because I removed most of the ActionButtonTemplate hooks.

Gonna look into it.
__________________
| 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 02-16-12, 08:26 AM  
ronconsoda
A Defias Bandit

Forum posts: 3
File comments: 8
Uploads: 0
To all those Dominos users who want to keep using this addon add the following to the init() function:

Code:
	for i = 1, 60 do
		local bu = _G["DominosActionButton"..i]
		if bu then
			styleActionButton(bu)
		end
	end
Report comment to moderator  
Reply With Quote
Unread 02-16-12, 08:42 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Well that was fast.

Maybe i can finally style Bartender buttons? I guess no but who knows.
__________________
| 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 : 02-16-12 at 08:47 AM.
Report comment to moderator  
Reply With Quote
Unread 02-16-12, 09:30 AM  
ronconsoda
A Defias Bandit

Forum posts: 3
File comments: 8
Uploads: 0
Originally Posted by zork
Well that was fast.

Maybe i can finally style Bartender buttons? I guess no but who knows.
did a quick check with bartender4. Nowadays you skin about half of it. But bartender still does to much its own skinning. Therefore nope it does not work
Report comment to moderator  
Reply With Quote
Unread 02-16-12, 12:00 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
No. To skin Bartender I have to call the skin function with the Bartender button name. I'm not doing that atm. We will see, gonna test some stuff 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)
Report comment to moderator  
Reply With Quote
Unread 02-16-12, 02:31 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
I did it. I found a way to hack Bartender4 icon styling.

The fixing code snippet is:
Code:
    if bartender4 then --fix the normaltexture
      nt:SetTexCoord(0,1,0,1)
      nt.SetTexCoord = function() return end
      bu.SetNormalTexture = function() return end
    end


Works for all actionbuttons and stance buttons.

Pet buttons are scary ... a lot of hacked code in Bartender4->petbutton.lua. In fact the default NormalTexture is disabled and replaced by another texture. So no pet bar skinning for Bartender4, but stance and actionbutton skinning works perfect.

Dominos has pet and actionbar skinng but no stancebar. That is because the stancebar of Dominos is using no NormalTexture.

Hmm pretty happy with the outcome actually.

The good thing on the new styling is that it is only called once at loadup. Thus it requires a reload if you pop new bars that was not available at load. Small price to pay imo. Since I could remove all the ActionButtonUpdate hooks (which fire alot) in combat.
__________________
| 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 : 02-17-12 at 02:12 AM.
Report comment to moderator  
Reply With Quote
Unread 02-16-12, 03:15 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Upload incoming.

__________________
| 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 04-18-12, 09:16 PM  
linguini
A Fallenroot Satyr

Forum posts: 20
File comments: 80
Uploads: 0
my extra action button is a bit messed up

http://i.imgur.com/hpk5t.png

is there anyway to get back the background texture? or maybe fix the frame or something?
Report comment to moderator  
Reply With Quote
Unread 04-19-12, 02:48 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
What actionbar mod are you using? If you are using rActionBarStyler make sure you have the latesr versions of rActionBarStyler and rActionButtonStyler there were some improvements.
__________________
| 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 04-29-12, 12:59 AM  
Dhaern
A Kobold Labourer

Forum posts: 0
File comments: 63
Uploads: 0
Hi Zork, if I want implement this function for keybindings 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
Where/How call this function? I need help plz. Thx for all.
Last edited by Dhaern : 04-29-12 at 12:59 AM.
Report comment to moderator  
Reply With Quote
Unread 04-29-12, 11:32 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Add the function call to the updateHotkey function. Basically do this:
Lua Code:
  1. local function updateName(self, actionButtonType)
  2.     local replace = string.gsub
  3.     local ho = _G[self:GetName() .. "HotKey"]
  4.     local key = ho:GetText()
  5.     key = replace(key, '(s%-)', 'S')
  6.     key = replace(key, '(a%-)', 'A')
  7.     key = replace(key, '(c%-)', 'C')
  8.     key = replace(key, '(Mouse Button )', 'M')
  9.     key = replace(key, '(Middle Mouse)', 'M3')
  10.     key = replace(key, '(Mouse Wheel Down)', 'MWD')
  11.     key = replace(key, '(Mouse Wheel Up)', 'MWU')
  12.     key = replace(key, '(Num Pad )', 'N')
  13.     key = replace(key, '(Page Up)', 'PU')
  14.     key = replace(key, '(Page Down)', 'PD')
  15.     key = replace(key, '(Spacebar)', 'SpB')
  16.     key = replace(key, '(Insert)', 'Ins')
  17.     key = replace(key, '(Home)', 'Hm')
  18.     key = replace(key, '(Delete)', 'Del')
  19.     if ho:GetText() == _G['RANGE_INDICATOR'] then
  20.         ho:SetText('')
  21.     else
  22.         ho:SetText(key)
  23.     end
  24.   end
  25.  
  26.   --update hotkey func
  27.   local function updateHotkey(self, actionButtonType)
  28.     local ho = _G[self:GetName() .. "HotKey"]
  29.     if ho and not cfg.hotkeys.show then
  30.       ho:Hide()
  31.     else
  32.        updateName(self, actionButtonType)
  33.     end
  34.   end

You add your function on top of the updateHotkey function and inside the updateHokey function you call the updateName function.
http://code.google.com/p/rothui/sour...r/core.lua#239
__________________
| 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 : 04-29-12 at 11:33 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: