EDIT :
now i noticed the last ")" is at the end. so the code looks like this
local _G = getfenv(0)
local framelist = {
"BuffaloButton0",
"BuffaloButton1",
"BuffaloButton2",
"BuffaloButton3",
"BuffaloButton4",
"BuffaloButton5",
"BuffaloButton6",
"BuffaloButton7",
"BuffaloButton8",
"BuffaloButton9"
}
local clickable = false
local f = CreateFrame("Frame")
f:RegisterEvent("MODIFIER_STATE_CHANGED")
f:SetScript("OnEvent", function(mod, arg2)
if mod == "LALT" or mod =="RALT" then
if arg2 == 1 then
for _, v in ipairs(framelist) do
_G[v]:EnableMouse(true)
end
else
for _, v in ipairs(framelist) do
_G[v]:EnableMouse(false)
end
end
end
end)
like this is get no errors, but it`s still not working.
It works !
Now one last request, is there an easy way to make it behave normaly when I hold a key down ?
like on default, all the frames in the list are click through but if i hold Alt pressed, they will work as usual allowing me to right click / left click on them.
[2008/02/24 22:26:01-4250-x1]: click\click.lua:10: attempt to call method 'RegisterForClicks' (a nil value)
Interface\FrameXML\ChatFrame.lua:3123: in function `ChatEdit_ParseText':
Interface\FrameXML\ChatFrame.lua:2815: in function `ChatEdit_SendText':
Interface\FrameXML\ChatFrame.lua:2836: in function `ChatEdit_OnEnterPressed':
<string>:"*:OnEnterPressed":1: in function <[string "*:OnEnterPressed"]:1>
---
I tried it with BuffaloFrame and it is not working.
when i type /clickthrough i get this error :
[2008/02/24 21:36:09-4248-x1]: click\click.lua:10: attempt to index field '?' (a nil value)
Interface\FrameXML\ChatFrame.lua:3123: in function `ChatEdit_ParseText':
Interface\FrameXML\ChatFrame.lua:2815: in function `ChatEdit_SendText':
Interface\FrameXML\ChatFrame.lua:2836: in function `ChatEdit_OnEnterPressed':
<string>:"*:OnEnterPressed":1: in function <[string "*:OnEnterPressed"]:1>
---
the toc is like this
## Interface: 20300
## Title: click
## Notes: A short description of my AddOn
click.lua
and the addon
local _G = getfenv(0)
local framelist = {
"BuffaloFrame"
}
local clickable
SlashCmdList["CLICKTHROUGH"] = function()
for _, v in ipairs(framelist) do
_G[framelist]:RegisterForClicks(clickable)
end
if clickable then
clickable = nil
else
clickable = "AnyUp"
end
end
SLASH_CLICKTHROUGH1 = '/clickthrough'
My hud only displays my hp / mp and pet`s hp / mp. I don`t use the hud for the target frame as well because I need a lot of information displayed and a hud is to tiny not to mention vertical text is harder to read.
I`m interested in either an addon that would load first and somehow hook on other addons and enable click through on the frames i choose or a way to modify addons like pitbull / omen / proximo / buffalo to allow click through by default and function normally when a key is pressed.
This is the layout I play with :
and an addon like the one i`m talking about would allow me to move some frames much closer to the center screen without interfering with left/right clicking (looking around / strafing).
I know this is a selfish request but I hope someone that actually knows how to lua will like the ideea and develop an addon or provide assistance.
Leave it up to Blizzard to do that. If I want to take the time to mouseover every item I'll take the time to estimate their individual value from the stacked price!
Fence + Fence's Browse module will be staying on my UI. :)
0
thanks again for helping me.
0
now i noticed the last ")" is at the end. so the code looks like this
like this is get no errors, but it`s still not working.
0
and when I add ")" to make it like this :
it still doesn`t work giving me this error :
0
Now one last request, is there an easy way to make it behave normaly when I hold a key down ?
like on default, all the frames in the list are click through but if i hold Alt pressed, they will work as usual allowing me to right click / left click on them.
0
wow, how did i miss this ? thanks a lot for the info.
0
0
when i type /clickthrough i get this error :
the toc is like this
and the addon
0
0
baaaaaaaaaars
BBBBBBB
DDDDDDDD
or if it fills the first line of buffs :
baaaaaaaaaars
BBBBBBBBBBBBB
BBBB
DDDDDDDD
or when it happens with debuffs :
baaaaaaaaaars
BBBBBB
DDDDDDDDDDDDD
DDDDDDDDDDDDD
I know it`s been requested countless times and none of the new unitframes addons have it.
0
0
0
This is the layout I play with :
and an addon like the one i`m talking about would allow me to move some frames much closer to the center screen without interfering with left/right clicking (looking around / strafing).
I know this is a selfish request but I hope someone that actually knows how to lua will like the ideea and develop an addon or provide assistance.
0
Fence browse module ? what is that ?
0
0
because then it won`t show who rolls what (need/greed/pass). you need to have it enabled for the addons to get the info.