Quantcast
Download
(4 Kb)
Download
Updated: 10-31-16 03:32 PM
Pictures
File Info
Compatibility:
Return to Karazhan (7.1.5)
Updated:10-31-16 03:32 PM
Created:12-27-08 08:46 PM
Downloads:80,211
Favorites:317
MD5:
Categories:Action Bar Mods, Buff, Debuff, Spell

rButtonTemplate  Popular! (More than 5000 hits)

Version: 710.20161031
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.
API documentation
https://github.com/zorker/rothui/blo...late/README.me (Check the themes for examples)
Quick-Links
rActionBar, rActionBar_Default, rActionBar_Zork, rBuffFrame, rBuffFrame_Default, rBuffFrame_Zork, rButtonTemplate, rButtonTemplate_Default, rButtonTemplate_Zork
Git
https://github.com/zorker/rothui/tre...ButtonTemplate

Optional Files (20)
File Name
Version
Size
Author
Date
Type
720-2017032801
4kB
03-28-17 04:48 PM
Addon
710.20161117
14kB
11-17-16 11:42 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


Archived Files (26)
File Name
Version
Size
Author
Date
710.20161027
4kB
zork
10-27-16 12:37 PM
700.20161009
4kB
zork
10-09-16 02:21 PM
700.20161004
4kB
zork
10-04-16 06:21 AM
60000.01
24kB
zork
10-24-14 07:47 PM
50400.01
24kB
zork
09-16-13 04:44 AM
50200.01
24kB
zork
03-04-13 05:37 PM
50100.01
24kB
zork
11-28-12 01:27 PM
50001.07
24kB
zork
11-21-12 12:24 PM
50001.06
24kB
zork
09-21-12 02:19 PM
40300.06
23kB
zork
02-16-12 03:14 PM
40300.05
23kB
zork
02-15-12 04:59 PM
40300.04
23kB
zork
01-20-12 12:51 PM
40300.03
23kB
zork
12-04-11 05:16 PM
40300.02
23kB
zork
11-30-11 01:45 PM
40300.01
23kB
zork
11-30-11 12:35 PM
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 01: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 04:04 PM
002
12kB
zork
01-17-09 07:20 AM


Post A Reply Comment Options
Unread 10-28-10, 01:18 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1685
File comments: 3656
Uploads: 120
Re: Bug on Cataclysm

Thx for posting but it says "rActionBarStyler\bars\bar1.lua" not rActionButtonStyler. So the problem will be discussed there.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 10-28-10 at 01:30 AM.
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 07:15 PM  
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 263
File comments: 403
Uploads: 8
Bug on Cataclysm

zork, everything worked fine on the Beta till today's update (that gave us the cool Dragon Login Screen ).

I can't test this on Live as my subscription ran out (will be back for CC!), but on the Beta after the patch I get some taint error.

