Download
(23 Kb)
Download
Updated: 02-16-12 02:14 PM
Pictures
File Info
Tested:Hour of Twilight 4.3
Updated:02-16-12 02:14 PM
Created:12-27-08 07:46 PM
Downloads:56,133
Favorites:298
MD5:
This AddOn is 4.3 compatible
rActionButtonStyler  Popular! (More than 5000 hits)
Version: 40300.06
by: zork [More]

Intro
Small mod to add style to actionbuttons.

Supports DOMINOS and BARTENDER4!

If you like rActionBarStyler and rActionButtonStyler you may like: rBuffFrameStyler
Preview

Different styles
You can replace the default button textures with different ones. To do that download one of the following addons and extract the images into your media folder.
Show available styles
Config
- Settings can be adjusted by editing the config.lua
- There are settings for textures, colors, hotkeys, macronames, itemcount, cooldowns and so on.

lua Code:
  1. cfg.textures = {
  2.     normal            = "Interface\\AddOns\\rActionButtonStyler\\media\\gloss",
  3.     flash             = "Interface\\AddOns\\rActionButtonStyler\\media\\flash",
  4.     hover             = "Interface\\AddOns\\rActionButtonStyler\\media\\hover",
  5.     pushed            = "Interface\\AddOns\\rActionButtonStyler\\media\\pushed",
  6.     checked           = "Interface\\AddOns\\rActionButtonStyler\\media\\checked",
  7.     equipped          = "Interface\\AddOns\\rActionButtonStyler\\media\\gloss_grey",
  8.     buttonback        = "Interface\\AddOns\\rActionButtonStyler\\media\\button_background",
  9.     buttonbackflat    = "Interface\\AddOns\\rActionButtonStyler\\media\\button_background_flat",
  10.     outer_shadow      = "Interface\\AddOns\\rActionButtonStyler\\media\\outer_shadow",
  11.   }
  12.  
  13.   cfg.background = {
  14.     showbg            = true,  --show an background image?
  15.     showshadow        = true,   --show an outer shadow?
  16.     useflatbackground = false,  --true uses plain flat color instead
  17.     backgroundcolor   = { r = 0.3, g = 0.3, b = 0.3, a = 0.7},
  18.     shadowcolor       = { r = 0, g = 0, b = 0, a = 0.9},
  19.     classcolored      = false,
  20.     inset             = 5,
  21.   }
  22.  
  23.   cfg.color = {
  24.     normal            = { r = 0.37, g = 0.3, b = 0.3, },
  25.     equipped          = { r = 0.1, g = 0.5, b = 0.1, },
  26.     classcolored      = false,
  27.   }
  28.  
  29.   cfg.hotkeys = {
  30.     show            = false,
  31.     fontsize        = 12,
  32.     pos1             = { a1 = "TOPRIGHT", x = 0, y = 0 },
  33.     pos2             = { a1 = "TOPLEFT", x = 0, y = 0 }, --important! two points are needed to make the hotkeyname be inside of the button
  34.   }
  35.  
  36.   cfg.macroname = {
  37.     show            = false,
  38.     fontsize        = 12,
  39.     pos1             = { a1 = "BOTTOMLEFT", x = 0, y = 0 },
  40.     pos2             = { a1 = "BOTTOMRIGHT", x = 0, y = 0 }, --important! two points are needed to make the macroname be inside of the button
  41.   }
  42.  
  43.   cfg.itemcount = {
  44.     show            = true,
  45.     fontsize        = 12,
  46.     pos1             = { a1 = "BOTTOMRIGHT", x = 0, y = 0 },
  47.   }
  48.  
  49.   cfg.cooldown = {
  50.     spacing         = 0,
  51.   }
  52.  
  53.   cfg.font = "Fonts\\FRIZQT__.TTF"
SVN
http://code.google.com/p/rothui/sour...onButtonStyler
40300.06
- added Dominos support
- added Bartender4 support
changelog: http://code.google.com/p/rothui/source/detail?r=806

40300.05
- removed all secure hook calls for button updates
- new function calls
- added normaltexture to ExtraActionButton

40300.04
- added style function for the ExtraActionButton1

40300.03
- fixing patch 4.3 taint issues (DIFF)

40300.02
- fixing the Dominos issue when trying to put a background behind a button on framelevel -1.

40300.01
- fixes for patch 4.3

4.007
- updated toc for patch 4.2

4.006
- updated toc for patch 4.1

4.005
- WoW patch 4.0.6 fix

4.004
- added Garrys code for background image and outer glow


4.003
- fixing setpoints of long macro names and keybinds to be inside the buttons

4.002
- complete new file structure and finally a real config

4.001
- first running version for cataclysm

100812
- final multicastactionbar fix

100808
- fixed the bug that prevents from putting spells into bars while in combat
- mod is compatible to tullaRange
- if you want to use white buttons you need to adjust the ntSetVertexColor function

100710
- deleted A LOT of stuff and rewrote some other
- removed rangechange install "tullaRange" if you want rangecheck

005
- complete rewrite
- added a config
- biggest change is that I rewrite the default ActionButton onUpdate func now, this improved the performance by a mile
- added dominos support

004-2
- range_indicator fix

004
- updated for 3.1
- included range/mana coloring (thus only 1x hooking the actionbutton onupdate func is needed -> better cpu usage)

