Mercurial > wow > askmrrobot
comparison Junk.lua @ 179:eec8032ba9df v84
addon should close automatically when entering combat now
author | yellowfive |
---|---|
date | Thu, 13 Feb 2020 13:21:44 -0800 |
parents | f27a7c64b21f |
children | a7f2ba17c39a |
comparison
equal
deleted
inserted
replaced
178:725fc231cde9 | 179:eec8032ba9df |
---|---|
286 _frameJunk:Hide() | 286 _frameJunk:Hide() |
287 end | 287 end |
288 | 288 |
289 function Amr:ShowJunkWindow() | 289 function Amr:ShowJunkWindow() |
290 | 290 |
291 if InCombatLockdown() then return end | |
292 | |
291 if not _frameJunk then | 293 if not _frameJunk then |
292 _frameJunk = AceGUI:Create("AmrUiFrame") | 294 _frameJunk = AceGUI:Create("AmrUiFrame") |
293 _frameJunk:SetStatusTable(Amr.db.profile.junkWindow) -- window position is remembered in db | 295 _frameJunk:SetStatusTable(Amr.db.profile.junkWindow) -- window position is remembered in db |
294 _frameJunk:SetCallback("OnClose", onJunkFrameClose) | 296 _frameJunk:SetCallback("OnClose", onJunkFrameClose) |
295 _frameJunk:SetLayout("None") | 297 _frameJunk:SetLayout("None") |