Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-15-14, 01:05 AM   #1
Exinium
A Kobold Labourer
Join Date: Mar 2014
Posts: 1
Clickthrough Addon Help

I'm a total addon noob. With that in mind, I think I know what's going on. Well, I should anyway. The post I obtained the addon from is from 2008, and as such, I have no clue what the changes to addons since then were.

Basically, I need to click through a single action bar. I was able to use /framestack to obtain the frame names of each individual button. I'd like to be able to toggle it on and off using the /clickthrough command. Here's what I've got.


Code:
local _G = getfenv(0)
local framelist = {
  "ElvUI_Bar6Button1"
  "ElvUI_Bar6Button2"
  "ElvUI_Bar6Button3"
  "ElvUI_Bar6Button4"
  "ElvUI_Bar6Button5"
  }

local clickable = false

SlashCmdList["CLICKTHROUGH"] = function()
  for _, v in ipairs(framelist) do
   _G[v]:EnableMouse(clickable)
  end
  if clickable then
   clickable = false
  else
   clickable = true
  end
end
   
SLASH_CLICKTHROUGH1 = '/clickthrough'
I don't think the issue lies in the .toc file, so I won't post that.

The problem is with the /clickthrough I think.

Edit:

Code:
/run ElvUI_Bar6Button1:EnableMouse(0)
/run ElvUI_Bar6Button2:EnableMouse(0)
/run ElvUI_Bar6Button3:EnableMouse(0)
/run ElvUI_Bar6Button4:EnableMouse(0)
/run ElvUI_Bar6Button5:EnableMouse(0)
Making a macro like that works. (I know that can be made into an array/for loop, but I didn't want the opportunity to **** that up.)

Last edited by Exinium : 03-15-14 at 02:26 AM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Clickthrough Addon Help


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off