Mercurial > wow > devian
diff UI.lua @ 89:b3ed963f482d v.2.1.92
- /dvc command needed a pre-defined enclosure to properly work through SlashCmdList
- /dvn <profile name> and /dvn save <profile name> should resolve to and update the correct profile.
- set some globals indicating the name and index of the workspace in use
- DEVIAN_WORKSPACE (bool)
- DEVIAN_PNAME (string)
- DEVIAN_PID (number)
author | Nenue |
---|---|
date | Wed, 10 Aug 2016 06:58:27 -0400 |
parents | 7ff0579e5a6e |
children | f6fae1a4c66c |
line wrap: on
line diff
--- a/UI.lua Tue Jul 26 09:50:45 2016 -0400 +++ b/UI.lua Wed Aug 10 06:58:27 2016 -0400 @@ -457,67 +457,3 @@ self:Print('toggled: '..concat(result, ', ')) end end - -local frame_helper = CreateFrame('Frame', 'DevianFrameHelper', UIParent) -frame_helper.fill = frame_helper:CreateTexture(nil, 'BACKGROUND') -frame_helper.fill:SetColorTexture(1,0,0,1) -frame_helper.fill:SetAllPoints(frame_helper) -D.FrameHelper_Update = function(input, editbox) - local frame, func = D:GetArgs(input,2) - - if type(frame) == 'string' then - if not _G[frame] then - return - end - frame = _G[frame] - elseif type(frame) == 'table' and frame.IsVisible then - local x, y = frame:GetCenter() - if not (x or y) then - frame_helper:ClearAllPoints() - frame_helper:SetPoint('CENTER') - end - else - local frame = EnumerateFrames(); -- Get the first frame - while frame do - if ( frame:IsVisible() and MouseIsOver(frame) ) then - print(frame:GetName() or string.format("[Unnamed Frame: %s]", tostring(frame))); - end - frame = EnumerateFrames(frame); -- Get the next frame - end - end - - frame_helper:SetPoint('TOPLEFT', UIParent, 'BOTTOMLEFT', frameHandle:GetLeft(), frameHandle:GetTop()) - frame_helper:SetPoint('BOTTOMRIGHT', UIParent, 'BOTTOMLEFT', frameHandle:GetRight(), frameHandle:GetBottom()) - -end - - -local frame_guide_init = function(self) - self.testU = self.testU or self:CreateTexture('TestU', 'OVERLAY', 'VnTestLine') - self.testB = self.testB or self:CreateTexture('TestB', 'OVERLAY', 'VnTestLine') - self.testL = self.testL or self:CreateTexture('TestL', 'OVERLAY', 'VnTestLine') - self.testR = self.testR or self:CreateTexture('TestR', 'OVERLAY', 'VnTestLine') -end -local frame_guide = function(self, target) - if not target then return end - if target:IsDragging() then return end - local thickness = 1 - local midX, midY = target:GetCenter() - local width, height = target:GetWidth() * 1.5, target:GetHeight() * 1.5 - --print('frame', target:GetLeft(), target:GetTop(), target:GetRight(), target:GetBottom()) - self.testB:ClearAllPoints() - self.testB:SetPoint('TOP', UIParent, 'BOTTOMLEFT', midX, target:GetBottom()) - self.testB:SetSize(width,thickness) - - self.testU:ClearAllPoints() - self.testU:SetPoint('BOTTOM', UIParent, 'BOTTOMLEFT', midX, target:GetTop()) - self.testU:SetSize(width,thickness) - - self.testL:ClearAllPoints() - self.testL:SetPoint('RIGHT', UIParent, 'BOTTOMLEFT', target:GetLeft(), midY) - self.testL:SetSize(thickness,height) - - self.testR:ClearAllPoints() - self.testR:SetPoint('LEFT', UIParent, 'BOTTOMLEFT', target:GetRight(), midY) - self.testR:SetSize(thickness,height) -end \ No newline at end of file