WoWInterface SVN HolidayFun

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 3 to Rev 2
    Reverse comparison

Rev 3 → Rev 2

trunk/Holiday Fun/media/CarolBells.ogg Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/Holiday Fun/media/hohoho.ogg Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/Holiday Fun/media/CarolBells.wav Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
trunk/Holiday Fun/media/hohoho.wav Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
trunk/Holiday Fun/Holiday Fun.toc
1,7 → 1,7
## Interface: 50100
## Interface: 30300
## Title: Holiday Fun!
## Author: Seerah
## Version: 1.1
## Version: 1.0
## Notes: Get in the holiday spirit with a Christmas themed UI!
## SavedVariables: HolidayFunDB
 
trunk/Holiday Fun/holiday.lua
116,13 → 116,13
 
lightsframeleft:Show() --ready to start OnUpdate now if db.lightsOn == true
 
PlaySoundFile("Interface\\AddOns\\Holiday Fun\\media\\hohoho.ogg")
PlaySoundFile("Interface\\AddOns\\Holiday Fun\\media\\hohoho.wav")
if db.musicOn then
local count = 0 --this count var is local to only this scope(?)
f:SetScript("OnUpdate", function(self,elapsed)
count = count + elapsed
if count >= 3 and not musicplayed then --music gets overwritten by zone music if not delayed at login
PlayMusic("Interface\\AddOns\\Holiday Fun\\media\\CarolBells.ogg")
PlayMusic("Interface\\AddOns\\Holiday Fun\\media\\CarolBells.wav")
musicplayed = true
if not db.playOnce then --if db.playOnce == false then stop OnUpdate from counting, keeping the music looping
f:Hide()
191,7 → 191,7
print("|cff78AB46Holiday Fun!:|r Loop music set to on. 'Carol of the Bells' will play continuously.")
end
elseif arg == "playmusic" then
PlayMusic("Interface\\AddOns\\Holiday Fun\\media\\CarolBells.ogg")
PlayMusic("Interface\\AddOns\\Holiday Fun\\media\\CarolBells.wav")
print("|cff78AB46Holiday Fun!:|r Now playing 'Carol of the Bells' - if you have music set to loop in your sound options, this will play continuously. Type '/holidayfun stopmusic' to stop the song from playing.")
elseif arg == "stopmusic" then
StopMusic()