003
- classcolored buttons possible (see lua)
- onupdate in again to be able to colorize textures (make sure redrange normaltexture coloring is disabled!)
- new default skin (simplebutton)

002
- fixed the normaltexture bug for stancebars
- removed the onupdate hook for actionbuttons (thx to Neal)

001
- first release
Optional Files (20)
File Name
Version
Size
Author
Date
Type
1.3
80kB
11-29-10 01:09 PM
Addon
1.0
22kB
11-14-10 05:23 PM
Addon
1.2
24kB
11-09-10 01:59 PM
Addon
1.0
3kB
11-05-10 09:22 AM
Addon
4.003
41kB
10-16-10 07:02 PM
Patch
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 11:47 AM
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
1.5
28kB
05-24-09 06:32 AM
Addon
1.5
27kB
05-24-09 06:29 AM
Addon
v1.3
18kB
02-19-09 11:10 AM
Addon
001
21kB
01-23-09 02:24 AM
Addon
1.0
5kB
01-22-09 08:38 AM
Addon
003
6kB
01-20-09 07:16 PM
Patch
001
15kB
01-20-09 02:59 PM
Addon
001
10kB
01-20-09 02:58 PM
Addon
0.1
7kB
01-17-09 09:12 AM
Addon


Archived Files (16)
File Name
Version
Size
Author
Date
40300.05
23kB
zork
02-15-12 03:59 PM
40300.04
23kB
zork
01-20-12 11:51 AM
40300.03
23kB
zork
12-04-11 04:16 PM
40300.02
23kB
zork
11-30-11 12:45 PM
40300.01
23kB
zork
11-30-11 11:35 AM
4.007
23kB
zork
06-29-11 03:40 PM
4.006
23kB
zork
04-28-11 11:40 AM
4.005
23kB
zork
02-09-11 12:55 PM
4.004
23kB
zork
10-17-10 07:16 AM
4.003
18kB
zork
10-16-10 06:03 AM
4.001
18kB
zork
10-15-10 03:40 PM
100812
18kB
zork
08-12-10 03:11 PM
005
18kB
zork
08-02-09 06:42 AM
004-2
17kB
zork
04-18-09 08:28 PM
003
17kB
zork
01-20-09 03:04 PM
002
12kB
zork
01-17-09 06:20 AM


Post A Reply Comment Options
Old 04-29-12, 11:32 AM  
zork
A Molten Giant
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 787
File comments: 2736
Uploads: 53
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.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de

"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.
zork is offline Report comment to moderator  
Reply With Quote
Old 04-29-12, 12:59 AM  
Dhaern
A Kobold Labourer

Forum posts: 0
File comments: 57
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.
Dhaern is offline Report comment to moderator  
Reply With Quote
Old 04-19-12, 02:48 AM  
zork
A Molten Giant
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 787
File comments: 2736
Uploads: 53
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.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Old 04-18-12, 09:16 PM  
linguini
A Deviate Faerie Dragon

Forum posts: 18
File comments: 61
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?
linguini is offline Report comment to moderator  
Reply With Quote
Old 02-16-12, 02:15 PM  
zork
A Molten Giant
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 787
File comments: 2736
Uploads: 53
Upload incoming.

__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Old 02-16-12, 01:31 PM  
zork
A Molten Giant
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 787
File comments: 2736
Uploads: 53
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.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 02-17-12 at 01:12 AM.
zork is offline Report comment to moderator  
Reply With Quote
Old 02-16-12, 11:00 AM  
zork
A Molten Giant
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 787
File comments: 2736
Uploads: 53
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.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Old 02-16-12, 08: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
ronconsoda is offline Report comment to moderator  
Reply With Quote
Old 02-16-12, 07:42 AM  
zork
A Molten Giant
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 787
File comments: 2736
Uploads: 53
Well that was fast.

Maybe i can finally style Bartender buttons? I guess no but who knows.
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 02-16-12 at 07:47 AM.
zork is offline Report comment to moderator  
Reply With Quote
Old 02-16-12, 07: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
ronconsoda is offline Report comment to moderator  
Reply With Quote
Old 02-16-12, 02:02 AM  
zork
A Molten Giant
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 787
File comments: 2736
Uploads: 53
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.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Old 01-20-12, 11:54 AM  
zork
A Molten Giant
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 787
File comments: 2736
Uploads: 53
Added a new style function for the ExtraActionButton1.

Result:


Function:
http://code.google.com/p/rothui/sour...vn796&r=796#86
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 01-20-12 at 11:56 AM.
zork is offline Report comment to moderator  
Reply With Quote
Old 12-05-11, 11:06 AM  
Maxen
A Deviate Faerie Dragon

Forum posts: 17
File comments: 196
Uploads: 0
Originally Posted by Haleth
but this won't restyle the ExtraActionButton .
This! Thanks
Maxen is offline Report comment to moderator  
Reply With Quote
Old 12-05-11, 02:05 AM  
Haleth
Look at the post
 
Haleth's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 800
File comments: 859
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 02:43 AM.
Haleth is online now Report comment to moderator  
Reply With Quote
Old 12-05-11, 12:16 AM  
zork
A Molten Giant
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 787
File comments: 2736
Uploads: 53
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.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 12-05-11 at 12:20 AM.
zork is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: