/trunk
L["Force"] = true |
L["General"] = true |
L["Gossip Window"] = true |
L["Heroic Dungeon"] = true |
L["Minimap Icon"] = true |
L["Multiple Rewards"] = true |
L["None"] = true |
L["Normal"] = true |
L["Normal Dungeon"] = true |
L["Note: The modifier 'None' refers to when no modifier is being held. Setting the modifier to 'Disable' disables the option."] = true |
L["Quest Pop-ups"] = true |
L["Quest Rewards"] = true |
]] local L = LibStub("AceLocale-3.0"):NewLocale("EasyDaily_Base", "esMX"); if not L then return end |
-- L["{Click} to open the options menu"] = "" |
-- L["Alt"] = "" |
-- L["Auto"] = "" |
-- L["Auto-Select rewards for quests with more than one reward."] = "" |
-- L["Auto-Select rewards for quests with one or less reward."] = "" |
-- L["Auto Turn-in"] = "" |
-- L["Auto Turn-in Text"] = "" |
-- L["Available"] = "" |
-- L["Battleground"] = "" |
-- L["Complete"] = "" |
-- L["Completed [%s] of [%s] dailies"] = "" |
-- L["Ctrl"] = "" |
-- L["Daily"] = "" |
-- L["Daily Quest Discovered"] = "" |
-- L["Debug"] = "" |
-- L["Disable"] = "" |
-- L["Disable Gold Pop-up"] = "" |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests auto turn-in status in text."] = "" |
-- L["Enabled"] = "" |
-- L["Enable/Disable debug mode."] = "" |
-- L["Enable/Disable the addon."] = "" |
-- L["Enables Auto Turn-in for %s tagged quests."] = "" |
-- L["Force"] = "" |
-- L["General"] = "" |
-- L["Gossip Window"] = "" |
-- L["[Left-Click] to toggle the quest window"] = "" |
-- L["Minimap Icon"] = "" |
-- L["Show an icon on the Minimap that will open the options menu."] = "" |
-- L["Multiple Rewards"] = "" |
-- L["None"] = "" |
-- L["Normal"] = "" |
-- L["Note: The modifier 'None' refers to when no modifier is being held. Setting the modifier to 'Disable' disables the option."] = "" |
-- L["Quest Pop-ups"] = "" |
-- L["Quest Rewards"] = "" |
-- L["Quests"] = "" |
-- L["Quest Tags"] = "" |
-- L["Quick Info"] = "" |
-- L["Repeatable"] = "" |
-- L["Repeatable Quest Discovered"] = "" |
-- L["Replace Gossip Icons"] = "" |
-- L["Replaces the default gossip icons with color coded versions."] = "" |
-- L["[Right-Click] to toggle the options menu"] = "" |
-- L["Selection Modifiers"] = "" |
-- L["Shift"] = "" |
-- L["Show an icon on the Minimap."] = "" |
-- L["Single Reward"] = "" |
-- L["Special"] = "" |
-- L["Sticky Turn-in"] = "" |
-- L["Suspend"] = "" |
-- L["The [new day] begins in %s"] = "" |
-- L["Toggles 'Auto Turn-in' for this quest."] = "" |
-- L["Toggle this quest's state."] = "" |
-- L["Turn-in sequences will run to completion once they've been started regardless of its modifier's status."] = "" |
-- L["Use this modifier to Auto Turn-in %s quests."] = "" |
-- L["Use this modifier to forcibly Auto Turn-in any quest. Overrides all settings."] = "" |
-- L["Use this modifier to suspend the Auto Turn-in process."] = "" |
]] local L = LibStub("AceLocale-3.0"):NewLocale("EasyDaily_Base", "zhTW"); if not L then return end |
-- L["{Click} to open the options menu"] = "" |
-- L["Alt"] = "" |
-- L["Auto"] = "" |
-- L["Auto-Select rewards for quests with more than one reward."] = "" |
-- L["Auto-Select rewards for quests with one or less reward."] = "" |
-- L["Auto Turn-in"] = "" |
-- L["Auto Turn-in Text"] = "" |
-- L["Available"] = "" |
-- L["Battleground"] = "" |
-- L["Complete"] = "" |
-- L["Completed [%s] of [%s] dailies"] = "" |
-- L["Ctrl"] = "" |
-- L["Daily"] = "" |
-- L["Daily Quest Discovered"] = "" |
-- L["Debug"] = "" |
-- L["Disable"] = "" |
-- L["Disable Gold Pop-up"] = "" |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests auto turn-in status in text."] = "" |
-- L["Enabled"] = "" |
-- L["Enable/Disable debug mode."] = "" |
-- L["Enable/Disable the addon."] = "" |
-- L["Enables Auto Turn-in for %s tagged quests."] = "" |
-- L["Force"] = "" |
-- L["General"] = "" |
-- L["Gossip Window"] = "" |
-- L["[Left-Click] to toggle the quest window"] = "" |
-- L["Minimap Icon"] = "" |
-- L["Show an icon on the Minimap that will open the options menu."] = "" |
-- L["Multiple Rewards"] = "" |
-- L["None"] = "" |
-- L["Normal"] = "" |
-- L["Note: The modifier 'None' refers to when no modifier is being held. Setting the modifier to 'Disable' disables the option."] = "" |
-- L["Quest Pop-ups"] = "" |
-- L["Quest Rewards"] = "" |
-- L["Quests"] = "" |
-- L["Quest Tags"] = "" |
-- L["Quick Info"] = "" |
-- L["Repeatable"] = "" |
-- L["Repeatable Quest Discovered"] = "" |
-- L["Replace Gossip Icons"] = "" |
-- L["Replaces the default gossip icons with color coded versions."] = "" |
-- L["[Right-Click] to toggle the options menu"] = "" |
-- L["Selection Modifiers"] = "" |
-- L["Shift"] = "" |
-- L["Show an icon on the Minimap."] = "" |
-- L["Single Reward"] = "" |
-- L["Special"] = "" |
-- L["Sticky Turn-in"] = "" |
-- L["Suspend"] = "" |
-- L["The [new day] begins in %s"] = "" |
-- L["Toggles 'Auto Turn-in' for this quest."] = "" |
-- L["Toggle this quest's state."] = "" |
-- L["Turn-in sequences will run to completion once they've been started regardless of its modifier's status."] = "" |
-- L["Use this modifier to Auto Turn-in %s quests."] = "" |
-- L["Use this modifier to forcibly Auto Turn-in any quest. Overrides all settings."] = "" |
-- L["Use this modifier to suspend the Auto Turn-in process."] = "" |
]] local L = LibStub("AceLocale-3.0"):NewLocale("EasyDaily_Base", "ruRU"); if not L then return end |
-- L["{Click} to open the options menu"] = "" |
L["Debug"] = "ÐиагноÑÑика" |
L["Alt"] = "Alt" |
L["Auto"] = "ÐвÑо" |
L["Auto-Select rewards for quests with more than one reward."] = "ÐвÑовÑÐ±Ð¾Ñ Ð½Ð°Ð³Ñад за Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ñ Ð½ÐµÑколÑкими нагÑадами." |
L["Auto-Select rewards for quests with one or less reward."] = "ÐвÑовÑÐ±Ð¾Ñ Ð½Ð°Ð³ÑÐ°Ð´Ñ Ð·Ð° Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ñ Ð¾Ð´Ð½Ð¾Ð¹ нагÑадой." |
L["Auto Turn-in"] = "ÐвÑоÑдаÑа" |
L["Auto Turn-in Text"] = "ТекÑÑ Ð°Ð²ÑоÑдаÑи" |
L["Available"] = "ÐоÑÑÑпно" |
L["Battleground"] = "Ðоле боÑ" |
L["Complete"] = "ÐÑполнено" |
L["Completed [%s] of [%s] dailies"] = "ÐÑполнено [%s] из [%s] ежедневнÑÑ Ð·Ð°Ð´Ð°Ð½Ð¸Ð¹" |
L["Ctrl"] = "Ctrl" |
L["Daily"] = "Ðжедневно" |
L["Daily Quest Discovered"] = "ÐбнаÑÑжено ежедневное задание" |
L["Debug"] = "ÐÑладка" |
L["Disable"] = "ÐÑклÑÑиÑÑ" |
L["Disable Gold Pop-up"] = "ÐÑклÑÑиÑÑ Ð²ÑплÑвание золоÑа" |
L["Disable PvP Pop-up"] = "ÐÑклÑÑиÑÑ Ð²ÑплÑвание PvP" |
L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "ÐÑклÑÑÐ°ÐµÑ Ð²ÑплÑваÑÑий запÑÐ¾Ñ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð¿Ñи попÑÑке взÑÑÐ¸Ñ ÐµÐ¶ÐµÐ´Ð½ÐµÐ²Ð½Ð¾Ð³Ð¾ заданиÑ, оÑмеÑаÑÑего ваÑ, как PvP-акÑивного." |
L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "ÐÑклÑÑÐ°ÐµÑ Ð²ÑплÑваÑÑий запÑÐ¾Ñ Ð¿Ð¾Ð´ÑвеÑждениÑ, поÑвлÑÑÑийÑÑ Ð¿Ñи вÑполнении ежедневного заданиÑ, Ð´Ð»Ñ ÐºÐ¾ÑоÑого ÑÑебÑеÑÑÑ Ð·Ð¾Ð»Ð¾Ñо." |
L["Displays a quests auto turn-in status in text."] = "ÐÑобÑÐ°Ð¶Ð°ÐµÑ ÑÑаÑÑÑ Ð°Ð²ÑоÑдаÑи заданий в каÑеÑÑве ÑекÑÑа." |
L["Enabled"] = "ÐклÑÑено" |
L["Enable/Disable debug mode."] = "ÐклÑÑиÑÑ/оÑклÑÑиÑÑ Ñежим диагноÑÑики." |
L["Enable/Disable the addon."] = "ÐклÑÑиÑÑ/ÐÑклÑÑиÑÑ Ð°Ð´Ð´Ð¾Ð½" |
L["Minimap Icon"] = "Ðконка Ñ Ð¼Ð¸Ð½Ð¸ÐºÐ°ÑÑÑ" |
L["Show an icon on the Minimap that will open the options menu."] = "ÐÑобÑажаÑÑ Ñ Ð¼Ð¸Ð½Ð¸ÐºÐ°ÑÑÑ Ð¸ÐºÐ¾Ð½ÐºÑ, оÑкÑÑваÑÑÑÑ Ð¼ÐµÐ½Ñ Ð¾Ð¿Ñий." |
L["Enable/Disable debug mode."] = "ÐклÑÑиÑÑ/оÑклÑÑиÑÑ Ñежим оÑладки." |
L["Enable/Disable the addon."] = "ÐклÑÑиÑÑ/ÐÑклÑÑиÑÑ Ð°Ð´Ð´Ð¾Ð½." |
L["Enables Auto Turn-in for %s tagged quests."] = "ÐклÑÑиÑÑ Ð°Ð²ÑоÑдаÑÑ Ð·Ð°Ð´Ð°Ð½Ð¸Ð¹, помеÑеннÑÑ , как %s" |
L["Force"] = "ÐÑинÑдиÑелÑно" |
L["General"] = "ÐбÑее" |
L["Gossip Window"] = "Ðкно ÑазговоÑа" |
L["[Left-Click] to toggle the quest window"] = "[ÐевÑй клик] Ð´Ð»Ñ Ð¾ÑкÑÑÑиÑ/закÑÑÑÐ¸Ñ Ð¾ÐºÐ½Ð° заданий" |
L["Minimap Icon"] = "Ðконка Ñ Ð¼Ð¸Ð½Ð¸-каÑÑÑ" |
L["Multiple Rewards"] = "ÐногоÑиÑленнÑе нагÑадÑ" |
L["None"] = "ÐÑÑÑÑÑÑвÑеÑ" |
L["Normal"] = "ÐоÑмалÑнÑй" |
L["Note: The modifier 'None' refers to when no modifier is being held. Setting the modifier to 'Disable' disables the option."] = "ÐамеÑка: ÐодиÑикаÑÐ¾Ñ 'ÐÑÑÑÑÑÑÑвÑеÑ' ÑÑÑлаеÑÑÑ Ð½Ð° оÑÑÑÑÑÑвие назнаÑенного модиÑикаÑоÑа. УÑÑановка модиÑикаÑоÑа на 'ÐÑклÑÑиÑÑ' оÑклÑÑÐ°ÐµÑ ÑÑÑ Ð¾Ð¿ÑиÑ." |
L["Quest Pop-ups"] = "ÐÑплÑвание заданиÑ" |
L["Quest Rewards"] = "ÐагÑÐ°Ð´Ñ Ð·Ð° заданиÑ" |
L["Quests"] = "ÐаданиÑ" |
L["Quest Tags"] = "ÐеÑки заданиÑ" |
L["Quick Info"] = "ÐÑÑÑÑÐ°Ñ Ð¸Ð½Ñа" |
L["Repeatable"] = "ÐовÑоÑÑÑÑееÑÑ" |
L["Repeatable Quest Discovered"] = "ÐбнаÑÑжено повÑоÑÑÑÑееÑÑ Ð·Ð°Ð´Ð°Ð½Ð¸Ðµ" |
L["Replace Gossip Icons"] = "ÐамениÑÑ Ð¸ÐºÐ¾Ð½ÐºÐ¸ беÑедÑ" |
L["Replaces the default gossip icons with color coded versions."] = "ÐамениÑÑ ÑÑандаÑÑнÑе иконки окна беÑÐµÐ´Ñ Ð½Ð° ÑаÑкÑаÑеннÑе." |
L["[Right-Click] to toggle the options menu"] = "[ÐÑавÑй клик] Ð´Ð»Ñ Ð¾ÑкÑÑÑиÑ/закÑÑÑÐ¸Ñ Ð¼ÐµÐ½Ñ Ð½Ð°ÑÑÑоек" |
L["Selection Modifiers"] = "ÐодиÑикаÑоÑÑ Ð²ÑбоÑа" |
L["Shift"] = "Shift" |
L["Show an icon on the Minimap."] = "ÐÑобÑажаÑÑ Ð¸ÐºÐ¾Ð½ÐºÑ Ñ Ð¼Ð¸Ð½Ð¸-каÑÑÑ." |
L["Single Reward"] = "ÐдиноÑнÑе нагÑадÑ" |
L["Special"] = "ÐÑобÑе" |
-- L["Sticky Turn-in"] = "" |
L["Suspend"] = "ÐÑиоÑÑановиÑÑ" |
L["The [new day] begins in %s"] = "[ÐовÑй денÑ] наÑнÑÑÑÑ ÑеÑез %s" |
L["Toggles 'Auto Turn-in' for this quest."] = "Ðкл/ÐÑкл 'ÐвÑоÑдаÑÑ' данного заданиÑ." |
L["Toggle this quest's state."] = "ÐеÑеклÑÑение ÑÑаÑÑÑа данного заданиÑ." |
-- L["Turn-in sequences will run to completion once they've been started regardless of its modifier's status."] = "" |
L["Use this modifier to Auto Turn-in %s quests."] = "ÐÑполÑзоваÑÑ ÑÑÐ¾Ñ Ð¼Ð¾Ð´Ð¸ÑикаÑÐ¾Ñ Ð´Ð»Ñ Ð°Ð²ÑоÑдаÑи %s заданий." |
L["Use this modifier to forcibly Auto Turn-in any quest. Overrides all settings."] = "ÐÑполÑзоваÑÑ ÑÑÐ¾Ñ Ð¼Ð¾Ð´Ð¸ÑикаÑÐ¾Ñ Ð´Ð»Ñ Ð¿ÑинÑдиÑелÑной авÑоÑдаÑи лÑбого заданиÑ. ÐгноÑиÑÑÐµÑ Ð²Ñе наÑÑÑойки." |
L["Use this modifier to suspend the Auto Turn-in process."] = "ÐÑполÑзоваÑÑ ÑÑÐ¾Ñ Ð¼Ð¾Ð´Ð¸ÑикаÑÐ¾Ñ Ð´Ð»Ñ Ð¿ÑиоÑÑановки пÑоÑеÑÑа авÑоÑдаÑи." |
]] local L = LibStub("AceLocale-3.0"):NewLocale("EasyDaily_Base", "esES"); if not L then return end |
-- L["{Click} to open the options menu"] = "" |
-- L["Alt"] = "" |
-- L["Auto"] = "" |
-- L["Auto-Select rewards for quests with more than one reward."] = "" |
-- L["Auto-Select rewards for quests with one or less reward."] = "" |
-- L["Auto Turn-in"] = "" |
-- L["Auto Turn-in Text"] = "" |
-- L["Available"] = "" |
-- L["Battleground"] = "" |
-- L["Complete"] = "" |
-- L["Completed [%s] of [%s] dailies"] = "" |
-- L["Ctrl"] = "" |
-- L["Daily"] = "" |
-- L["Daily Quest Discovered"] = "" |
-- L["Debug"] = "" |
-- L["Disable"] = "" |
-- L["Disable Gold Pop-up"] = "" |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests auto turn-in status in text."] = "" |
-- L["Enabled"] = "" |
-- L["Enable/Disable debug mode."] = "" |
-- L["Enable/Disable the addon."] = "" |
-- L["Enables Auto Turn-in for %s tagged quests."] = "" |
-- L["Force"] = "" |
-- L["General"] = "" |
-- L["Gossip Window"] = "" |
-- L["[Left-Click] to toggle the quest window"] = "" |
-- L["Minimap Icon"] = "" |
-- L["Show an icon on the Minimap that will open the options menu."] = "" |
-- L["Multiple Rewards"] = "" |
-- L["None"] = "" |
-- L["Normal"] = "" |
-- L["Note: The modifier 'None' refers to when no modifier is being held. Setting the modifier to 'Disable' disables the option."] = "" |
-- L["Quest Pop-ups"] = "" |
-- L["Quest Rewards"] = "" |
-- L["Quests"] = "" |
-- L["Quest Tags"] = "" |
-- L["Quick Info"] = "" |
-- L["Repeatable"] = "" |
-- L["Repeatable Quest Discovered"] = "" |
-- L["Replace Gossip Icons"] = "" |
-- L["Replaces the default gossip icons with color coded versions."] = "" |
-- L["[Right-Click] to toggle the options menu"] = "" |
-- L["Selection Modifiers"] = "" |
-- L["Shift"] = "" |
-- L["Show an icon on the Minimap."] = "" |
-- L["Single Reward"] = "" |
-- L["Special"] = "" |
-- L["Sticky Turn-in"] = "" |
-- L["Suspend"] = "" |
-- L["The [new day] begins in %s"] = "" |
-- L["Toggles 'Auto Turn-in' for this quest."] = "" |
-- L["Toggle this quest's state."] = "" |
-- L["Turn-in sequences will run to completion once they've been started regardless of its modifier's status."] = "" |
-- L["Use this modifier to Auto Turn-in %s quests."] = "" |
-- L["Use this modifier to forcibly Auto Turn-in any quest. Overrides all settings."] = "" |
-- L["Use this modifier to suspend the Auto Turn-in process."] = "" |
]] local L = LibStub("AceLocale-3.0"):NewLocale("EasyDaily_Base", "frFR"); if not L then return end |
L["{Click} to open the options menu"] = "{Clic} pour ouvrir le menu des options" |
-- L["Alt"] = "" |
-- L["Auto"] = "" |
-- L["Auto-Select rewards for quests with more than one reward."] = "" |
-- L["Auto-Select rewards for quests with one or less reward."] = "" |
-- L["Auto Turn-in"] = "" |
-- L["Auto Turn-in Text"] = "" |
-- L["Available"] = "" |
-- L["Battleground"] = "" |
-- L["Complete"] = "" |
-- L["Completed [%s] of [%s] dailies"] = "" |
-- L["Ctrl"] = "" |
-- L["Daily"] = "" |
-- L["Daily Quest Discovered"] = "" |
L["Debug"] = "Débogage" |
-- L["Disable"] = "" |
-- L["Disable Gold Pop-up"] = "" |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests auto turn-in status in text."] = "" |
L["Enabled"] = "Activé" |
L["Enable/Disable debug mode."] = "Activer / désactiver le mode de débogage." |
L["Enable/Disable the addon."] = "Activer / désactiver cet add-on." |
-- L["Enables Auto Turn-in for %s tagged quests."] = "" |
-- L["Force"] = "" |
-- L["General"] = "" |
-- L["Gossip Window"] = "" |
-- L["[Left-Click] to toggle the quest window"] = "" |
L["Minimap Icon"] = "Icône de la minicarte" |
L["Show an icon on the Minimap that will open the options menu."] = "Affiche une icône sur la minicarte pour accéder au menu des options." |
-- L["Multiple Rewards"] = "" |
-- L["None"] = "" |
-- L["Normal"] = "" |
-- L["Note: The modifier 'None' refers to when no modifier is being held. Setting the modifier to 'Disable' disables the option."] = "" |
-- L["Quest Pop-ups"] = "" |
-- L["Quest Rewards"] = "" |
-- L["Quests"] = "" |
-- L["Quest Tags"] = "" |
-- L["Quick Info"] = "" |
-- L["Repeatable"] = "" |
-- L["Repeatable Quest Discovered"] = "" |
-- L["Replace Gossip Icons"] = "" |
-- L["Replaces the default gossip icons with color coded versions."] = "" |
-- L["[Right-Click] to toggle the options menu"] = "" |
-- L["Selection Modifiers"] = "" |
-- L["Shift"] = "" |
-- L["Show an icon on the Minimap."] = "" |
-- L["Single Reward"] = "" |
-- L["Special"] = "" |
-- L["Sticky Turn-in"] = "" |
-- L["Suspend"] = "" |
-- L["The [new day] begins in %s"] = "" |
-- L["Toggles 'Auto Turn-in' for this quest."] = "" |
-- L["Toggle this quest's state."] = "" |
-- L["Turn-in sequences will run to completion once they've been started regardless of its modifier's status."] = "" |
-- L["Use this modifier to Auto Turn-in %s quests."] = "" |
-- L["Use this modifier to forcibly Auto Turn-in any quest. Overrides all settings."] = "" |
-- L["Use this modifier to suspend the Auto Turn-in process."] = "" |
]] local L = LibStub("AceLocale-3.0"):NewLocale("EasyDaily_Base", "deDE"); if not L then return end |
-- L["{Click} to open the options menu"] = "" |
-- L["Alt"] = "" |
-- L["Auto"] = "" |
-- L["Auto-Select rewards for quests with more than one reward."] = "" |
-- L["Auto-Select rewards for quests with one or less reward."] = "" |
-- L["Auto Turn-in"] = "" |
-- L["Auto Turn-in Text"] = "" |
-- L["Available"] = "" |
-- L["Battleground"] = "" |
-- L["Complete"] = "" |
-- L["Completed [%s] of [%s] dailies"] = "" |
-- L["Ctrl"] = "" |
-- L["Daily"] = "" |
-- L["Daily Quest Discovered"] = "" |
-- L["Debug"] = "" |
-- L["Disable"] = "" |
-- L["Disable Gold Pop-up"] = "" |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests auto turn-in status in text."] = "" |
-- L["Enabled"] = "" |
-- L["Enable/Disable debug mode."] = "" |
-- L["Enable/Disable the addon."] = "" |
-- L["Enables Auto Turn-in for %s tagged quests."] = "" |
-- L["Force"] = "" |
-- L["General"] = "" |
-- L["Gossip Window"] = "" |
-- L["[Left-Click] to toggle the quest window"] = "" |
-- L["Minimap Icon"] = "" |
-- L["Show an icon on the Minimap that will open the options menu."] = "" |
-- L["Multiple Rewards"] = "" |
-- L["None"] = "" |
-- L["Normal"] = "" |
-- L["Note: The modifier 'None' refers to when no modifier is being held. Setting the modifier to 'Disable' disables the option."] = "" |
-- L["Quest Pop-ups"] = "" |
-- L["Quest Rewards"] = "" |
-- L["Quests"] = "" |
-- L["Quest Tags"] = "" |
-- L["Quick Info"] = "" |
-- L["Repeatable"] = "" |
-- L["Repeatable Quest Discovered"] = "" |
-- L["Replace Gossip Icons"] = "" |
-- L["Replaces the default gossip icons with color coded versions."] = "" |
-- L["[Right-Click] to toggle the options menu"] = "" |
-- L["Selection Modifiers"] = "" |
-- L["Shift"] = "" |
-- L["Show an icon on the Minimap."] = "" |
-- L["Single Reward"] = "" |
-- L["Special"] = "" |
-- L["Sticky Turn-in"] = "" |
-- L["Suspend"] = "" |
-- L["The [new day] begins in %s"] = "" |
-- L["Toggles 'Auto Turn-in' for this quest."] = "" |
-- L["Toggle this quest's state."] = "" |
-- L["Turn-in sequences will run to completion once they've been started regardless of its modifier's status."] = "" |
-- L["Use this modifier to Auto Turn-in %s quests."] = "" |
-- L["Use this modifier to forcibly Auto Turn-in any quest. Overrides all settings."] = "" |
-- L["Use this modifier to suspend the Auto Turn-in process."] = "" |
]] local L = LibStub("AceLocale-3.0"):NewLocale("EasyDaily_Base", "zhCN"); if not L then return end |
-- L["{Click} to open the options menu"] = "" |
-- L["Alt"] = "" |
-- L["Auto"] = "" |
-- L["Auto-Select rewards for quests with more than one reward."] = "" |
-- L["Auto-Select rewards for quests with one or less reward."] = "" |
-- L["Auto Turn-in"] = "" |
-- L["Auto Turn-in Text"] = "" |
-- L["Available"] = "" |
-- L["Battleground"] = "" |
-- L["Complete"] = "" |
-- L["Completed [%s] of [%s] dailies"] = "" |
-- L["Ctrl"] = "" |
-- L["Daily"] = "" |
-- L["Daily Quest Discovered"] = "" |
-- L["Debug"] = "" |
-- L["Disable"] = "" |
-- L["Disable Gold Pop-up"] = "" |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests auto turn-in status in text."] = "" |
-- L["Enabled"] = "" |
-- L["Enable/Disable debug mode."] = "" |
-- L["Enable/Disable the addon."] = "" |
-- L["Enables Auto Turn-in for %s tagged quests."] = "" |
-- L["Force"] = "" |
-- L["General"] = "" |
-- L["Gossip Window"] = "" |
-- L["[Left-Click] to toggle the quest window"] = "" |
-- L["Minimap Icon"] = "" |
-- L["Show an icon on the Minimap that will open the options menu."] = "" |
-- L["Multiple Rewards"] = "" |
-- L["None"] = "" |
-- L["Normal"] = "" |
-- L["Note: The modifier 'None' refers to when no modifier is being held. Setting the modifier to 'Disable' disables the option."] = "" |
-- L["Quest Pop-ups"] = "" |
-- L["Quest Rewards"] = "" |
-- L["Quests"] = "" |
-- L["Quest Tags"] = "" |
-- L["Quick Info"] = "" |
-- L["Repeatable"] = "" |
-- L["Repeatable Quest Discovered"] = "" |
-- L["Replace Gossip Icons"] = "" |
-- L["Replaces the default gossip icons with color coded versions."] = "" |
-- L["[Right-Click] to toggle the options menu"] = "" |
-- L["Selection Modifiers"] = "" |
-- L["Shift"] = "" |
-- L["Show an icon on the Minimap."] = "" |
-- L["Single Reward"] = "" |
-- L["Special"] = "" |
-- L["Sticky Turn-in"] = "" |
-- L["Suspend"] = "" |
-- L["The [new day] begins in %s"] = "" |
-- L["Toggles 'Auto Turn-in' for this quest."] = "" |
-- L["Toggle this quest's state."] = "" |
-- L["Turn-in sequences will run to completion once they've been started regardless of its modifier's status."] = "" |
-- L["Use this modifier to Auto Turn-in %s quests."] = "" |
-- L["Use this modifier to forcibly Auto Turn-in any quest. Overrides all settings."] = "" |
-- L["Use this modifier to suspend the Auto Turn-in process."] = "" |
]] local L = LibStub("AceLocale-3.0"):NewLocale("EasyDaily_Base", "koKR"); if not L then return end |
-- L["{Click} to open the options menu"] = "" |
-- L["Alt"] = "" |
-- L["Auto"] = "" |
-- L["Auto-Select rewards for quests with more than one reward."] = "" |
-- L["Auto-Select rewards for quests with one or less reward."] = "" |
-- L["Auto Turn-in"] = "" |
-- L["Auto Turn-in Text"] = "" |
-- L["Available"] = "" |
-- L["Battleground"] = "" |
-- L["Complete"] = "" |
-- L["Completed [%s] of [%s] dailies"] = "" |
-- L["Ctrl"] = "" |
-- L["Daily"] = "" |
-- L["Daily Quest Discovered"] = "" |
-- L["Debug"] = "" |
-- L["Disable"] = "" |
-- L["Disable Gold Pop-up"] = "" |
-- L["Disable PvP Pop-up"] = "" |
-- L["Disables the confirmation pop-up that appears when accepting a daily quest that flags you for pvp."] = "" |
-- L["Disables the confirmation pop-up that appears when completing a daily quest that requires gold."] = "" |
-- L["Displays a quests auto turn-in status in text."] = "" |
-- L["Enabled"] = "" |
-- L["Enable/Disable debug mode."] = "" |
-- L["Enable/Disable the addon."] = "" |
-- L["Enables Auto Turn-in for %s tagged quests."] = "" |
-- L["Force"] = "" |
-- L["General"] = "" |
-- L["Gossip Window"] = "" |
-- L["[Left-Click] to toggle the quest window"] = "" |
-- L["Minimap Icon"] = "" |
-- L["Show an icon on the Minimap that will open the options menu."] = "" |
-- L["Multiple Rewards"] = "" |
-- L["None"] = "" |
-- L["Normal"] = "" |
-- L["Note: The modifier 'None' refers to when no modifier is being held. Setting the modifier to 'Disable' disables the option."] = "" |
-- L["Quest Pop-ups"] = "" |
-- L["Quest Rewards"] = "" |
-- L["Quests"] = "" |
-- L["Quest Tags"] = "" |
-- L["Quick Info"] = "" |
-- L["Repeatable"] = "" |
-- L["Repeatable Quest Discovered"] = "" |
-- L["Replace Gossip Icons"] = "" |
-- L["Replaces the default gossip icons with color coded versions."] = "" |
-- L["[Right-Click] to toggle the options menu"] = "" |
-- L["Selection Modifiers"] = "" |
-- L["Shift"] = "" |
-- L["Show an icon on the Minimap."] = "" |
-- L["Single Reward"] = "" |
-- L["Special"] = "" |
-- L["Sticky Turn-in"] = "" |
-- L["Suspend"] = "" |
-- L["The [new day] begins in %s"] = "" |
-- L["Toggles 'Auto Turn-in' for this quest."] = "" |
-- L["Toggle this quest's state."] = "" |
-- L["Turn-in sequences will run to completion once they've been started regardless of its modifier's status."] = "" |
-- L["Use this modifier to Auto Turn-in %s quests."] = "" |
-- L["Use this modifier to forcibly Auto Turn-in any quest. Overrides all settings."] = "" |
-- L["Use this modifier to suspend the Auto Turn-in process."] = "" |
--[[ |
Desc: |
Info: $Id: tracking.lua 17 2009-05-02 03:59:49Z draake $ |
Info: $Id: tracking.lua 20 2009-05-04 00:39:58Z draake $ |
]] |
local _G = _G |
return |
end |
local handler, isNew = self:GetHandler("quest", questTitle, true) |
local h, isNew = self:GetHandler("quest", questTitle, true) |
if isNew then |
self:Display(L["Repeatable Quest Discovered"], questTitle) |
end |
self:Debug(handler._data) |
local zone = self:GetLocation() |
handler:SetVal("type", "repeat") |
handler:SetVal("tag", "normal") |
handler:SetVal("header", zone) |
h:SetVal("type", "repeat") |
h:SetVal("tag", "normal") |
h:SetVal("header", zone) |
--~ for oID = 1, GetNumQuestItems(), 1 do |
--~ local itemName, itemID = self:ParseItemLink( GetQuestItemLink("required", oID) ) |
[GROUP] = "group", |
[LFG_TYPE_DUNGEON] = "dungeon", |
[RAID] = "raid", |
[LFG_TYPE_HEROIC_DUNGEON] = "heroic", |
[DUNGEON_DIFFICULTY2] = "heroic", |
[PVP] = "pvp", |
[ELITE] = "elite", |
} |
local index = self:ParseQuestLink( GetQuestLink(i) ) |
tempLog[index] = {} |
tempLog[index].name = logName |
tempLog[index].tag = ( questTag and TagTextToOpt[questTag] ) or "normal" |
if questTag then |
tempLog[index].tag = TagTextToOpt[questTag] |
else |
tempLog[index].tag = "normal" |
end |
tempLog[index].header = tempHeader |
tempLog[index].daily = isDaily |
tempLog[index].complete = isComplete |
if v.daily then |
local handler, isNew = self:GetHandler("quest", index, true) |
local h, isNew = self:GetHandler("quest", index, true) |
if isNew then |
if isNew and self.vars.startup then |
self:Display(L["Daily Quest Discovered"], v.name) |
end |
handler:SetVal("name", v.name) |
handler:SetVal("type", v.daily and "daily" or "normal") |
handler:SetVal("tag", v.tag) |
handler:SetVal("header", v.header) |
h:SetVal("name", v.name) |
h:SetVal("type", v.daily and "daily" or "normal") |
h:SetVal("tag", v.tag) |
h:SetVal("header", v.header) |
--~ for j, k in pairs(v.obj) do |
--~ handler:SetData("obj", j, "name", k.name or k.text) |
CollapseQuestHeader(v) |
end |
if not self.vars.startup then |
self.vars.startup = true |
end |
self:RegisterEvent("QUEST_LOG_UPDATE") |
end |
end |
function EasyDaily:RecordQuestComplete(name) |
local handler = self:GetHandler("quest", name) |
if handler and handler.__data.global.type == "daily" then |
local h = self:GetHandler("quest", name) |
if h and h:GetVal("type") == "daily" then |
local resetDate, timeLeft = self:GetDailyResetDate() |
handler:SetVal("reset", resetDate) |
handler:SetVal("time", self:GetTime()) |
handler:SetVal("done", handler:SetVal("done") + 1) |
h:SetVal("reset", resetDate) |
h:SetVal("time", self:GetTime()) |
h:SetVal("done", h:GetVal("done") + 1) |
end |
end |
------------------------------------------------------------------------ |
r21 | draake | 2009-05-04 00:41:48 +0000 (Mon, 04 May 2009) | 1 line |
Changed paths: |
A /tags/v2.1-beta (from /trunk:20) |
Tagging as v2.1-beta |
------------------------------------------------------------------------ |
r20 | draake | 2009-05-04 00:39:58 +0000 (Mon, 04 May 2009) | 3 lines |
Changed paths: |
M /trunk/EasyDaily.toc |
M /trunk/core.lua |
M /trunk/database.lua |
M /trunk/locales/enUS.lua |
M /trunk/options.lua |
M /trunk/scripts/Strings.lua |
M /trunk/tracking.lua |
M /trunk/turnin.lua |
Updated locale to use WoW global strings when possible. |
Fixed quest greeting turn ins. |
More work on the new database system. |
------------------------------------------------------------------------ |
r18 | draake | 2009-05-02 04:10:33 +0000 (Sat, 02 May 2009) | 1 line |
Changed paths: |
M /trunk/core.lua |
Version text fix |
------------------------------------------------------------------------ |
r17 | draake | 2009-05-02 03:59:49 +0000 (Sat, 02 May 2009) | 1 line |
Changed paths: |
M /trunk/.pkgmeta |
M /trunk/EasyDaily.toc |
M /trunk/core.lua |
A /trunk/database.lua |
M /trunk/inventory.lua |
M /trunk/locales/enUS.lua |
M /trunk/options.lua |
M /trunk/scripts/Babelfish.lua |
M /trunk/scripts/Strings.lua |
A /trunk/textures |
A /trunk/textures/Gossip-Icons |
A /trunk/textures/Gossip-Icons/DailyActive.blp |
A /trunk/textures/Gossip-Icons/DailyAvailable.blp |
A /trunk/textures/Gossip-Icons/DailyDisableActive.blp |
A /trunk/textures/Gossip-Icons/DailyDisableAvailable.blp |
A /trunk/textures/Gossip-Icons/DailyEnableActive.blp |
A /trunk/textures/Gossip-Icons/DailyEnableAvailable.blp |
A /trunk/textures/Gossip-Icons/GreyActive.blp |
A /trunk/textures/Gossip-Icons/GreyDisableActive.blp |
A /trunk/textures/Gossip-Icons/GreyEnableActive.blp |
A /trunk/textures/Gossip-Icons/NormalActive.blp |
A /trunk/textures/Gossip-Icons/NormalAvailable.blp |
A /trunk/textures/Gossip-Icons/NormalDisableActive.blp |
A /trunk/textures/Gossip-Icons/NormalDisableAvailable.blp |
A /trunk/textures/Gossip-Icons/NormalEnableActive.blp |
A /trunk/textures/Gossip-Icons/NormalEnableAvailable.blp |
M /trunk/tracking.lua |
M /trunk/turnin.lua |
D /trunk/util.lua |
A /trunk/utility.lua (from /trunk/util.lua:16) |
beta commit |
------------------------------------------------------------------------ |
r16 | draake | 2009-04-03 00:57:19 +0000 (Fri, 03 Apr 2009) | 5 lines |
Changed paths: |
M /trunk/.pkgmeta |
M /trunk/EasyDaily.toc |
M /trunk/core.lua |
D /trunk/guid.lua |
M /trunk/options.lua |
M /trunk/tracking.lua |
M /trunk/turnin.lua |
M /trunk/util.lua |
N: Implemented data registration system. |
N: Records relevant NPC locations. |
N: Records repeatable quest item requirements. |
N: Records daily quest data (id, name, objectives, etc). |
C: Revised the way the addon version is displayed. |
------------------------------------------------------------------------ |
r15 | draake | 2009-03-30 02:18:14 +0000 (Mon, 30 Mar 2009) | 3 lines |
Changed paths: |
M /trunk |
M /trunk/core.lua |
M /trunk/inventory.lua |
M /trunk/turnin.lua |
M /trunk/util.lua |
N: Quest requirements for repeatable quests are now learned. |
N: Added table utility functions. |
C: Experimenting with repo variables. |
------------------------------------------------------------------------ |
--[[ |
Desc: |
Info: $Id: database.lua 17 2009-05-02 03:59:49Z draake $ |
Info: $Id: database.lua 20 2009-05-04 00:39:58Z draake $ |
]] |
local _G = _G |
-- DB Querying |
-------------------------------------------------------------------------------------------------- |
-- name, index, questType, questTag, objective, side, enable = EasyDaily:GetQuestHandlerInfo(name) |
function EasyDaily:GetQuestHandlerInfo(handler) |
if handler and handler._type == "quest" then |
local g = handler._data.global |
return g.name, g.index, g.type, g.tag, g.obj, g.side, g.enable, g.header |
-- name, index, questType, questTag, header, side, enable = EasyDaily:GetQuestHandlerInfo(name) |
function EasyDaily:GetQuestBaseInfo(index) |
if not index then return end |
local h = self:GetHandler("quest", index) |
if h then |
return h:GetVal("name"), h:GetVal("index"), h:GetVal("type"), h:GetVal("tag"), h:GetVal("header"), h:GetVal("side"), h:GetVal("enable") |
end |
end |
function EasyDaily:GetQuestResetInfo(index) |
local handler = self:GetHandler("quest", index) |
if handler then |
local c = handler._data.char |
return c.reset, c.time, c.done |
if not index then return end |
local h = self:GetHandler("quest", index) |
if h then |
return h:GetVal("reset"), h:GetVal("time"), h:GetVal("done") |
end |
end |
function EasyDaily:GetQuestInfo(index) |
return self:GetQuestHandlerInfo( self:GetHandler("quest", index) ) |
function EasyDaily:GetQuestState(index) |
if not index then return end |
local h = self:GetHandler("quest", index) |
return h and h:GetVal("enable") |
end |
function EasyDaily:QuestIsEnabled(title) |
local _, _, _, _, _, _, enable = self:GetQuestInfo(title) |
return enable |
function EasyDaily:GetQuestObjective() |
end |
function EasyDaily:ToggleQuestState(title) |
local t = self:GetQuestTableByName(title) |
if t then |
self:Debug("ToggleQuestState", title) |
t.disabled = not t.disabled |
self:RefreshGossipOrQuestFrame() |
return t.disabled |
function EasyDaily:ToggleQuestState(index) |
if not index then return end |
local h = self:GetHandler("quest", index) |
if h then |
local newState = not h:GetVal("enable") |
h:SetVal("enable", newState) |
return newState |
end |
end |
-- Data Handlers |
-------------------------------------------------------------------------------------------------- |
local handlerVals = { |
name = { values = { db = "global", type = "string" }, mixins = { "SetVal", "GetVal", "Refresh" } }, |
enable = { values = { db = "global", type = "boolean"}, default = true, mixins = { "SetVal", "GetVal", "Refresh" } }, |
index = { values = { db = "global", type = "number" }, mixins = { "SetVal", "GetVal", "Refresh" } }, |
type = { values = { db = "global", type = "string" }, mixins = { "SetVal", "GetVal", "Refresh" } }, |
tag = { values = { db = "global", type = "string" }, mixins = { "SetVal", "GetVal", "Refresh" } }, |
header = { values = { db = "global", type = "string" }, mixins = { "SetVal", "GetVal", "Refresh" } }, |
time = { values = { db = "char", type = "number" }, mixins = { "SetVal", "GetVal", "Refresh" } }, |
reset = { values = { db = "char", type = "number" }, mixins = { "SetVal", "GetVal", "Refresh" } }, |
done = { values = { db = "char", type = "number" }, default = 0, mixins = { "SetVal", "GetVal", "Refresh" } }, |
side = { values = { db = "global", type = "number" }, mixins = { "SetVal", "GetVal", "Refresh" } }, |
unit = { values = { db = "global" }, key = "_unit", mixins = { "SetUnit", "GetUnit", "DelUnit", "Refresh" } }, |
obj = { values = { db = "global" }, key = "_obj", mixins = { "SetObj", "SetObj", "Refresh" } }, |
coord = { values = { db = "global" }, key = "_coord", mixins = { "SetCoord", "GetCoord", "Refresh" } }, |
local handlerType = { |
quest = { |
values = { |
enable = { db = "global", type = "boolean", locale = nil, default = true, protect = nil }, |
type = { db = "global", type = "string", locale = nil, default = nil, protect = nil }, |
tag = { db = "global", type = "string", locale = nil, default = nil, protect = nil }, |
header = { db = "global", type = "string", locale = true, default = nil, protect = nil }, |
side = { db = "global", type = "number", locale = nil, default = nil, protect = nil }, |
reward = { db = "char", type = "number", locale = nil, default = nil, protect = nil }, |
time = { db = "char", type = "number", locale = nil, default = 0, protect = nil }, |
reset = { db = "char", type = "number", locale = nil, default = 0, protect = nil }, |
done = { db = "char", type = "number", locale = nil, default = 0, protect = nil }, |
}, |
objects = { |
unit = { db = "global", key = "_unit", mixins = { "SetUnit", "GetUnit", "DelUnit" } }, |
obj = { db = "global", key = "_obj", mixins = { "SetObj", "SetObj" } }, |
}, |
}, |
unit = { |
values = { |
type = { db = "global", type = "string", locale = nil, default = nil, protect = nil }, |
side = { db = "global", type = "number", locale = nil, default = nil, protect = nil }, |
}, |
objects = { |
coord = { db = "global", key = "_coord", mixins = { "SetCoord", "GetCoord" } }, |
}, |
}, |
item = { |
values = {}, |
objects = { |
unit = { db = "global", key = "_unit", mixins = { "SetUnit", "GetUnit", "DelUnit" } }, |
}, |
}, |
} |
local handlerSets = { |
quest = { "name", "index", "enable", "type", "tag", "header", "time", "reset", "done", "unit", "obj" }, |
unit = { "name", "index", "type", "side", "coord" }, |
item = { "name", "index", "unit" }, |
local defaultValues = { |
htype = { db = "global", type = "string", locale = nil, default = nil, protect = true }, |
name = { db = "global", type = "string", locale = true, default = nil, protect = true }, |
index = { db = "global", type = "number", locale = nil, default = nil, protect = true }, |
} |
local defaultMixins = { "Delete", "Refresh", "SetVal", "GetVal" } |
local setMixins = { |
SetUnit = function(this, h) |
assert(handler, "Invalid arguments for SetUnit") |
assert(handler, "SetUnit") |
local t, i = this._unit, nil |
for k = 1, #t, 1 do |
if t[k] == h._index then |
if t[k] == h._hindex then |
i = k; break |
end |
end |
end, |
GetUnit = function(this) |
return unpack(this._children.unit) |
return this._unit |
end, |
DelUnit = function(this, index) |
assert(index, "Invalid arguments for DelUnit") |
assert(index, "DelUnit") |
local t, i = this._unit, nil |
for k = 1, #t, 1 do |
if t[k] == index then |
end, |
SetCoord = function(this, zone, x, y, dl) |
assert(zone and x and y, "Invalid arguments for SetCoord") |
assert(zone and x and y, "SetCoord") |
if type(this._coord[zone]) ~= "table" then this._coord[zone] = {}; end |
local t, i = this._coord[zone], nil |
for k = 1, #t, 1 do |
return this._coord |
end, |
SetVal = function(this, key, value) |
if type(key) ~= nil and type(value) ~= nil and this._values[key] and this._values[key].type == type(value) then |
this._data[ this._values[key].db ][ key ] = value |
this:Refresh() |
return value |
else |
EasyDaily:Debug(key, value) |
error("Invalid key value for SetVal") |
SetVal = function(t, key, value) |
assert(type(key) ~= nil and t._data[key], "SetVal") |
if not EasyDaily.db[ t._data[key].db ].data[ t._hindex ] then |
EasyDaily.db[ t._data[key].db ].data[ t._hindex ] = {} |
end |
local db = EasyDaily.db[ t._data[key].db ].data[ t._hindex ] |
if t._data[key].type == type(value) then |
if t._data[key].locale then |
local locale = GetLocale() |
if not db[key] then |
db[key] = {} |
end |
if ( not db[key][locale] ) or ( not t._data[key].protect ) then |
if value == t._data[key].default then |
db[key][locale] = nil |
else |
db[key][locale] = value |
end |
end |
else |
if ( not db[key] ) or ( not t._data[key].protect ) then |
if value == t._data[key].default then |
db[key] = nil |
else |
db[key] = value |
end |
end |
end |
end |
end, |
GetVal = function(this, key) |
if key and this._values[key] then |
return this._data[ this._values[key].db ][ key ] |
GetVal = function(t, key) |
assert(type(key) ~= nil and t._data[key], "GetVal") |
local db = EasyDaily.db[ t._data[key].db ].data[ t._hindex ] |
if t._data[key].locale then |
local locale = GetLocale() |
if db and db[key] and type(db[key][locale]) ~= "nil" then |
return db[key][locale] |
else |
return t._data[key].default |
end |
else |
error("Invalid key value for GetVal") |
if db and type(db[key]) ~= "nil" then |
return db[key] |
else |
return t._data[key].default |
end |
end |
end, |
} |
function EasyDaily:ResetDatabase() |
local locale = GetLocale() |
self.db.global.data[locale] = {} |
self.db.char.data[locale] = {} |
self.db.global.data = {} |
self.db.profile.data = {} |
self.db.char.data = {} |
self.handlers = {} |
end |
end |
function EasyDaily:DeleteHandler(h) |
if type(h) == "table" and h._index then |
if this._type == "unit" then |
for i, v in pairs(self.handlers) do |
if v.DelUnit then |
v:DelUnit(this._index) |
end |
end |
end |
self.db.global.data[h._index] = false |
self.db.char.data[h._index] = nil |
self.handlers[h._index] = nil |
if type(h) == "table" and h._htype then |
self.db.global.data[h._hindex] = nil |
self.db.char.data[h._hindex] = nil |
self.handlers[h._hindex] = nil |
for i in pairs(h) do h[i] = nil end |
end |
end |
function EasyDaily:GetHandler(kind, index, create) |
assert(kind and ( type(index) == "number" or type(index) == "string" ), "GetHandler") |
for i, v in pairs(self.handlers) do |
if kind == v._data.global.handler and ( ( type(index) == "number" and index == v._data.global.index ) or ( type(index) == "string" and index == v._data.global.name ) ) then |
if kind == v:GetVal("htype") and ( ( type(index) == "number" and index == v:GetVal("index") ) or ( type(index) == "string" and index == v:GetVal("name") ) ) then |
return v |
end |
end |
return getHandler |
end |
local locale = GetLocale() |
-- Create data namespace |
local n = 1 |
while self.db.global.data[n] do |
n = n + 1 |
end |
self.db.global.data[n] = {} |
local x, n = #self.db.global.data[locale], nil |
if x > 0 then |
for i = 1, x + 1, 1 do |
if not self.db.global.data[locale][i] then |
n = i; break |
end |
end |
else |
n = 1 |
-- Create and set handler |
self.handlers[n] = self:BuildHandler(kind, n) |
self.handlers[n]:SetVal("htype", kind) |
if type(index) == "number" then |
self.handlers[n]:SetVal("index", index) |
elseif type(index) == "string" then |
self.handlers[n]:SetVal("name", index) |
end |
return self.handlers[n] |
end |
function EasyDaily:BuildHandler(kind, n) |
assert(n and handlerType[kind], "BuildHandler") |
local handler = {} |
if not self.db.global.data[locale] then |
self.db.global.data[locale] = {} |
handler._hindex = n |
for _, v in pairs(defaultMixins) do |
if not handler[v] then |
handler[v] = setMixins[v] |
end |
end |
if not self.db.char.data[locale] then |
self.db.char.data[locale] = {} |
end |
self.db.global.data[locale][n] = {} |
self.db.char.data[locale][n] = {} |
handler._data = {} |
self.handlers[n] = handler |
for i, v in pairs(defaultValues) do |
handler._data[i] = v |
end |
if handlerSets[kind] then |
handler._index = n |
handler._type = kind |
handler._data = { |
global = self.db.global.data[locale][n], |
char = self.db.char.data[locale][n], |
} |
handler._data.global.handler = kind |
if type(index) == "number" then |
handler._data.global.index = index |
elseif type(index) == "string" then |
print(1) |
handler._data.global.name = index |
end |
for _, v in pairs(handlerSets[kind]) do |
for _, k in pairs(handlerVals[v].mixins) do |
for i, v in pairs(handlerType[kind].values) do |
handler._data[i] = v |
end |
for i, v in pairs(handlerType[kind].objects) do |
for _, k in pairs(v.mixins) do |
if not handler[k] then |
handler[k] = setMixins[k] |
end |
if handlerVals[v].key then |
local db = handlerVals[v].values.db |
if not handler._data[db][v] then |
handler._data[db][v] = {} |
end |
handler[ handlerVals[v].key ] = handler._data[db][v] |
else |
if not handler._values then |
handler._values = {} |
end |
handler._values[v] = handlerVals[v].values |
end |
if handlerVals[v].default then |
handler._data[ handlerVals[v].values.db ][v] = handlerVals[v].default |
end |
end |
return handler |
if not EasyDaily.db[ v.db ].data[n][i] then |
EasyDaily.db[ v.db ].data[n][i] = {} |
end |
handler[ v.key ] = EasyDaily.db[ v.db ].data[n][i] |
end |
return handler |
end |
function EasyDaily:InitHandlers() |
self.handlers = {} |
local locale = GetLocale() |
for i, v in pairs(self.db.global.data[locale]) do |
for n, v in pairs(self.db.global.data) do |
if v then |
self.handlers[i] = {} |
local handler = self.handlers[i] |
local kind = v.handler |
if handlerSets[kind] then |
handler._index = n |
handler._type = kind |
handler._data = { |
global = v, |
char = self.db.char.data[locale][i], |
} |
for _, v in pairs(handlerSets[kind]) do |
for _, k in pairs(handlerVals[v].mixins) do |
handler[k] = setMixins[k] |
end |
if handlerVals[v].key then |
local db = handlerVals[v].values.db |
if not handler._data[db][v] then |
handler._data[db][v] = {} |
end |
handler[ handlerVals[v].key ] = handler._data[db][v] |
else |
if not handler._values then |
handler._values = {} |
end |
handler._values[v] = handlerVals[v].values |
end |
end |
end |
self.handlers[n] = self:BuildHandler( v.htype, n ) |
end |
end |
end |
-------------------------------------------------------------------------------------------------- |
## Notes: Daily Quest Routine Optimizer! |
## Authors: Draake |
## OptionalDeps: Ace3, LibDBIcon-1.0, LibGratuity-3.0, LibAbacus-3.0, LibTourist-3.0, Babble-Faction-3.0, LibBabble-Zone-3.0 |
## SavedVariables: EasyDailyDB |
## X-Curse-Packaged-Version: v2.0-beta |
## X-Curse-Project-Name: EasyDaily 2.0 |
## SavedVariables: EasyDaily_DB |
## X-Curse-Packaged-Version: v2.1-beta |
## X-Curse-Project-Name: EasyDaily |
## X-Curse-Project-ID: easydaily |
## X-Curse-Repository-ID: wow/easydaily/mainline |
--[[ |
Desc: |
Info: $Id: core.lua 18 2009-05-02 04:10:33Z draake $ |
Info: $Id: core.lua 20 2009-05-04 00:39:58Z draake $ |
]] |
local _G = _G |
-- Defaults |
-------------------------------------------------------------------------------------------------- |
-- Increasing this forces a database purse |
-- Increasing this forces a database purge |
local RESETDB = 0 |
local defaults = { |
mod_override = "alt", |
mod_suspend = "disable", |
purge = 0, |
mversion = 0, |
minimapIcon = {}, |
data = {}, |
reward = {}, |
}, |
return self:GetLoopTable(self.db.char, ...) |
end |
LFG_TYPE_NORMAL_DUNGEON = DUNGEON_DIFFICULTY1 .. " " .. LFG_TYPE_DUNGEON |
function EasyDaily:OnInitialize() |
self.db = LibStub("AceDB-3.0"):New("EasyDailyDB", defaults, "Default") |
self.db = LibStub("AceDB-3.0"):New("EasyDaily_DB", defaults, "Default") |
self.version = {} |
-- Version |
self.version.revision = tonumber("18") |
self.version.revision = tonumber("20") |
if self.version.revision then |
local vtext = "v2.0-beta" |
local vtext = "v2.1-beta" |
if string.find(vtext, "^r%d+$") then |
self.version.text = string.format("r%s-alpha", self.version.revision) |
else |
self.version.text = "SVN" |
end |
if self.version.major and ( self.db.profile.mversion < self.version.major ) then |
self.db:ResetDB("Default") |
--[[ |
if self.version.major then |
if self.db.profile.mversion and ( self.db.profile.mversion < self.version.major ) then |
self.db:ResetDB("Default") |
end |
self.db.profile.mversion = self.version.major |
end |
]] |
if ( self.db.profile.purge < RESETDB ) then |
if self.db.global.purge and ( self.db.global.purge < RESETDB ) then |
self:ResetDatabase() |
self:Print("Database reset to default.") |
self.db.profile.purge = RESETDB |
end |
self.db.profile.purge = RESETDB |
local locale = GetLocale() |
if not self.db.global.data[locale] then |
self.db.global.data[locale] = {} |
end |
if not self.db.char.data[locale] then |
self.db.char.data[locale] = {} |
end |
self:InitHandlers() |
self.tracker = { |
--[[ |
Desc: |
Info: $Id: options.lua 17 2009-05-02 03:59:49Z draake $ |
Info: $Id: options.lua 20 2009-05-04 00:39:58Z draake $ |
]] |
local _G = _G |
-- available, complete, repeatable, normal |
function EasyDaily:SetQuestOptionsTable(available, complete, repeatable) |
for i, h in pairs(self.handlers) do |
local name, index, questType, questTag, objective, side, enable, header = EasyDaily:GetQuestHandlerInfo(h) |
if name then |
if h:GetVal("htype") == "quest" then |
local name, questType, questTag, header, enable = h:GetVal("name"), h:GetVal("type"), h:GetVal("tag"), h:GetVal("header"), h:GetVal("enable") |
local t |
if ( questType == "daily" ) then |
if self:QuestCompleteToday(name) then |
elseif self.LibTourist:IsBattleground(header) then |
cat1 = L["Battleground"] |
cat2 = header |
elseif self.LibTourist:IsInstance(zone) then |
elseif self.LibTourist:IsInstance(header) then |
if questTag == "heroic" then |
cat1 = L["Heroic Dungeon"] |
cat1 = LFG_TYPE_HEROIC_DUNGEON |
cat2 = header |
else |
cat1 = L["Normal Dungeon"] |
cat1 = LFG_TYPE_NORMAL_DUNGEON |
cat2 = header |
end |
end |
width = "double", |
name = name, |
desc = L["Toggle this quest's state."], |
get = function(info) return enable end, |
set = function(info, value) h:SetVal("enable", not enable); self:RefreshGossipOrQuestFrame(); end, |
get = function(info) return h:GetVal("enable") end, |
set = function(info, value) h:SetVal("enable", value); self:RefreshGossipOrQuestFrame(); end, |
} |
local cat1key = sformat("c1-%s", cat1) |
name = L["Minimap Icon"], |
desc = L["Show an icon on the Minimap."], |
get = function() return not self.db.profile.minimapIcon.hide end, |
set = function(info, value) self.db.profile.minimapIcon.hide = not value; LDBIcon[value and "Show" or "Hide"](self, "self") end, |
set = function(info, value) self.db.profile.minimapIcon.hide = not value; LDBIcon[value and "Show" or "Hide"](self, "EasyDaily") end, |
disabled = function() return not LDBIcon end, |
}, |
resetall = { |
order = 3, |
type = "execute", |
hidden = function() return ( not self.db.profile.debug ) end, |
name = "Reset All", |
desc = "Resets everything to default.", |
func = function() self.db:ResetDB("Default"); self:ResetDatabase(); self.db.profile.debug = true; end, |
}, |
general = { |
order = 10, |
type = "group", |
tag_normal = { |
order = 1, |
type = "toggle", |
name = L["Normal"], |
desc = sformat(L["Enables Auto Turn-in for %s tagged quests."], L["Normal"]), |
name = DUNGEON_DIFFICULTY1, |
desc = sformat(L["Enables Auto Turn-in for %s tagged quests."], DUNGEON_DIFFICULTY1), |
get = getFunc, |
set = setFunc, |
}, |
tag_dungeon = { |
order = 4, |
type = "toggle", |
name = LFG_TYPE_DUNGEON, |
desc = sformat(L["Enables Auto Turn-in for %s tagged quests."], LFG_TYPE_DUNGEON), |
name = LFG_TYPE_NORMAL_DUNGEON, |
desc = sformat(L["Enables Auto Turn-in for %s tagged quests."], LFG_TYPE_NORMAL_DUNGEON), |
get = getFunc, |
set = setFunc, |
}, |
if not tooltip or not tooltip.AddLine then return end |
tooltip:AddLine("EasyDaily") |
tooltip:AddLine( self:ColorizePattern(L["[Left-Click] to toggle the quest window"], "%[(.-)%]", 1, 1, 0) ) |
--~ tooltip:AddLine( self:ColorizePattern(L["[Left-Click] to toggle the quest window"], "%[(.-)%]", 1, 1, 0) ) |
tooltip:AddLine( self:ColorizePattern(L["[Right-Click] to toggle the options menu"], "%[(.-)%]", 1, 1, 0) ) |
tooltip:AddLine(" ") |
--[[ |
Desc: |
Info: $Id: turnin.lua 17 2009-05-02 03:59:49Z draake $ |
Info: $Id: turnin.lua 20 2009-05-04 00:39:58Z draake $ |
]] |
local _G = _G |
if self:GetPVar("stickyturnin") and self.tracker.gossip[title] ~= nil then |
return self.tracker.gossip[title] |
end |
local found, _, questType, questTag, _, _, enabled = self:GetQuestInfo(title) |
local found, _, questType, questTag, _, _, enabled = self:GetQuestBaseInfo(title) |
if ( not found ) then |
return self:TypeIDActive("normal") |
end |
function EasyDaily:CanAdvanceAvailableQuest(title) |
if self:QuestEligibleForAdvancement(title) then |
local _, _, questType = self:GetQuestInfo(title) |
local _, _, questType = self:GetQuestBaseInfo(title) |
return ( questType ~= "repeat" ) or self:CanCompleteRepeatQuest(title) |
end |
end |
function EasyDaily:CanCompleteQuest(title) |
local _, _, questType = self:GetQuestInfo(title) |
local _, _, questType = self:GetQuestBaseInfo(title) |
if questType == "repeat" then |
return self:CanCompleteRepeatQuest(title) |
else |
end |
function EasyDaily:CanCompleteRepeatQuest(title) |
local _, _, questType, _, objective = self:GetQuestInfo(title) |
local _, _, questType = self:GetQuestBaseInfo(title) |
--~ local objective = self:GetQuestObjective(title) |
if ( questType == "repeat" ) and objective then |
local minimum |
for i, v in ipairs(objective) do |
local r = {} |
for n = 1, MAX_NUM_QUESTS, 1 do |
local b = _G["GossipTitleButton" .. n] |
local b = _G["QuestTitleButton" .. n] |
if b:IsShown() then |
local i = b:GetID() |
local title, isTrivial, isActive |
if b.type == "Available" then |
if b.isActive == 0 then |
title, isTrivial = GetAvailableTitle(i), IsAvailableQuestTrivial(i) |
if ( not refresh ) and ( not r.title ) then |
self:Debug("Checking Available Quest:", title) |
if self:CanAdvanceAvailableQuest(title) then |
self:Debug("Eligible Available Quest:", title) |
r.title = title |
r.active = index |
r.available = i |
end |
end |
elseif b.type == "Active" then |
elseif b.isActive == 1 then |
title, isTrivial, isActive = GetActiveTitle(i), IsActiveQuestTrivial(i), true |
if ( not refresh ) and ( not r.title ) then |
self:Debug("Checking Active Quest:", title) |
if self:CanAdvanceActiveQuest(title) then |
self:Debug("Eligible Active Quest:", title) |
r.title = title |
r.available = index |
r.active = i |
end |
end |
end |
b.title = title |
b.trivial = isTrivial |
-- Extra Gossip text |
if self:GetPVar("gossipstate") and self:QuestIsEnabled(title) then |
if self:GetPVar("gossipstate") and self:GetQuestState(title) then |
b:SetFormattedText("%s (%s)", b:GetText(), autoText) |
end |
-- Icon Settings |
if r.active then |
self:Debug("Selecting Active Quest:", r.title) |
SelectActiveQuest(s.active) |
SelectActiveQuest(r.active) |
elseif r.available then |
self:Debug("Selecting Available Quest:", r.title) |
SelectAvailableQuest(s.available) |
SelectAvailableQuest(r.available) |
end |
end |
b.title = title |
b.trivial = isTrivial |
-- Extra Gossip text |
if self:GetPVar("gossipstate") and self:QuestIsEnabled(title) then |
if self:GetPVar("gossipstate") and self:GetQuestState(title) then |
b:SetFormattedText("%s (%s)", b:GetText(), autoText) |
end |
-- Icon Settings |
self:RegisterRepeatableQuest() |
end |
if self:QuestEligibleForAdvancement(title) then |
print(isRepeat, self.tracker.gossip.parent) |
if IsQuestCompletable() then |
CompleteQuest() |
elseif isRepeat and self.tracker.gossip.parent then |
function EasyDaily:GetQuestReward(option) |
local title = GetTitleText() |
if ( GetNumQuestChoices() > 0 ) and self:GetPVar("multiple") and self:QuestIsEnabled(title) then |
if ( option > 0 ) and self:GetPVar("multiple") and self:GetQuestState(title) then |
self:Debug("Storing reward option", title, option) |
self.db.profile.reward[title] = option |
end |
function EasyDaily:SetGossipIcon(icon, title, isActive) |
local found, _, questType, questTag, _, _, questEnabled = self:GetQuestInfo(title) |
local _, _, questType, questTag, _, _, questEnabled = self:GetQuestBaseInfo(title) |
local iconColor |
if ( isActive or questType == "repeat" ) and ( not self:CanCompleteQuest(title) ) then |
end |
function EasyDaily:QuestCheckButtonOnShow(b) |
local found, _, _, _, _, _, enabled = self:GetQuestInfo( GetTitleText() ) |
if found then |
local enable = self:GetQuestState( GetTitleText() ) |
if type(enable) ~= "nil" then |
b:Enable() |
b:SetChecked(enabled) |
b:SetChecked(enable) |
b.text:SetTextColor(1, 0.8, 0, 1) |
else |
b:SetChecked(nil) |