diff Shopping.lua @ 61:cf2b6b9a8337 v23

6.2 update, shopping list bug fixes, ui scale option
author yellowfive
date Tue, 23 Jun 2015 00:27:21 -0700
parents 01b63b8ed811
children 0515882856f1
line wrap: on
line diff
--- a/Shopping.lua	Sun Jun 07 15:20:25 2015 -0700
+++ b/Shopping.lua	Tue Jun 23 00:27:21 2015 -0700
@@ -58,6 +58,11 @@
 		_frameShop:SetBorderColor(Amr.Colors.BorderBlue)
 		_frameShop:SetBackgroundColor(Amr.Colors.Bg)
 		
+		if Amr.db.profile.options.uiScale ~= 1 then
+			local scale = tonumber(Amr.db.profile.options.uiScale)
+			_frameShop:SetScale(scale)
+		end
+		
 		local lbl = AceGUI:Create("AmrUiLabel")
 		lbl:SetWidth(400)
 		lbl:SetFont(Amr.CreateFont("Bold", 28, Amr.Colors.White))
@@ -214,14 +219,14 @@
 		_panelContent:AddChild(lbl)
 	else
 		-- set labels on checkboxes
-		if data.specs[1] then
+		if data.specs[1] and data.specs[1] ~= 0 then
 			local id, name = GetSpecializationInfoByID(Amr.GetGameSpecId(data.specs[1]))
 			_chk1:SetText(name .. " " .. L.ShopSpecLabel)
 			_chk1:SetVisible(true)
 			_chk1:SetChecked(_specs[1])
 		end
 		
-		if data.specs[2] then
+		if data.specs[2] and data.specs[2] ~= 0 then
 			local id, name = GetSpecializationInfoByID(Amr.GetGameSpecId(data.specs[2]))
 			_chk2:SetText(name .. " " .. L.ShopSpecLabel)
 			_chk2:SetVisible(true)