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,222
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 02-10-10, 08:24 PM  
ashkalon33
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Hey im sry but im pretty noob at lua.file addons...I did this addon a while back but forgot where i put the lua.file and the media folder..could u pls refresh my memory?? thx in advance!!
Report comment to moderator  
Reply With Quote
Unread 02-11-10, 12:05 PM  
Shammypowah
A Kobold Labourer
 
Shammypowah's Avatar

Forum posts: 1
File comments: 19
Uploads: 0
Hello. I have a issue here wich i just can't seem to sort out myself. I have checked the lua and found the - initial style func and have tried to change stuff there but it doesn't help.

This is my problem:


I am using Dominos.

The cooldown/flash texture is larger than the icon itself.
Report comment to moderator  
Reply With Quote
Unread 02-12-10, 06:01 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 Shammypowah
The cooldown/flash texture is larger ...
Check http://www.wowinterface.com/downloads/info14009.html
__________________
| 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-19-10, 02:40 PM  
Rainrider
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 454
File comments: 28
Uploads: 2
Hi Zork, you stated previously that you don't play a shaman and thus are not able to implement support for the totem bar. Maybe we could provide some information for you and it would be helpful to add the skinning in rABS. So I just give you what I was able to find out, don't know if it helps you.

Button names:
- MultiCastSummonSpellButton (MCSSB)
- MultiCastRecallSpellButton (MCRSB)
- MultiCastActionButton# (MCAB#)
- MultiCastFlyoutButton# (MCFB#)

A totem bar looks then like this:
Code:
MCSSB	MCAB1	MCAB2	MCAB3	MCAB4	MCRSB
	MCFB1	MCFB1	MCFB1	MCFB1
			MCFB2	MCFB2
			MCFB3
HasMultiCastActionBar() - checks whether player has the totem bar:
- returns true if at least 1 totem spell is known else false

Shamans have 3 call spells learnt at lvl 30, 40 and 50. Every time when learning a call spell, a new totem bar is spawned. The totem bars are refered to as pages. To check which ones the player has, one could use

