- added a scale parameter for encounter details plugin.

This commit is contained in:
Tercioo
2016-01-22 10:21:12 -02:00
parent 0b4024daa8
commit 3b2cef2975
4 changed files with 25 additions and 5 deletions
+18 -1
View File
@@ -102,7 +102,17 @@ do
name = "Emote Segments Amount",
usedecimals = true,
},
{
type = "range",
get = function() return EncounterDetails.db.window_scale end,
set = function (self, fixedparam, value) EncounterDetails.db.window_scale = value; EncounterDetails:RefreshScale() end,
min = 0.65,
max = 1.50,
step = 0.1,
desc = "Set the window size",
name = "Window Scale",
usedecimals = true,
},
}
@@ -117,6 +127,13 @@ do
EncounterDetailsOptionsWindow:Show()
end
function EncounterDetails:RefreshScale()
local scale = EncounterDetails.db.window_scale
if (EncounterDetails.Frame) then
EncounterDetails.Frame:SetScale (scale)
end
end
function EncounterDetails:CreateRowTexture (row)
row.textura = CreateFrame ("StatusBar", nil, row)
row.textura:SetAllPoints (row)