WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Move the Questwatch frame (https://www.wowinterface.com/forums/showthread.php?t=44987)

lynce 10-28-12 04:14 PM

Move the Questwatch frame
 
Anyone know i simple way to move the quest watch frame. Some lines of lua if its possible with anchor points. I cant seem to find a addon who just does this. Nor do i want to use one. thanks for helping.

brotherhobbes 10-28-12 05:30 PM

Chinchilla has modules for the quest watch frame, if you want to check it out for code examples: http://www.wowinterface.com/download...laMinimap.html

jeffy162 10-28-12 05:46 PM

You might want to have a look at rQuestWatchFrameMover. I know you said you didn't want to use an addon, and I know there are scripts you can run, maybe even a macro, to move the watch frame, but this is small and efficient. Zork's (the addons author) stuff is always efficient, although there is no possible way to make some of the stuff he does "small". :D

Phanx 10-28-12 08:57 PM

/run local f,n=WatchFrame,function()end f:ClearAllPoints() f:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 30, 17) f.ClearAllPoints,f.SetPoint=n,n

lynce 10-29-12 03:37 AM

That was fast:) In the Chinchilla questwatch module i don't really know what to pick out and use. Roth's addon is great, however there doesn't seem to be any way to lock the position.
Phanx: That was just what i'm after! So if i put this in a file, will this work?
Code:

local f,n=WatchFrame,function()end
        f:ClearAllPoints()
        f:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 30, 17)
        f.ClearAllPoints,f.SetPoint=n,n


Phanx 10-29-12 06:13 AM

Yes, though if you're putting it in a file, I'd suggest reformatting it for better readability:

Code:

-- Move it:
WatchFrame:ClearAllPoints()
WatchFrame:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 30, 17)

-- Stop the default UI from moving it back:
local noop = function() end
WatchFrame.ClearAllPoints = noop
WatchFrame.SetPoint = noop



All times are GMT -6. The time now is 07:12 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI