MonkeyQuest

19 - Play "Work complete" and "More work?" sounds even if minimized

Play "Work complete" and "More work?" sounds even if minimized. Still being able to hear it without having the big frame open across the screen is handy. For example, I got it working by doing your For-Loop twice in the function MonkeyQuest_Refresh(); one to draw the frame first, and another separate one just to play sounds. So far working for me for awhile now and I wanted to share it with you.

function MonkeyQuest_Refresh()

-- Draw frame when open and not minimized
if (MonkeyQuestConfig[MonkeyQuest.m_strPlayer].m_bMinimized == false) then
for i = 1, iNumEntries, 1 do
end
-- etc ...

-- Play sounds when open or minimized, but not when toggle user interface or watching cinematic
if ( UIParent:IsShown() ) then -- ignore sound in full screen view or cinematic
for i = 1, iNumEntries, 1 do
end
-- etc ...

User When Change
jtbalogh Jul 11, 2012 at 04:12 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Reported
Jul 11, 2012
Status
New - Issue has not had initial review yet.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees