Category: Action Bar Mods
Addon Information
Works with 3.2
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
zork's Portal Bug Reports Feature Requests
Author:
Version:
005
Date:
08-02-2009 08:42 AM
Size:
18.47 Kb
Downloads:
19,679
Favorites:
198
MD5:
Pictures
Click to enlarge
001
Click to enlarge
001
Click to enlarge
001 - vehicle
Click to enlarge
simplebutton skin
rActionButtonStyler   Popular! (More than 5000 hits)

Intro


- 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.

Additional Styles

- Stoneh
- Roth
- Simplesquare
- Slim
- Round

more...

Config
Code:
  ---------------------------------------
  -- 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
  ---------------------------------------

SVN
http://code.google.com/p/rothui/sour...onButtonStyler
  Change Log - rActionButtonStyler
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 - rActionButtonStyler
File Name
Version
Size
Author
Date
Type
2.0
2kB
10-30-2009 01:39 PM
Addon
1.0
3kB
08-18-2009 01:37 PM
Addon
1.0
10kB
07-06-2009 02:02 PM
Addon
v1
16kB
06-17-2009 08:57 PM
Addon
1.5
28kB
05-24-2009 08:32 AM
Addon
1.5
27kB
05-24-2009 08:29 AM
Addon
v1.3
18kB
02-19-2009 01:10 PM
Addon
001
21kB
01-23-2009 04:24 AM
Addon
1.0
5kB
01-22-2009 10:38 AM
Addon
003
6kB
01-20-2009 09:16 PM
Patch
001
15kB
01-20-2009 04:59 PM
Addon
001
10kB
01-20-2009 04:58 PM
Addon
0.1
7kB
01-17-2009 11:12 AM
Addon
  Archived Versions - rActionButtonStyler
File Name
Version
Size
Author
Date
004-2
17kB
zork
04-18-2009 10:28 PM
003
17kB
zork
01-20-2009 05:04 PM
002
12kB
zork
01-17-2009 08:20 AM
  Comments - rActionButtonStyler
Post A Reply Comment Options
Old 08-07-2009, 08:05 AM  
Xzatly
A Kobold Labourer
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 20
Uploads: 2
Great add'on, thanks !
Is it possible to scale the bars?
In some previous version I did it, but last one I can't find anymore.

Thanks
Xzatly is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-04-2009, 08:56 PM  
kimboslice
A Defias Bandit

Forum posts: 3
File comments: 54
Uploads: 0
Are you going to add support for the new totem bar?
kimboslice is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-04-2009, 02:24 PM  
Ouo
A Defias Bandit
 
Ouo's Avatar

Forum posts: 3
File comments: 23
Uploads: 0
Thanks for the update, you sir are a god!
Ouo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-04-2009, 06:18 AM  
Heimdall
A Murloc Raider

Forum posts: 9
File comments: 9
Uploads: 0
Quote:
Originally posted by zork
Bartender4 is not using the default ActionButtonTemplate, or at least not the default one, so I'm sorry. Dominos works flawlessly though.
Yes you are right, i've tried Dominos this morning and the skin was perfect, thanks.

Regards
Heimdall
Heimdall is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-03-2009, 06:19 PM  
zork
A Flamescale Wyrmkin
 
zork's Avatar
Interface Author - Click to view interfaces

Forum posts: 146
File comments: 1082
Uploads: 28
Bartender4 is not using the default ActionButtonTemplate, or at least not the default one, so I'm sorry. Dominos works flawlessly though.
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI mini | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild
zork is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-03-2009, 02:40 PM  
Heimdall
A Murloc Raider

Forum posts: 9
File comments: 9
Uploads: 0
I can't get this to work, i'm using bartender4 and all i get it buttons covered with a big black square, they're incompatible or am i missing something?

Regards
Heimdall is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-03-2009, 10:52 AM  
zork
A Flamescale Wyrmkin
 
zork's Avatar
Interface Author - Click to view interfaces

Forum posts: 146
File comments: 1082
Uploads: 28
Tell Blizzard how to do a rangecheck on 120 buttons without any kind of onUpdate script and you win many Internets.

But I got another good idea. I will try to add
Code:
ActionHasRange(self.action)
to the onUpdate func.

