Reply
Thread Tools Display Modes
Unread 04-11-11, 03:14 AM   #1
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 537
Looking for a DefaultUI Mover

I am currently looking for a Addon that can move certain things. I am not looking for something complex, maybe something along the lines of:

/[addonname] config; (for the addon)
or
/[addonname] unlock; -- Will unlock things from the UI, such as durability, world state, text that comes up in the middle, error text (abilities), etc.

Something easy that will just let me do that, and maybe let me hide things.
Not something that gives me everything but the kitchen sink though lol.

Any suggestions?
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Lily.Petal is offline   Reply With Quote
Unread 04-11-11, 03:52 AM   #2
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,502
Originally Posted by Lily.Petal View Post
I am currently looking for a Addon that can move certain things. I am not looking for something complex, maybe something along the lines of:

/[addonname] config; (for the addon)
or
/[addonname] unlock; -- Will unlock things from the UI, such as durability, world state, text that comes up in the middle, error text (abilities), etc.

Something easy that will just let me do that, and maybe let me hide things.
Not something that gives me everything but the kitchen sink though lol.

Any suggestions?
Hmm, since it's for your own UI, it'd be most efficient to make your own little addon to do it. Gimme 30 minutes, and I'll whip up some Lua.
Nibelheim is offline   Reply With Quote
Unread 04-11-11, 03:55 AM   #3
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 537
Originally Posted by Nibelheim View Post
Hmm, since it's for your own UI, it'd be most efficient to make your own little addon to do it. Gimme 30 minutes, and I'll whip up some Lua.
You're a God send you know that? I feel bad at the same time since you always come to my rescue xD
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Lily.Petal is offline   Reply With Quote
Unread 04-11-11, 04:13 AM   #4
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 537
Originally Posted by Nibelheim View Post
Hmm, have you made any addons before?
None, what so ever

My only experience is changing something in the Lua to fit my needs, adding a thing here and there, and some other things. I do not know how to make a entire addon though ^^v

EDIT: looks like you deleted your post when I posted mine lol
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Lily.Petal is offline   Reply With Quote
Unread 04-11-11, 04:22 AM   #5
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,502
EDIT: looks like you deleted your post when I posted mine lol
Figured I'd just make the addon, as it's quick enough

LP_FrameMover
removed link to off-site download -Seerah
added link back in (at bottom), take that! -Nibelheim

Now, it's certainly not the most convenient method of moving / hiding frames, but it's the most reliable.

Just /framestack to find the name of the frame you want to move / hide, and edit the Core.lua file accordingly.

To find out the current Point, RPoint, X, and Y positions of any frame, simply type this code into your chat window:

Code:
/run print(FrameName:GetPoint())
It'll print out "Point Parent RPoint X Y"


PS.
If you want to start moving / hiding frames that are created by Load-on-demand addons, things get a little trickier. There's also some complex frames to look out for, one of note is the VehicleSeatIndicator frame.

PSS.
This is untested as I'm not at my WoW PC atm, so if any errors occur, let us know

PSSS.
Interesting, it actually took me exactly 30 minutes to do. >.>

PSSSS.
Heh, just kidding, 4 PSs would be nuts!
Attached Files
File Type: zip LP_FrameMover.zip (983 Bytes, 756 views)

Last edited by Nibelheim : 04-12-11 at 05:37 AM.
Nibelheim is offline   Reply With Quote
Unread 04-11-11, 04:27 AM   #6
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 537
You're like half the reason my UI is working correctly/as intended xD <3

PS: Drink much coffee lol? I did one RL and you have like 4 PSSSSSSSS

Code:
/run print(DurabilityFrame:GetPoint())
Got me:
Code:
TOPRIGHT table: 1EFFBBA0 BOTTOMRIGHT -0 0
Time to see if this works
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah

Last edited by Lily.Petal : 04-11-11 at 04:33 AM.
Lily.Petal is offline   Reply With Quote
Unread 04-11-11, 04:33 AM   #7
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,502
Just as reference, these are some of the frame names I'm manipulating in RealUI.

