Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-08-19, 09:06 PM   #1
sknilegap
A Defias Bandit
Join Date: Aug 2019
Posts: 2
Having trouble with SetPoint (WoW Classic)

I can move the right action bars down above my bottom action bars when I manually put these in with /run in game, in order.
When I put the first command in it move both bars (like they are anchored to one another).

Then the second line when manually put in move the other bar in place.
When I have them together in this code it only loads the first command only and I need to manually put in the second command.

This is my current code.
Code:
local Frame = CreateFrame("Frame")
Frame:RegisterEvent("PLAYER_LOGIN")

Frame:SetScript("OnEvent", function(...)
	--Your hiding code goes between this line
MultiBarRight:ClearAllPoints(); MultiBarRight:SetPoint("BOTTOMLEFT", relativeframe); MultiBarRight:SetWidth(1019); MultiBarRight:SetHeight(140);
MultiBarLeft:ClearAllPoints(); MultiBarLeft:SetPoint("BOTTOMLEFT", relativeframe); MultiBarLeft:SetWidth(509); MultiBarLeft:SetHeight(140);
	--And this one
end)

Does anyone know why its stopping before the second one finished?

It does run this portion,

Code:
MultiBarLeft:SetWidth(509); MultiBarLeft:SetHeight(140);
because when the addon loads I only have to manually type this code:

Code:
/run MultiBarLeft:ClearAllPoints(); MultiBarLeft:SetPoint("BOTTOMLEFT", relativeframe);
I tried doing these in different orders (every one I could think of). But the bars definitely seem tethered to one another like one is the master but not vice versa.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Having trouble with SetPoint (WoW Classic)

Thread Tools
Display Modes

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