comparison ui/Ui.lua @ 179:eec8032ba9df v84

addon should close automatically when entering combat now
author yellowfive
date Thu, 13 Feb 2020 13:21:44 -0800
parents 35612aee8e15
children 5c586ff5fee5
comparison
equal deleted inserted replaced
178:725fc231cde9 179:eec8032ba9df
349 349
350 -- show the UI if not shown already, and display the last active tab 350 -- show the UI if not shown already, and display the last active tab
351 function Amr:Show() 351 function Amr:Show()
352 if not self:IsEnabled() then return end 352 if not self:IsEnabled() then return end
353 353
354 if InCombatLockdown() then return end
355
354 if _mainFrame then 356 if _mainFrame then
355 _mainFrame:Show() 357 _mainFrame:Show()
356 else 358 else
357 createMainWindow() 359 createMainWindow()
358 end 360 end
365 if not self:IsEnabled() then return end 367 if not self:IsEnabled() then return end
366 368
367 Amr:Hide() 369 Amr:Hide()
368 --Amr:HideLootWindow() 370 --Amr:HideLootWindow()
369 Amr:HideShopWindow() 371 Amr:HideShopWindow()
372 Amr:HideJunkWindow()
370 Amr.db.profile.options.uiScale = 1 373 Amr.db.profile.options.uiScale = 1
371 Amr.db.profile.window = {} 374 Amr.db.profile.window = {}
372 Amr.db.profile.lootWindow = {} 375 Amr.db.profile.lootWindow = {}
373 Amr.db.profile.shopWindow = {} 376 Amr.db.profile.shopWindow = {}
374 Amr.db.profile.junkWindow = {} 377 Amr.db.profile.junkWindow = {}