lua Code:
  1. Message: Interface\FrameXML\RestrictedExecution.lua:414: Invalid working environment
  2. Time: 10/28/10 02:13:15
  3. Count: 1
  4. Stack: [C]: ?
  5. Interface\FrameXML\RestrictedExecution.lua:414: in function <Interface\FrameXML\RestrictedExecution.lua:412>
  6. (tail call): ?
  7. Interface\FrameXML\SecureHandlers.lua:489: in function <Interface\FrameXML\SecureHandlers.lua:467>
  8. [C]: in function `SetAttribute'
  9. Interface\FrameXML\SecureHandlers.lua:663: in function <Interface\FrameXML\SecureHandlers.lua:652>
  10. (tail call): ?
  11. Interface\AddOns\rActionBarStyler\bars\bar1.lua:75: in function <Interface\AddOns\rActionBarStyler\bars\bar1.lua:67>
  12.  
  13. Locals: (*temporary) = "Invalid working environment"

Either Blizzard changed something on the Secure handlers or they screwed up some code and created a bug.

From what I gathered it's happening with other ActionBars too.
__________________
My oUF Layout: oUF Lumen
Last edited by neverg : 10-27-10 at 11:20 PM.
Report comment to moderator  
Reply With Quote
Unread 10-25-10, 12:55 AM  
RuuddieBoy
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Originally posted by zork
Install tullaRange. That mod does that and uses the least CPU usage.
http://www.wowinterface.com/download...ullaRange.html
Thanks, works like a charm!
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 03:52 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1685
File comments: 3656
Uploads: 120
Install tullaRange. That mod does that and uses the least CPU usage.
http://www.wowinterface.com/download...ullaRange.html
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 10-24-10, 11:32 AM  
RuuddieBoy
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
I haven't quite read all replies, and I'm actually fairly sure this has been asked before, but I saw that the keyword 'range' was found quite a lot. So here goes:
Is there a way to make icons show a different color when the target is out of range for the spell?
Report comment to moderator  
Reply With Quote
Unread 10-21-10, 01:38 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1685
File comments: 3656
Uploads: 120
Congratulation you got it!
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 10-21-10 at 01:50 AM.
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 07:01 PM  
Improvver
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
OK, final solution to shortcuts and in combat problem fix too:

add this new function behind of "--initial style func" (out of this zone text)
Code:
  
-- Key-binding shortcuts
  local function updatehotkey(self, actionButtonType)
	local replace = string.gsub
	local hotkey = _G[self:GetName() .. 'HotKey']
	local key = hotkey: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 hotkey:GetText() == _G['RANGE_INDICATOR'] then
		hotkey:SetText('')
	else
		hotkey:SetText(key)
	end
  end
and to bottom of lua file add in " -- CALLS // HOOKS"

Code:
hooksecurefunc("ActionButton_UpdateHotkeys",  updatehotkey)
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 06:09 PM  
Improvver
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Originally posted by grimgaw
how about this:
Code:
local t = ho:GetText()
if(not t or t=="") then return end
t = t:gsub("Num Pad ", "n")
t = t:gsub("-", "")
ho:SetText(t)
I created this func and works but the problem when enter in combat don't resolve, keybindings returns to original names:

Code:
		
local t = ho:GetText()
if t == _G['RANGE_INDICATOR'] then
  ho:SetText("")
else
  t = t:replace("Num Pad ", "N")
  t = t:replace("Page ", "P-")
  ho:SetText(t)
end
We're close to getting a solution xD Zork u are the best!
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 05:45 PM  
Dhaern
A Kobold Labourer

Forum posts: 0
File comments: 64
Uploads: 0
Originally posted by grimgaw
Something i've noticed though, when you enter combat whole Hotkey settings get reset. Even with unmodified rABS when i enter combat my hotkey text shifts few pixels down and stays like that until next reloadui. Is there any fix for that Zork?
Yep, when I enter in combat this Abbreviates returns to normal keybinds text
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 05:39 PM  
grimgaw
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 12
Uploads: 1
Something i've noticed though, when you enter combat whole Hotkey settings get reset. Even with unmodified rABS when i enter combat my hotkey text shifts few pixels down and stays like that until next reloadui. Is there any fix for that Zork?
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 04:37 PM  
Dhaern
A Kobold Labourer

Forum posts: 0
File comments: 64
Uploads: 0
Originally posted by grimgaw
how about this:
Code:
local t = ho:GetText()
if(not t or t=="") then return end
t = t:gsub("Num Pad ", "n")
t = t:gsub("-", "")
ho:SetText(t)
OMG this works! Thanks very much, I am a noob with lua I only know change or edit things not create functions. Thx very much again
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 04:08 PM  
grimgaw
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 12
Uploads: 1
how about this:
Code:
local t = ho:GetText()
if(not t or t=="") then return end
t = t:gsub("Num Pad ", "n")
t = t:gsub("-", "")
ho:SetText(t)
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 12:23 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1685
File comments: 3656
Uploads: 120
Why don't you just sit down and try/error it out yourself?

The error is pretty clear. Go to line 112 and make sure that line and maybe the ones after are only called under specific conditions. Maybe you need sth like

Code:
--call this only if "ho" (hotkey) object exists
if ho then
  -- do dat
end
or sth like this
Code:
--call this only if "text" object exists
if text then
  -- do dat
end
"Es ist nocht keine Meister vom Himmel gefallen", how we say in Germany. Just show some dedication.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 11:07 AM  
Improvver
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Originally posted by Dhaern
The Problem: currently when using the number pad for action button hotkeys WoW formats the hotkey text on the button as NUM 1, NUM 2, NUM 3, etc. Well, at least I think so. Trouble is that all it actually shows is NUM. NUM, NUM, NUM. This makes the text on the buttons absolutely useless.

The Suggestion: change the format of this button text for number pad so that things that are obvious to the person who set the hotkeys (Number Pad, Control, Alt) are abbreviated by their first letter and a dash, or the first letter only. That way the hotkey text would look something like:

N-1, N-2, N-3
C-N-1, C-N-2, C-N-3

Any plans for implement this? this option will not cpu hog and I suppose easy to do. Thx for this great mod
same problem here. I need abbreviates for modifier keys and NUM PAD. temporal fix (code to replace) in other post don't work. Please i will love u if u work this. Nice work on this mod, thanks!
Report comment to moderator  
Reply With Quote
Unread 10-19-10, 04:37 PM  
Dhaern
A Kobold Labourer

Forum posts: 0
File comments: 64
Uploads: 0
Hi again, I added this code and this error show in game:

Code:
Message: ...erface\AddOns\rActionButtonStyler\func\functions.lua:112: attempt to call method 'GetBindingText' (a nil value)
Time: 10/19/10 23:31:45
Count: 78
Stack: ...erface\AddOns\rActionButtonStyler\func\functions.lua:112: in function <...erface\AddOns\rActionButtonStyler\func\functions.lua:86>
[C]: in function `ActionButton_Update'
Interface\FrameXML\ActionButton.lua:440: in function `ActionButton_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals: self = VehicleMenuBarActionButton6 {
 0 = <userdata>
 feedback_action = 78
 action = 78
 isBonus = 1
 flashing = 0
 rangeTimer = -1
 eventsRegistered = true
 alwaysBonus = 1
 FlyoutBorder = VehicleMenuBarActionButton6FlyoutBorder {
 }
 FlyoutBorderShadow = VehicleMenuBarActionButton6FlyoutBorderShadow {
 }
 flashtime = 0
 FlyoutArrow = VehicleMenuBarActionButton6FlyoutArrow {
 }
 icon = VehicleMenuBarActionButton6Icon {
 }
 bg = VehicleMenuBarActionButton6BG {
 }
}
action = 78
name = "VehicleMenuBarActionButton6"
bu = VehicleMenuBarActionButton6 {
 0 = <userdata>
 feedback_action = 78
 action = 78
 isBonus = 1
 flashing = 0
 rangeTimer = -1
 eventsRegistered = true
 alwaysBonus = 1
 FlyoutBorder = VehicleMenuBarActionButton6FlyoutBorder {
 }
 FlyoutBorderShadow = VehicleMenuBarActionButton6FlyoutBorderShadow {
 }
 flashtime = 0
 FlyoutArrow = VehicleMenuBarActionButton6FlyoutArrow {
 }
 icon = VehicleMenuBarActionButton6Icon {
 }
 bg = VehicleMenuBarActionButton6BG {
 }
}
ic = VehicleMenuBarActionButton6Icon {
 0 = <userdata>
}
co = VehicleMenuBarActionButton6Count {
 0 = <userdata>
}
bo = VehicleMenuBarActionButton6Border {
 0 = <userdata>
 Show = <function> defined @Interface\AddOns\rActionButtonStyler\func\functions.lua:10
}
ho = VehicleMenuBarActionButton6HotKey {
 0 = <userdata>
 SetPoint = <function> defined @Interface\FrameXML\VehicleMenuBar.lua:808
}
cd = VehicleMenuBarActionButton6Cooldown {
 0 = <userdata>
}
na = VehicleMenuBarActionButton6Name {
 0 = <userdata>
}
fl = VehicleMenuBarActionButton6Flash {
 0 = <userdata>
}
nt = VehicleMenuBarActionButton6NormalTexture {
 0 = <userdata>
}
(*temporary) = nil
(*temporary) = VehicleMenuBarActionButton6HotKey {
 0 = <userdata>
 SetPoint = <function> defined @Interface\FrameXML\VehicleMenuBar.lua:808
}
(*temporary) = "attempt to call method 'GetBindingText' (a nil value)"
_G = <table> {
 ActionButton7FlyoutBorder = ActionButton7FlyoutBorder {
 }
 MultiCastActionButton6Cooldown = MultiCastActionButton6Cooldown {
 }
 MerchantItem9ItemButtonStock = MerchantItem9ItemButtonStock {
 }
 GetTrainerServiceTypeFilter = <function> defined =[C]:-1
 UNIT_NAMES_COMBATLOG_TOOLTIP = "Color unit names."
 KBASE_NUM_FAKE_CATEGORIES = 1
 SetTrainerServiceTypeFilter = <function> defined =[C]:-1
 TutorialFrameLeft19 = TutorialFrameLeft19 {
 }
 MultiCastActionButton2Cooldown = MultiCastActionButton2Cooldown {
 }
 ERR_TRADE_EQUIPPED_BAG = "You can't trade equipped bags."
 PVP_RANK_6_1 = "Corporal"
 BOOKTYPE_PROFESSION = "professions"
 AudioOptionsVoicePanelOutputDeviceDropDownButtonHighlightTexture = AudioOptionsVoicePanelOutputDeviceDropDownButtonHighlightTexture {
 }
 InterfaceOptionsDisplayPanelShowAggroPercentageText = InterfaceOptionsDisplayPanelShowAggroPercentageText {
 }
 VideoOptionsFrameDefaults = VideoOptionsFrameDefaults {
 }
 MerchantItem4AltCurrencyFrameItem1Text = MerchantItem4AltCurrencyFrameItem1Text {
 }
 BINDING_NAME_NAMEPLATES = "Show Enemy Name Plates"
 IsReferAFriendLinked = <function> defined =[C]:-1
 MAIL_LETTER_TOOLTIP = "Click to make a permanent
copy of this letter."
 AudioOptionsVoicePanelMicrophoneVolumeThumb = AudioOptionsVoicePanelMicrophoneVolumeThumb {
 }
 ContainerFrame1Item22Cooldown = ContainerFrame1Item22Cooldown {
 }
 CHAT_CONFIG_OTHER_COMBAT = <table> {
 }
 CONSOLIDATED_BUFFS_PER_ROW = 4
 TutorialFrameRight19 = TutorialFrameRight19 {
 }
 MoneyFrame_OnEvent = <function> defined @Interface\FrameXML\MoneyFrame.lua:199
 BN_UNABLE_TO_RESOLVE_NAME = "Unable to whisper '%s'. Battle.net may be
If I delete this

Code:
        text = replace(text, '(s%-)', 'S')
        text = replace(text, '(a%-)', 'A')
        text = replace(text, '(c%-)', 'C')
        text = replace(text, '(Mouse Button )', 'M')
        text = replace(text, '(Middle Mouse)', 'M3')
        text = replace(text, '(Num Pad )', 'N')
        text = replace(text, '(Page Up)', 'PU')
        text = replace(text, '(Page Down)', 'PD')
        text = replace(text, '(Spacebar)', 'SpB')
        text = replace(text, '(Insert)', 'Ins')
        text = replace(text, '(Home)', 'Hm')
        text = replace(text, '(Delete)', 'Del')
This addon don't return error and enable again but not abbreviate hotkeys are shown, line 112 begins in: text = replace(text, '(s%-)', 'S')

Thx for reply, I hope can add this for better game experience. I love ur mod, is very lightweight
Last edited by Dhaern : 10-19-10 at 05:17 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: