- Small mod that uses hooksecurefunctions to edit the textures of the default ActionButtonTemplate.
- does range and mana coloring aswell
- You can use your own textures, just change the ones included inside the media folder.
- Font and font size can be changed too.
- This one is intended to be a ButtonFacade replacement, at least for the ActionButtonTemplate.
- The is no ingame config, its all lua code.
- This can be used with any actionbar mod that uses the default ActionButtonTemplate.
Colors
You can colorize your textures (class-coloring for example). To do that adjust the color variables in the lua code.
If you want the default color of a texture all colors (RGB = red, green, blue) have to be 1 (255/255). If you choose 0 (0/255) the texture will be completly dark.
---------------------------------------
-- CONFIG
---------------------------------------
--TEXTURES
--default border texture
local rb2_normal_texture = "Interface\\AddOns\\rActionButtonStyler\\media\\gloss"
--texture when a button flashs --> button becomes ready
local rb2_flash_texture = "Interface\\AddOns\\rActionButtonStyler\\media\\flash"
--hover textures
local rb2_hover_texture = "Interface\\AddOns\\rActionButtonStyler\\media\\hover"
--texture if you push that button
local rb2_pushed_texture = "Interface\\AddOns\\rActionButtonStyler\\media\\pushed"
--texture that is active when the button is in active state (next melee swing attacks mostly)
local rb2_checked_texture = "Interface\\AddOns\\rActionButtonStyler\\media\\checked"
--texture used for equipped items, this can differ since you may want to apply a different vertexcolor
local rb2_equipped_texture = "Interface\\AddOns\\rActionButtonStyler\\media\\gloss_grey"
--FONT
--the font you want to use for your button texts
local button_font = "Fonts\\FRIZQT__.TTF"
--hide the hotkey? 0/1
local hide_hotkey = 1
--use dominos? 0/1
local use_dominos = 0
--COLORS
--color you want to appy to the standard texture (red, green, blue in RGB)
local color = { r = 0.37, g = 0.3, b = 0.3, }
--want class color? just comment in this:
--local color = RAID_CLASS_COLORS[select(2, UnitClass("player"))]
--color for equipped border texture (red, green, blue in RGB)
local color_equipped = { r = 0, g = 0.5, b = 0, }
--color when out of range
local range_color = { r = 0.8, g = 0.1, b = 0.1, }
--color when out of power (mana)
local mana_color = { r = 0.1, g = 0.3, b = 1, }
--color when button is usable
local usable_color = { r = 1, g = 1, b = 1, }
--color when button is unusable (example revenge not active, since you have not blocked yet)
local unusable_color = { r = 0.4, g = 0.4, b = 0.4, }
-- !!!IMPORTANT!!! - read this before editing the value blow
-- !!!do not set this below 0.1 ever!!!
-- you have 120 actionbuttons on screen (most of you have at 80) and each of them will get updated on this timer in seconds
-- default is 1, it is needed for the rangecheck
-- if you dont want it just set the timer to 999 and the cpu usage will be near zero
-- if you set the timer to 0 it will update all your 120 buttons on every single frame
-- so if you have 120FPS it will call the function 14.400 times a second!
-- if the timer is 1 it will call the function 120 times a second (depends on actionbuttons in screen)
local update_timer = 1
---------------------------------------
-- CONFIG END
---------------------------------------
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)
Originally posted by Nepsi Had the problem that key bindings disappeared. I found a 0/1 option in the rActionButtonStyler that fixed the disappearing Hotkeys. The issue remains with the macro text, but I could not find a 0/1 option for this. Does anyone have a hint?
Had the problem that key bindings disappeared. I found a 0/1 option in the rActionButtonStyler that fixed the disappearing Hotkeys. The issue remains with the macro text, but I could not find a 0/1 option for this. Does anyone have a hint?
My action bar setup is dne by Dominos. I used rActionButtonStyler to adjust the borders of my action bars, but the stance bar keeps it original button borders. Is there something special that needs to be done in addition to what I did for the action bars?
Answer: found it myself on Page 4 - template of class bar not used by dominos, is there a workaround?
Either the texture is not found (you need to restart wow when loading new textures and the name needs to match) or the texture size of your new texture does not match the ones needed for rActionButtonStyler (texture filling).
You cannot use ButtonFacade textures in rActionButtonstyler they don't fit.
But...imo the texture is just not found, looks like the default border.
I have a Problem regarding the Button textures at the very start of the config. I wanted to import a tga from another guy also using the rActionbuttonstyler. So I changed the config into
Code:
--default border texture
local rb2_normal_texture = "Interface\\AddOns\\rActionButtonStyler\\media\\dBBorderD"
Originally posted by Chrnotic Is there a further way to modify the font used for button text (aka keybindings) like adding outline and stuff like that?
Just loaded this up with Dominos and every thing seems to work but all the buttons are in the wrong order. Button 1 starts on the far right and the buttons go right to left instead of left to right like normal. I can't seem to find a setting to fix this. Any help would be appreciated. - Never mind found the answer