You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
726 B
30 lines
726 B
--[[
|
|
|
|
This file is part of 'Masque', an add-on for World of Warcraft. For bug reports,
|
|
suggestions and license information, please visit https://github.com/SFX-WoW/Masque.
|
|
|
|
* File...: Core\Regions\Frame.lua
|
|
* Author.: StormFX
|
|
|
|
Frame Region
|
|
|
|
]]
|
|
|
|
local _, Core = ...
|
|
|
|
----------------------------------------
|
|
-- Internal
|
|
---
|
|
|
|
-- @ Core\Utility
|
|
local GetSize, SetPoints = Core.GetSize, Core.SetPoints
|
|
|
|
----------------------------------------
|
|
-- Frame
|
|
---
|
|
|
|
-- Sets the size and points of a frame.
|
|
function Core.SkinFrame(Region, Button, Skin, xScale, yScale)
|
|
Region:SetSize(GetSize(Skin.Width, Skin.Height, xScale, yScale, Button))
|
|
SetPoints(Region, Button, Skin, nil, Skin.SetAllPoints)
|
|
end
|
|
|