Thread Tools Display Modes
Prev Previous Post   Next Post Next
09-21-09, 10:14 AM   #1
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
Target of Target select helper frame

I'm trying to create a frame that, if clicked, selects the Target of Target. I'm currently using this to create the frame:

Code:
		local ToTSelectHelper = CreateFrame("Frame","ToTSelectHelper",self)
		ToTSelectHelper:SetWidth(80)
		ToTSelectHelper:SetHeight(20)
		ToTSelectHelper:SetPoint("TOPLEFT", self, "TOPRIGHT", 0, -30)
		ToTSelectHelper:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", edgeFile = "", tile = true, tileSize = 16, edgeSize = 16, insets = { left = 0, right = 0, top = 0, bottom = 0 }})
(the backdrop is just there for config purposes to make the frame visible)

The question is: How do I make this interactive/clickable. And I guess after it is clickable, it still needs to "know" what it should do when clicked?
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Target of Target select helper frame


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