Mercurial > wow > askmrrobot
diff ui/Ui.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 | 932885bb1a6f |
line wrap: on
line diff
--- a/ui/Ui.lua Sun Jun 07 15:20:25 2015 -0700 +++ b/ui/Ui.lua Tue Jun 23 00:27:21 2015 -0700 @@ -149,6 +149,11 @@ f:SetHeight(700) f:SetBorderColor(Amr.Colors.BorderBlue) f:SetBackgroundColor(Amr.Colors.Bg) + + if Amr.db.profile.options.uiScale ~= 1 then + local scale = tonumber(Amr.db.profile.options.uiScale) + f:SetScale(scale) + end -- some status text local lblStatus = AceGUI:Create("AmrUiLabel") @@ -338,6 +343,18 @@ _mainTabs:SelectTab(_activeTab) end +function Amr:Reset() + if not self:IsEnabled() then return end + + Amr:Hide() + Amr:HideLootWindow() + Amr:HideShopWindow() + Amr.db.profile.options.uiScale = 1 + Amr.db.profile.window = {} + Amr.db.profile.lootWindow = {} + Amr.db.profile.shopWindow = {} +end + -- show the UI if not shown already, and select the specified tab function Amr:ShowTab(tab) if not self:IsEnabled() then return end