SetScript OnMouseDown for a clickable text-only Frame?
Hello, I'm tinkering with this code to make a clickable "Great Vault" text that opens the Weekly Vault
However, when I click the text, the OnMouseDown script doesn't happen. What am I doing wrong? Lua Code:
Also, there's a XIV_Databar frame. I'd like to make that "Great Vault" frame's position relative to the XIV_Databar's position. How do I do it? |
Try increasing the width and height to something bigger than 1 pixel
|
Lua Code:
|
Hmmm the frame doesn't show up in my screen with that SetPoint
If I put a Lua Code:
it works just fine, but of course I don't want it in the center of my screen. I tried adding Lua Code:
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:
This worked! Apparently all I needed to do was to move it to "CENTER". Thanks! |
All times are GMT -6. The time now is 04:39 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI