View Single Post
02-24-24, 08:44 AM   #32
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,947
Assuming you have the same file in each of the addons. Simply changing the frame name on line 8 as well as setting f to be local not global ( that would mess things up there ) and the frame_x and frame_y values on lines 6 and 7 might be all you need to do. Assuming the rest of the code does what the addon was designed to do.

So..

Addon 1

Lua Code:
  1. local frame_x = 0    
  2. local frame_y = -200    
  3. local f = CreateFrame("Button", "ZAMTimer1", UIParent, "BackdropTemplate")

Addon 2
Lua Code:
  1. local frame_x = 0    
  2. local frame_y = -250    
  3. local f = CreateFrame("Button", "ZAMTimer2", UIParent, "BackdropTemplate")

Although I see you have the frame dragging code set up to re-arrange as needed. So, the above should work well enough to make both frames separate and accessible and not overidden by the other one.

I think having the f - CreateFrame line not be local was the main issue.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote