Skip to content

Commit 4d59c15

Browse files
committed
TOC version update and XYPos button update.
1 parent 1fdf227 commit 4d59c15

File tree

2 files changed

+26
-17
lines changed

2 files changed

+26
-17
lines changed

Clean-Mini-Map.toc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
## Interface: 90001
1+
## Interface: 90002
22
## Title: Clean-Mini-Map
33
## Notes: Cleans the area around wows minimap to get rid of the annoying buttons and neatly consolidates them in a strip
44

55
## Author: WiNiFiX
66
## X-License: GNU General Public License Version 3
77
## X-Category: Minimap UI
8-
## Version: 9.0.1
8+
## Version: 9.0.2
99

1010
Main.lua

Main.lua

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
--[[
2+
3+
UI Layers
4+
5+
1. background
6+
2. border
7+
3. artwork
8+
4. overlay
9+
5. highlight
10+
11+
]]--
12+
113
local height = 32
214

315
local x = 0
@@ -22,26 +34,23 @@ local frmMain = CreateFrame('Button','XYPos',UIParent)
2234
frmMain:RegisterForClicks('AnyUp')
2335
frmMain:SetScript('OnClick', OnClickXYPos)
2436
frmMain:SetSize(170, height)
25-
frmMain.t = frmMain:CreateTexture()
2637
frmMain:SetPoint('TOP')
27-
frmMain.t:SetColorTexture(0.5,0.5,0.5,0.3)
28-
frmMain.t:SetAllPoints(frmMain)
29-
30-
frmMain.Backdrop = CreateFrame("Frame", "Backdrop", frmMain, "BackdropTemplate")
31-
frmMain.Backdrop:SetAllPoints()
32-
frmMain.Backdrop.backdropInfo = {
33-
bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background",
34-
edgeFile = "Interface\\DialogFrame\\UI-DialogBox-Border",
35-
tile = true,
36-
tileSize = 2,
37-
edgeSize = 2,
38-
insets = { left = 2, right = 2, top = 2, bottom = 2, },
38+
39+
local backdrop = CreateFrame("Frame", "Backdrop", frmMain, "BackdropTemplate")
40+
backdrop:SetAllPoints()
41+
backdrop.backdropInfo = {
42+
bgFile = nil, -- String - Which texture file to use as frame background (.blp or .tga format)
43+
edgeFile = "Interface/Tooltips/UI-Tooltip-Border", -- String- Which texture file to use as frame edge blp or .tga format)
44+
tile = true, -- Boolean - whether background texture is tiled or streched
45+
tileSize = 16, -- Number - Control how large each copy of the bgFile becomes on-screen
46+
edgeSize = 16, -- Number - Control how large each copy of the edgeFile becomes on-screen (i.e. border thickness and corner size)
47+
insets = { left = 4, right = 4, top = 4, bottom = 4, },
3948
}
40-
frmMain.Backdrop:ApplyBackdrop()
49+
backdrop:ApplyBackdrop()
4150
frmMain:Show()
4251

4352
local xyPos = frmMain:CreateFontString(frmMain, 'OVERLAY', 'GameTooltipText')
44-
xyPos:SetTextColor(1,1,1,1)
53+
xyPos:SetTextColor(1, 1, 1, 1)
4554
xyPos:SetPoint('CENTER',0,0)
4655

4756
function round(number, precision)

0 commit comments

Comments
 (0)