"ZoneTextFrame" -- Text that appears when you change zones
"RaidWarningFrame" -- Raid warning messages in the middle of screen
"TicketStatusFrame" -- GM Ticket status
"GroupLootFrame1" -- Loot Rolling frames
"GroupLootFrame2"
"GroupLootFrame3"
"GroupLootFrame4"
"WorldStateAlwaysUpFrame" -- PvP info at Top Center of screen
"UIErrorsFrame" -- Error messages
"PlayerPowerBarAlt" -- Sound bar and Insanity gauge on Atremedes, Cho'gall, etc
"DurabilityFrame"
"Boss1TargetFrame"
"Boss2TargetFrame"
"Boss3TargetFrame"
"Boss4TargetFrame"
"CompactRaidFrameManager" -- I hide the default Blizz raid frames
Nibelheim is offline   Reply With Quote
Unread 04-11-11, 04:34 AM   #8
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,502
Originally Posted by Lily.Petal View Post
You're like half the reason my UI is working correctly/as intended xD <3

PS: Drink much coffee lol? I did one RL and you have like 4 PSSSSSSSS

Code:
/run print(DurabilityFrame:GetPoint())
Got me:
Code:
TOPRIGHT table: 1EFFBBA0 BOTTOMRIGHT -0 0
Time to see if this works
Just don't use "table: 1EFFBBA0" in the code. :P Best to leave the Parent field as nil for now.


Actually, noticed a small bug. In Core.lua, change the line:

Code:
p = t.parent and _G[t.parent] or UIParent
to

Code:
p = t.parent and _G[t.parent] or f:GetParent()

Last edited by Nibelheim : 04-11-11 at 04:36 AM.
Nibelheim is offline   Reply With Quote
Unread 04-11-11, 04:36 AM   #9
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 537
Having some trouble with moving the DurabilityFrame... I'm sure I am just doing it wrong.. ><

Code:
["DurabilityFrame"] = {parent = nil, point = "TOPRIGHT", rpoint = "BOTTOMRIGHT", x = -300, y = 0, scale = 1},
It's -300 atm because I am trying to test it :P

Code:
Interface\AddOns\LP_FrameMover\Core.lua:45: attempt to call field 'MoveFrames' (a nil value)
Count: 1

Call Stack:
[C]: in function `MoveFrames'
Interface\AddOns\LP_FrameMover\Core.lua:45: in function <Interface\AddOns\LP_FrameMover\Core.lua:44>
Error
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah

Last edited by Lily.Petal : 04-11-11 at 04:39 AM.
Lily.Petal is offline   Reply With Quote
Unread 04-11-11, 04:38 AM   #10
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,502
Originally Posted by Lily.Petal View Post
Having some trouble with moving the DurabilityFrame... I'm sure I am just doing it wrong.. ><

Code:
["DurabilityFrame"] = {parent = nil, point = "TOPRIGHT", rpoint = "BOTTOMRIGHT", x = -300, y = 0, scale = 1},
It's -300 atm because I am trying to test it :P
It might be because of the little bug I spotted. I edited my previous post with the correction.
Nibelheim is offline   Reply With Quote
Unread 04-11-11, 04:40 AM   #11
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 537
Saw that, then I noticed I had an error somewhere
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Lily.Petal is offline   Reply With Quote
Unread 04-11-11, 04:42 AM   #12
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,502
Originally Posted by Lily.Petal View Post
Saw that, then I noticed I had an error somewhere
Oops. Near the very bottom of Core.lua, replace FM.MoveFrames() with FM.MoveAllFrames()

So, with those two bug corrections, it should hopefully work
Nibelheim is offline   Reply With Quote
Unread 04-11-11, 04:49 AM   #13
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 537
Hmm... still doesn't seem to be moving at all. No errors this time or anything

Code:
["DurabilityFrame"] = {parent = nil, point = "CENTER", rpoint = "CENTER", x = -300, y = 0, scale = 1},
could it be the parent = nil? Since it has nothing it's attached to?
I have no problem waiting for you to get home and testing it for yourself though.
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Lily.Petal is offline   Reply With Quote
Unread 04-11-11, 04:52 AM   #14
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,502
Originally Posted by Lily.Petal View Post
Hmm... still doesn't seem to be moving at all. No errors this time or anything

Code:
["DurabilityFrame"] = {parent = nil, point = "CENTER", rpoint = "CENTER", x = -300, y = 0, scale = 1},
could it be the parent = nil? Since it has nothing it's attached to?
I have no problem waiting for you to get home and testing it for yourself though.
Well, the code's set up so that if Parent is nil, it'll parent the frame to it's current parent. I'll see what's up
Nibelheim is offline   Reply With Quote
Unread 04-11-11, 05:09 AM   #15
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 537
Originally Posted by Nibelheim View Post
Well, the code's set up so that if Parent is nil, it'll parent the frame to it's current parent. I'll see what's up
Just tried Hiding things as well, didn't seem to work
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Lily.Petal is offline   Reply With Quote
Unread 04-11-11, 05:09 AM   #16
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,502
Alright. In the FM.MoveAllFrames = function() block, add the line below right after the f:SetScale(t.scale) line.


f.SetPoint = function() end

So, should look like:
Code:
FM.MoveAllFrames = function()
	for i,v in pairs(MoveFrameList) do
		local t = MoveFrameList[i]
		local f, p = _G[i]
		if f then
			p = t.parent and _G[t.parent] or f:GetParent()
			f:ClearAllPoints()
			f:SetPoint(t.point, p, t.rpoint, t.x, t.y)
			f:SetScale(t.scale)
			f.SetPoint = function() end
		end
	end
end
Just tried Hiding things as well, didn't seem to work
Oops, typo on my part.

Change the line local f = _G[i] in the FM.HideAllFrames = function() block to:

Code:
local f = _G[v]
So, should look like:
Code:
FM.HideAllFrames = function()
	for i,v in pairs(HideFrameList) do
		local f = _G[v]
		if f then

Last edited by Nibelheim : 04-11-11 at 05:15 AM.
Nibelheim is offline   Reply With Quote
Unread 04-11-11, 05:10 AM   #17
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 537
Oh Nib, you're like my own little Evil Genius~

Thank you so much lol ^^

~ Yes that means it started working ^^v

EDIT: Added that list bit in too~ Will test right now.
EDIT2: Yes I love my ~ Signs.
EDIT3: Image of my DurabilityFrame moved (topleft), Hiding frames work too.

EDIT4: another post going straight into my sig ;D I also put

Code:
--[[Common Frames: (http://wowprogramming.com/utils/artbrowser)
	"ZoneTextFrame"	 -- Text that appears when you change zones
	"RaidWarningFrame"	-- Raid warning messages in the middle of screen
	"TicketStatusFrame"	-- GM Ticket status
	"GroupLootFrame1"	-- Loot Rolling frames
	"GroupLootFrame2"
	"GroupLootFrame3"
	"GroupLootFrame4"
	"WorldStateAlwaysUpFrame"	-- PvP info at Top Center of screen
	"UIErrorsFrame"	 -- Error messages
	"PlayerPowerBarAlt"	-- Sound bar and Insanity gauge on Atremedes, Cho'gall, etc
	"DurabilityFrame"
	"Boss1TargetFrame"
	"Boss2TargetFrame"
	"Boss3TargetFrame"
	"Boss4TargetFrame"
	"CompactRaidFrameManager"	-- I hide the default Blizz raid frames
]]
At the very bottom for future reference for myself ^^v
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_041111_071730.jpg
Views:	673
Size:	283.2 KB
ID:	5980  
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah

Last edited by Lily.Petal : 04-11-11 at 05:32 AM.
Lily.Petal is offline   Reply With Quote
Unread 04-11-11, 05:29 AM   #18
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,502
Originally Posted by Lily.Petal View Post
EDIT4: another post going straight into my sig ;D
Hmm, I see I'm building up quite a list Oh well, getting late and bed time for me
Nibelheim is offline   Reply With Quote
Unread 04-11-11, 11:47 AM   #19
Zagrei
A Cobalt Mageweaver
 
Zagrei's Avatar
AddOn Compiler - Click to view compilations
Join Date: Nov 2009
Posts: 246
This seems really interesting! I have one question: Has the download link been updated with the changes/bugs mentioned in this thread, or do they still need to be applied?

I guess I could check it myself, but I thought I would ask

EDIT: Just realized that the post with the link was last edited over an hour before the more recent posts. There's my answer! Haha
__________________

Last edited by Zagrei : 04-11-11 at 01:10 PM.
Zagrei is offline   Reply With Quote
Unread 04-11-11, 02:04 PM   #20
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 537
Originally Posted by Zagrei View Post
This seems really interesting! I have one question: Has the download link been updated with the changes/bugs mentioned in this thread, or do they still need to be applied?

I guess I could check it myself, but I thought I would ask

EDIT: Just realized that the post with the link was last edited over an hour before the more recent posts. There's my answer! Haha
takes like 10 seconds to fix everything :P I'm sure if you ask Nib nicely he will update/upload this when he gets up. ^^v
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Lily.Petal is offline   Reply With Quote
Reply

Go BackWoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Looking for a DefaultUI Mover

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