HandyNotes: Visions of N'Zoth

HandyNotes: Visions of N'Zoth

4M Downloads

Display icons for the weekly events in Zaralek Cavern

Malechai opened this issue ยท 2 comments

commented

ADDON VERSION: v36

Describe the bug
Please bear with me this is my first time doing this :) Not a bug but a feature request. Could you please add icons for all the events in Zaralek Cavern? It would be helpful to track which ones have been completed for the week.

I'm sorry if I did this wrong

Screenshots
providing a screenshot as an example of what I mean. i had to install another mod to get this feature but would love to reduce back to just this one! thanks!
Screenshot 2023-05-08 195233

commented

just if we add this, here is a overview with quest ids for all the events
https://www.wowhead.com/guide/zaralek-cavern#zone-events

commented

Took a look at this, still need some cleanup but the icons show up. Yellow icons would fit the theme but they are hard to see on the map.

common.lua

ns.groups.ZONE_EVENT = Group('zone_event', 'peg_rd', {
    defaults = ns.GROUP_HIDDEN,
    type = ns.group_types.EXPANSION
})

localization/enUS.lua

L['zone_event'] = 'Zone Event'
L['options_icons_zone_event'] = 'Zone Event'
L['options_icons_zone_event_desc'] = 'Display locations for zone events.'

zones/zaralek_caverns.lua

local ZoneEvent = Class('ZoneEvent', ns.node.Node, {
	group = ns.groups.ZONE_EVENT,
	icon = 'peg_rd',
	scale = 1.3,
})

function ZoneEvent.getters:label()
	return C_QuestLog.GetTitleForQuestID(self.quest[1]) or UNKNOWN
end

map.nodes[44507490] = ZoneEvent({quest = 75612}) -- Cascades Calling
map.nodes[63004720] = ZoneEvent({quest = 75471}) -- Crystalline Survey
map.nodes[32104360] = ZoneEvent({quest = 75455}) -- Conspiracy of Flame
map.nodes[56606540] = ZoneEvent({quest = 75664}) -- Discordant Crystals
map.nodes[45008450] = ZoneEvent({quest = 75611}) -- Glimmerfish Before It's Gone
map.nodes[48102020] = ZoneEvent({quest = 75478}) -- Hungry Hungry Hydra
map.nodes[35405230] = ZoneEvent({quest = 75451}) -- Imperfect Balance
map.nodes[46602570] = ZoneEvent({quest = 75461}) -- Magmaclaw Matriarch
map.nodes[61707210] = ZoneEvent({quest = 75705}) -- Monument Maintenance
map.nodes[40204350] = ZoneEvent({quest = 75454}) -- Mortar Warfare
map.nodes[34304770] = ZoneEvent({quest = 75450}) -- Seismic Ceremony
map.nodes[57504890] = ZoneEvent({quest = 75222}) -- Shellfire
map.nodes[60605310] = ZoneEvent({quest = 75370}) -- Smellincense
map.nodes[44902080] = ZoneEvent({quest = 75494}) -- Strike the Colors
map.nodes[57705690] = ZoneEvent({quest = 75441}) -- Smelly Scramble
map.nodes[63905070] = ZoneEvent({quest = 75156}) -- Stress Express
map.nodes[45308320] = ZoneEvent({quest = 75624}) -- The Champion's Challenge
map.nodes[58206740] = ZoneEvent({quest = 74352}) -- Whirling Zephyr