View Single Post
12-24-20, 04:52 PM   #4
Krainz
A Wyrmkin Dreamwalker
Join Date: Oct 2016
Posts: 57
Hmmm the frame doesn't show up in my screen with that SetPoint

If I put a
Lua Code:
  1. f:SetPoint("CENTER")

it works just fine, but of course I don't want it in the center of my screen.

I tried adding

Lua Code:
  1. local XIV_Databar = XIV_Databar

On the beginning of the code, as XIV_Databar is a frame created by another addon, to no avail.

I also tested in game by running /run XIV_Databar:Hide() and that frame became hidden as intended.

What am I missing?

Also, thanks for all the help and a very merry Christmas to you all!


EDIT:

lua Code:
  1. f:SetPoint("CENTER", XIV_Databar, "BOTTOM", 100, 0) -- set f position relative to XIV_Databar

This worked! Apparently all I needed to do was to move it to "CENTER". Thanks!

Last edited by Krainz : 12-24-20 at 04:57 PM.
  Reply With Quote