The updateUsable func is called on its own event, the onUpdate is rangeCheck only. Thus if the action does not even have a numeric range requirement it does not have to be updated and the function could just "return".

*edit* Just tested it. The following function is doing OK.

Code:
  --rewrite of the onupdate func
  --much less cpu usage needed
  local function rActionButtonStyler_AB_onupdate(self,elapsed)
    local t = self.rABS_range
    if (not t) then
      self.rABS_range = 0
      return
    end
    t = t + elapsed
    if (t<update_timer) then
      self.rABS_range = t
      return
    else
      self.rABS_range = 0
      if(not ActionHasRange(self.action)) then
        return
      end
      rActionButtonStyler_AB_usable(self)
    end
  end
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI mini | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild

Last edited by zork : 08-03-2009 at 12:04 PM.
zork is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-03-2009, 07:00 AM  
level12wizard
A Defias Bandit
Interface Author - Click to view interfaces

Forum posts: 2
File comments: 38
Uploads: 1
Agree with font size being something good for the fluffy config section, although I don't find it necessary, it can help people out.

It's amazing how such a simple thing ends up being the most CPU intensive addon I have, even after the overhaul. The update is fantastic, yet I still wish Blizzard would come up with a better way.
level12wizard is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-03-2009, 06:21 AM  
sakurakira
A Deviate Faerie Dragon
 
sakurakira's Avatar
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 10
Uploads: 3
Nice update thanks!

I especially like the changes made to color info, and hotkey hide (1/0). I don't quite agree with putting the font size in the "Do not touch" area, as changing those numbers isn't "dangerous." I find the default 18 to be too large for me.

/cheer
__________________
Arise, my champion!

Carnation - 80 Blood Elf (Priest) <Vanguard> / Vek'nilash-US
sakurakira is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-02-2009, 06:28 PM  
Caellian
A Chromatic Dragonspawn
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 163
File comments: 663
Uploads: 4
Nice job with the 05
__________________


Quote:
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Caellian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-02-2009, 06:28 PM  
richerich
An Aku'mai Servant
 
richerich's Avatar
Interface Author - Click to view interfaces

Forum posts: 30
File comments: 400
Uploads: 5
Quote:
Originally posted by zork
Without keybindings yes.
oh lol... stupid me xD well, i play normally without keybindings, so maybe it's just me ^^
__________________


Dajova UI

Dajova UI Mini
richerich is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-02-2009, 03:07 PM  
zork
A Flamescale Wyrmkin
 
zork's Avatar
Interface Author - Click to view interfaces

Forum posts: 146
File comments: 1082
Uploads: 28
Quote:
Originally posted by richerich
"- added dominos support"
Strange, it has worked on my Dominos for ages
Without keybindings yes.
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI mini | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild
zork is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-02-2009, 12:44 PM  
Rintrah
A Defias Bandit

Forum posts: 2
File comments: 21
Uploads: 0
I'm sorry I hadn't checked into these comments yet to test it out, but it looks like you've got it, great! D/Ling update :>

e: Yeah, the cpu usage is chopped down to a much more acceptable level, I have a feeling that this will no longer cause a noticable hit... thanks a ton for looking into it and improving!

e2: Oh, the addition of update timer to config is also welcome - as I mentioned earlier in the thread, the range updating isn't much important to me as might be with others, and this setting makes a real difference. Also, the class coloring is sweet :>

Last edited by Rintrah : 08-02-2009 at 01:30 PM.
Rintrah is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-02-2009, 12:19 PM  
richerich
An Aku'mai Servant
 
richerich's Avatar
Interface Author - Click to view interfaces

Forum posts: 30
File comments: 400
Uploads: 5
"- added dominos support"
Strange, it has worked on my Dominos for ages
__________________


Dajova UI

Dajova UI Mini
richerich is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-01-2009, 09:17 AM  
MastaM00
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Did some test passes this morning.

Seems you've nailed it.

Initial UI load/ console reloadui / vehicle possess bar keybinding text all appear properly with no need to manually toggle the binding text dominos toggle.

I'll keep a watch out for any errors in buggrabber but I'm pretty sure this is solid.

Thanks!
MastaM00 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.