HasMultiCastActionPage(#)
- returns the spellid of the call-spell for page # or nil meaning the page is empty
- returns false for non existent pages

The number of pages is stored in NUM_MULTI_CAST_PAGES (currently 3)

Every page has than NUM_MULTI_CAST_BUTTONS_PER_PAGE (currently 4 buttons for totems per bar)

Every MultiCastActionButton has a flyout containing all the learnt totems in the corresponding school for the button plus an empty slot. I don't know how to get the number of flyout buttons

I also don't know which secure function to hook to.

The style function itself would look something like this:
Code:
for i=1, NUM_MULTI_CAST_PAGES do
	page = _G["MultiCastActionPage"..i]
	
	if page then
		-- style MultiCastSummonSpellButton
	end

	for 1, NUM_MULTI_CAST_BUTTONS_PER_PAGE do
		-- style totem buttons
		-- TODO: flyout per button
	end
	
	if page then
		-- style MultiCastRecallSpellButton
	end
end
Please tell me if you need more infos.

I would also be happy to try to implement this myself as I started learning Lua recently. I'd be thankful for any hints on this.
Report comment to moderator  
Reply With Quote
Unread 02-20-10, 09:40 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Check rActionBarStyler comments. Someone posted a solution there.
__________________
| 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-20-10, 11:05 AM  
Rainrider
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 454
File comments: 28
Uploads: 2
Ich erlaube mir dann auch auf Deutsch zu schreiben. Danke für den Hinweis, leider hilft er mir nicht weiter, da I.am.Weasl einfach nur den Behälter des Totembars bewegt. Zum Stylen brauchen wir aber die Buttons selbst. Außerdem braucht man hooksecurefunc um Änderungen abzufangen, was anscheinend in rActionBatStyler nicht nötig ist. Ich bräuchte lediglich einen Tipp welche Blizzfunktion ich anhaken sollte. Tut mir leid, ich weiß das ist kein Lernforum, wäre trotzdem für Hilfe sehr dankbar.

Grüße
Rain
Report comment to moderator  
Reply With Quote
Unread 02-21-10, 05:12 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Wenn du dich dafür interessiert, melde dich mal hier http://ui.phcnet.de/index.php und http://www.buffed.de/forum/index.php...n-wow-add-ons/ an. Da gibts viele Leute die dir weiterhelfen auf Deutsch.

Du musst dir zuerst einmal angucken welches Template Blizzard für die Buttons verwendet. Dazu gibts bei wowprogramming einen Blizzard xml/lua Browser: http://wowprogramming.com/utils/xmlbrowser

http://wowprogramming.com/utils/xmlb...onBarFrame.lua

Da gibts genug Funktionen Funktionen die du hooken könntest. Such vorallem ob dort irgendwo Textren gesetzt werden. (normalTexture)
__________________
| 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-21-10, 08:26 AM  
Rainrider
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 454
File comments: 28
Uploads: 2
Hey cool, herzlichen Dank, ich werde Deine Tipps befolgen. War auch auf dem richtigen Weg mit dem FrameXML Browser. Werde dann meine Fragen in den von Dir vorgeschlagenen Foren stellen.

Vielen Dank noch mal
Rain
Report comment to moderator  
Reply With Quote
Unread 03-06-10, 06:57 PM  
Meebsy
A Murloc Raider
 
Meebsy's Avatar

Forum posts: 6
File comments: 53
Uploads: 0
Taint Logging

Recently I've had trouble with rActionBarStyler not paging the action bars properly during events where I'm in a vehicle or possession so I decided to do some taint logging to see if I could find a possible solution.
Running the normal "/console taintLog 1" didn't find anything except taint in PicoFriends, so I decide to run a full taint log with "/console taintLog 2" and it brought up the following.

Code:
3/7 10:48:22.447  Execution tainted by rActionButtonStyler while reading ActionButton_OnUpdate - ActionButton1:OnUpdate()
3/7 10:48:22.447  Execution tainted by rActionButtonStyler while reading ActionButton_OnUpdate - ActionButton2:OnUpdate()
3/7 10:48:22.447  Execution tainted by rActionButtonStyler while reading ActionButton_OnUpdate - ActionButton3:OnUpdate()
3/7 10:48:22.447  Execution tainted by rActionButtonStyler while reading ActionButton_OnUpdate - ActionButton4:OnUpdate()
3/7 10:48:22.447  Execution tainted by rActionButtonStyler while reading ActionButton_OnUpdate - ActionButton5:OnUpdate()
3/7 10:48:22.447  Execution tainted by rActionButtonStyler while reading ActionButton_OnUpdate - ActionButton6:OnUpdate()
3/7 10:48:22.447  Execution tainted by rActionButtonStyler while reading ActionButton_OnUpdate - ActionButton7:OnUpdate()
3/7 10:48:22.447  Execution tainted by rActionButtonStyler while reading ActionButton_OnUpdate - ActionButton8:OnUpdate()
3/7 10:48:22.447  Execution tainted by rActionButtonStyler while reading ActionButton_OnUpdate - ActionButton9:OnUpdate()
3/7 10:48:22.447  Execution tainted by rActionButtonStyler while reading ActionButton_OnUpdate - ActionButton10:OnUpdate()
3/7 10:48:22.447  Execution tainted by rActionButtonStyler while reading ActionButton_OnUpdate - ActionButton11:OnUpdate()
3/7 10:48:22.447  Execution tainted by rActionButtonStyler while reading ActionButton_OnUpdate - ActionButton12:OnUpdate()
This happened for every single button of every single action bar over and over again.
I also noticed the following taint as well.
Code:
3/7 10:48:22.447  Execution tainted by rBuff while reading BUFF_FLASH_TIME_ON - Interface\FrameXML\BuffFrame.lua:73
3/7 10:48:22.447  Execution tainted by rBuff while reading BUFF_FLASH_TIME_ON - Interface\FrameXML\BuffFrame.lua:73
3/7 10:48:22.447  Execution tainted by rBuff while reading BUFF_MIN_ALPHA - Interface\FrameXML\BuffFrame.lua:77
3/7 10:48:22.447  Execution tainted by rBuff while reading BUFF_MIN_ALPHA - Interface\FrameXML\BuffFrame.lua:77
3/7 10:48:22.447  Execution tainted by rBuff while reading SecondsToTimeAbbrev - Interface\FrameXML\BuffFrame.lua:255
3/7 10:48:22.447      securecall()
3/7 10:48:22.447      Interface\FrameXML\BuffFrame.lua:241
I'm not sure how these would effect the paging of the action bars.
Btw I'm not using the default skinning you gave it, I'm currently using http://www.wowinterface.com/download...tNameSkin.html

I only used "/console taintLog 2" for 1 second and it made a ~3mg log file of the above taint repeating over and over again.

EDIT: I just reset rActionButtonStyler back to it's default skinning and it is still producing the same taint.
__________________
Last edited by Meebsy : 03-06-10 at 07:05 PM.
Report comment to moderator  
Reply With Quote
Unread 03-07-10, 12:48 AM  
Silvanaa
A Kobold Labourer

Forum posts: 0
File comments: 15
Uploads: 3
Im having an issue with the standard blizzard pet bar background still being present when i use ractionbuttonstyler/ractionbarstyler: http://img52.imageshack.us/img52/957...0710014320.jpg
Report comment to moderator  
Reply With Quote
Unread 03-07-10, 05:54 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
@silvanaa
The rActionBarStyler package contains textures that must be installed. The addon alone is not enough. I rewrite Blizzard textures with transparent ones.

@Meebsy
Thanks for reporting. Blizzard introduced http://www.wowwiki.com/API_securecall so stuff needs to be changed to make it work.

In rActionButtonStyler.lua change
Code:
ActionButton_OnUpdate = rActionButtonStyler_AB_onupdate
to
Code:
--ActionButton_OnUpdate = rActionButtonStyler_AB_onupdate
  hooksecurefunc("ActionButton_OnUpdate",   rActionButtonStyler_AB_onupdate)
For rBuff...Just open rBuff.lua and delete the lines containing BUFF_FLASH_TIME_ON, BUFF_MIN_ALPHA etc.
__________________
| 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 : 03-07-10 at 06:02 AM.
Report comment to moderator  
Reply With Quote
Unread 03-14-10, 12:43 AM  
Lùinwë
A Defias Bandit

Forum posts: 2
File comments: 7
Uploads: 0
Hi,
For a better view on my UI, I modified the line 90 :
Code:
nt:SetHeight(bu:GetHeight()+4)
nt:SetWidth(bu:GetWidth()+4)
and the line 110 :
Code:
ic:SetPoint("TOPLEFT", bu, "TOPLEFT")
ic:SetPoint("BOTTOMRIGHT", bu, "BOTTOMRIGHT")
The problem is that the modification only is applied on my normal border, checked and pushed borders still smaller. Is there a way to apply the same thing to them ? Thanks
Last edited by Lùinwë : 03-14-10 at 05:04 AM.
Report comment to moderator  
Reply With Quote
Unread 03-19-10, 08:27 PM  
Toran
A Nerdscale Dorkin
 
Toran's Avatar
Premium Member

Forum posts: 143
File comments: 433
Uploads: 0
Hey Zork. Tried this with dominos and can't seem to keep the macro text on the buttons. This seems to be handled by dominos, which I have that option checked. It shows, but if I reload or flip bars, it goes away.

Edit: Figured it out. Solution a couple pages in this thread. However, the buttons are not coloring correctly for me. They start off tinted very white then as I use the buttons or swap bars, they color correctly. No idea what's going on.
Last edited by Toran : 03-28-10 at 02:16 PM.
Report comment to moderator  
Reply With Quote
Unread 04-02-10, 12:16 PM  
zohar101
A Cyclonian
 
zohar101's Avatar

Forum posts: 43
File comments: 188
Uploads: 0
Ok been trying to muck with the code to set red range back to default showing on text only but I break something in the process as the text colors red but the color doesn't reset. Could you please just point me to stuff I need to edit out/change so I have the simple range/mana text coloring instead of the whole button? Thanks for a great addon.
Last edited by zohar101 : 04-02-10 at 01:27 PM.
Report comment to moderator  
Reply With Quote
Unread 05-13-10, 02:14 AM  
jizzle1
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Hello, Im not really familiar with LUA files so I figured I would post this on here to see if I could get some assistance. I love this addon btw so far only having one problem. There are some red bars hovering over each of my bars making me not able to see my buttons, The addon I am using is bartender now I know i have read that this addon works great with dominos. if I need to I will switch to dominos but for now maybe I just need to do somethign as simple as change something in the LUA file but not sure what I need to change. Posting screen shot i took. I am in the middle of redoing my UI so it looks pretty bad right now. thanks in advance.


EDIT: Went ahead and tried it out with dominos and it works much much better. sorry hehe, I should of tried that one first!


Last edited by jizzle1 : 05-13-10 at 02:25 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: