mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
remove temp folder structure
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local format = string.format
|
||||
--WoW API / Variables
|
||||
local GetMouseFocus = GetMouseFocus
|
||||
|
||||
--[[
|
||||
Command to grab frame information when mouseing over a frame
|
||||
|
||||
Frame Name
|
||||
Width
|
||||
Height
|
||||
Strata
|
||||
Level
|
||||
X Offset
|
||||
Y Offset
|
||||
Point
|
||||
]]
|
||||
|
||||
SLASH_FRAME1 = "/frame"
|
||||
SlashCmdList["FRAME"] = function(arg)
|
||||
if arg ~= "" then
|
||||
arg = _G[arg]
|
||||
else
|
||||
arg = GetMouseFocus()
|
||||
end
|
||||
if arg ~= nil then FRAME = arg end --Set the global variable FRAME to = whatever we are mousing over to simplify messing with frames that have no name.
|
||||
if arg ~= nil and arg:GetName() ~= nil then
|
||||
local point, relativeTo, relativePoint, xOfs, yOfs = arg:GetPoint()
|
||||
ChatFrame1:AddMessage("|cffCC0000----------------------------")
|
||||
ChatFrame1:AddMessage("Name: |cffFFD100"..arg:GetName())
|
||||
if arg:GetParent() and arg:GetParent():GetName() then
|
||||
ChatFrame1:AddMessage("Parent: |cffFFD100"..arg:GetParent():GetName())
|
||||
end
|
||||
|
||||
ChatFrame1:AddMessage("Width: |cffFFD100"..format("%.2f",arg:GetWidth()))
|
||||
ChatFrame1:AddMessage("Height: |cffFFD100"..format("%.2f",arg:GetHeight()))
|
||||
ChatFrame1:AddMessage("Strata: |cffFFD100"..arg:GetFrameStrata())
|
||||
ChatFrame1:AddMessage("Level: |cffFFD100"..arg:GetFrameLevel())
|
||||
|
||||
if xOfs then
|
||||
ChatFrame1:AddMessage("X: |cffFFD100"..format("%.2f",xOfs))
|
||||
end
|
||||
if yOfs then
|
||||
ChatFrame1:AddMessage("Y: |cffFFD100"..format("%.2f",yOfs))
|
||||
end
|
||||
if relativeTo and relativeTo:GetName() then
|
||||
ChatFrame1:AddMessage("Point: |cffFFD100"..point.."|r anchored to "..relativeTo:GetName().."'s |cffFFD100"..relativePoint)
|
||||
end
|
||||
ChatFrame1:AddMessage("|cffCC0000----------------------------|r")
|
||||
elseif arg == nil then
|
||||
ChatFrame1:AddMessage("Invalid frame name")
|
||||
else
|
||||
ChatFrame1:AddMessage("Could not find frame info")
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
<Ui xmlns="http://www.blizzard.com/wow/ui/">
|
||||
<Script file="ReloadUI.lua"/>
|
||||
<Script file="Frame.lua"/>
|
||||
<Script file="Test.lua"/>
|
||||
<Script file="Table.lua"/>
|
||||
</Ui>
|
||||
@@ -0,0 +1,7 @@
|
||||
--[[
|
||||
Shortcut to ReloadUI
|
||||
]]
|
||||
|
||||
SLASH_RELOADUI1 = "/rl"
|
||||
SLASH_RELOADUI2 = "/reloadui"
|
||||
SlashCmdList.RELOADUI = ReloadUI
|
||||
@@ -0,0 +1,22 @@
|
||||
--Cache global variables
|
||||
local setmetatable, getmetatable = setmetatable, getmetatable
|
||||
local pairs, type = pairs, type
|
||||
local table = table
|
||||
|
||||
function table.copy(t, deep, seen)
|
||||
seen = seen or {}
|
||||
if t == nil then return nil end
|
||||
if seen[t] then return seen[t] end
|
||||
|
||||
local nt = {}
|
||||
for k, v in pairs(t) do
|
||||
if deep and type(v) == "table" then
|
||||
nt[k] = table.copy(v, deep, seen)
|
||||
else
|
||||
nt[k] = v
|
||||
end
|
||||
end
|
||||
setmetatable(nt, table.copy(getmetatable(t), deep, seen))
|
||||
seen[t] = nt
|
||||
return nt
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
--[[
|
||||
Going to leave this as my bullshit lua file.
|
||||
|
||||
So I can test stuff.
|
||||
]]
|
||||
Reference in New Issue
Block a user