Thread Tools Display Modes
11-30-22, 09:41 PM   #1
Fhizio
A Kobold Labourer
 
Fhizio's Avatar
Join Date: Nov 2022
Posts: 1
Moving Frames Causes Errors

Hello.
I'm trying to get this addon to work, but half of it causes errors. Errors being can't right click hearthstone or consumables.
The code in comments is the ones causing error.

Also oddly enough FocusToT:SetScale(0.8) does not work but TargetToT:SetScale(0.8) does.
I'm very new to making addons, any help or advice is much appreciated.

Code:
local Target = TargetFrame
local TargetToT = TargetFrameToT
local TargetSB = TargetFrameSpellBar
local Focus = FocusFrame
local FocusToT = FocusFrameToT
local FocusSB = FocusFrameSpellBar

   TargetToT:ClearAllPoints()
   TargetToT:SetPoint("BOTTOM", Target, -1, -11)
   TargetToT.SetPoint = function() end
   TargetToT:SetScale(0.8)
   
   TargetToT.Name:ClearAllPoints()
   TargetToT.Name:SetPoint("TOP", TargetToT, 19, -2.5)
   TargetToT.Name:SetScale(1.25)

   --TargetSB:ClearAllPoints()
   --TargetSB:SetPoint("BOTTOM", Target, 0, -20)
   --TargetSB.SetPoint = function() end

   --FocusToT:ClearAllPoints()
   --FocusToT:SetPoint("BOTTOM", Focus, -1, -11)
   --FocusToT.SetPoint = function() end
   FocusToT:SetScale(0.8)

   FocusToT.Name:ClearAllPoints()
   FocusToT.Name:SetPoint("TOP", FocusToT, 19, -2.5)
   FocusToT.Name:SetScale(1.25)

   --FocusSB:ClearAllPoints()
   --FocusSB:SetPoint("BOTTOM", Focus, 0, -20)
   --FocusSB.SetPoint = function() end

Last edited by Fhizio : 12-02-22 at 11:13 PM. Reason: More issues popped up
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Moving Frames Causes Errors - Need 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