Bah. I had just placed some Numbers in the
SetTexCoord() wrongly. My bad.
Anyways.
So now I'm translating this segment...
Code:
<Frame name="$parentTitleButton">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentTitleBG"/>
<Anchor point="BOTTOMRIGHT" relativeTo="$parentTitleBG"/>
</Anchors>
<Scripts>
<OnLoad>self:RegisterForDrag("LeftButton");</OnLoad>
<OnDragStart>
local NCMFrame = _G["NCMFrame"];
NCMFrame.moving = true;
NCMFrame:StartMoving();
</OnDragStart>
<OnDragStop>
local NCMFrame = _G["NCMFrame"];
NCMFrame.moving = nil;
NCMFrame:StopMovingOrSizing();
</OnDragStop>
</Scripts>
</Frame>
This is what I have right now, but it ain't working
Code:
-- Drag Bar Frame
SK.Frame.Options_Drag = CreateFrame("FRAME", "OptDrag", SK.Frame.Options)
SK.Frame.Options_Drag:SetPoint("TOPLEFT", "OptBorderTL")
SK.Frame.Options_Drag:SetPoint("BOTTOMRIGHT", "OptBorderBR")
SK.Frame.Options_Drag:SetScript("OnEvent", function(obj, event, ...) self:RegisterForDrag("LeftButton") end)
SK.Frame.Options_Drag:SetScript("OnDragStart", function()
SK.Frame.Options.moving = true
SK.Frame.Options:StartMoving()
end)
SK.Button.Options_Drag:SetScript("OnDragStop", function()
SK.Frame.Options.moving = false
SK.Frame.Options:StopMovingOrSizing()
end)