Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions core/localization/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ L['options_open_settings_panel'] = 'Einstellungsmenü öffnen ...'
L['options_open_world_map'] = 'Weltkarte öffnen'
L['options_open_world_map_desc'] = 'Öffnet diese Zone auf der Weltkarte.'

L['achievement_rewards_off_note'] = 'Erfolgsbelohnungen werden nicht angezeigt, die meisten Punkte sind deshalb versteckt.\n' -- @Dathwada please review

------------------------------------ ICONS ------------------------------------

L['options_icon_settings'] = 'Symboleinstellungen'
Expand Down Expand Up @@ -186,6 +188,8 @@ L['options_restore_hidden_nodes_desc'] = 'Stellt alle Punkte wieder her, die üb

L['options_rewards_settings'] = 'Belohnungen'
L['options_reward_types'] = 'Zeige Belohnungstypen'
L['options_achievement_rewards'] = 'Zeige Erfolgsbelohnungen'
L['options_achievement_rewards_desc'] = 'Zeige Erfolgsbelohnungen in Tooltips an und verfolge ihren Sammlungsstatus.'
L['options_manuscript_rewards'] = 'Zeige Drachenwächtermanuskriptbelohnungen'
L['options_manuscript_rewards_desc'] = 'Zeige Drachenwächtermanuskriptbelohnungen in Tooltips an und verfolge ihren Sammlungsstatus.'
L['options_mount_rewards'] = 'Zeige Reittierbelohnungen'
Expand Down
4 changes: 4 additions & 0 deletions core/localization/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ L['options_open_settings_panel'] = 'Open Settings Panel ...'
L['options_open_world_map'] = 'Open World Map'
L['options_open_world_map_desc'] = 'Open this zone in the world map.'

L['achievement_rewards_off_note'] = 'Achievement Reward Tracking is off, therefore most Nodes will be hidden!\n'

------------------------------------ ICONS ------------------------------------

L['options_icon_settings'] = 'Icon Settings'
Expand Down Expand Up @@ -186,6 +188,8 @@ L['options_restore_hidden_nodes_desc'] = 'Restore all nodes hidden using the rig

L['options_rewards_settings'] = 'Rewards'
L['options_reward_types'] = 'Show reward types'
L['options_achievement_rewards'] = 'Show Achievement rewards'
L['options_achievement_rewards_desc'] = 'Display achievement rewards in tooltips and track their collected status.'
L['options_manuscript_rewards'] = 'Show drakewatcher manuscript rewards'
L['options_manuscript_rewards_desc'] = 'Display drakewatcher manuscript rewards in tooltips and track their collected status.'
L['options_mount_rewards'] = 'Show mount rewards'
Expand Down
4 changes: 4 additions & 0 deletions core/localization/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ L['options_open_settings_panel'] = 'Abrir el Panel de Preferencias...'
L['options_open_world_map'] = 'Abrir el Mapa del Mundo'
L['options_open_world_map_desc'] = 'Abre esta zona en el mapa del mundo.'

L['achievement_rewards_off_note'] = 'El Seguimiento de Recompensas para Logros está desactivado, por lo tanto, ¡la mayoría de los nodos estarán ocultos!\n'

------------------------------------ ICONS ------------------------------------

L['options_icon_settings'] = 'Configuración de Iconos'
Expand Down Expand Up @@ -186,6 +188,8 @@ L['options_restore_hidden_nodes_desc'] = 'Vuelve a mostrar todos los nodos ocult

L['options_rewards_settings'] = 'Recompensas'
L['options_reward_types'] = 'Mostrar tipos de recompensas'
L['options_achievement_rewards'] = 'Mostrar recompensas de logros'
L['options_achievement_rewards_desc'] = 'Muestra las recompensas de logros en las notas y rastrea el estado de si ha sido conseguida.'
L['options_manuscript_rewards'] = 'Mostrar las recompensas de los manuscritos de dracovigía'
L['options_manuscript_rewards_desc'] = 'Muestra las recompensas de los manuscritos de dracovigía en los tooltips y sigue si ya lo has coleccionado.'
L['options_mount_rewards'] = 'Mostrar recompensas de monturas'
Expand Down
4 changes: 4 additions & 0 deletions core/localization/esMX.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ L['options_open_settings_panel'] = nil
L['options_open_world_map'] = nil
L['options_open_world_map_desc'] = nil

L['achievement_rewards_off_note'] = nil

------------------------------------ ICONS ------------------------------------

L['options_icon_settings'] = 'Configuración de Íconos'
Expand Down Expand Up @@ -186,6 +188,8 @@ L['options_restore_hidden_nodes_desc'] = nil

L['options_rewards_settings'] = nil
L['options_reward_types'] = nil
L['options_achievement_rewards'] = nil
L['options_achievement_rewards_desc'] = nil
L['options_manuscript_rewards'] = nil
L['options_manuscript_rewards_desc'] = nil
L['options_mount_rewards'] = nil
Expand Down
4 changes: 4 additions & 0 deletions core/localization/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ L['options_open_settings_panel'] = 'Ouvrir le panneau de configuration'
L['options_open_world_map'] = 'Ouvrir la carte du monde'
L['options_open_world_map_desc'] = 'Ouvrir cette zone dans la carte du monde' -- Need review

L['achievement_rewards_off_note'] = 'Le suivi des récompenses de haut-faits est désactivé, par conséquent, la plupart des éléments seront cachés !\n'

------------------------------------ ICONS ------------------------------------

L['options_icon_settings'] = 'Paramètres des Icônes'
Expand Down Expand Up @@ -186,6 +188,8 @@ L['options_restore_hidden_nodes_desc'] = 'Restaure tous les nœuds cachés en ut

L['options_rewards_settings'] = 'Récompenses'
L['options_reward_types'] = 'Afficher les types de récompenses'
L['options_achievement_rewards'] = 'Afficher les récompenses des haut-faits'
L['options_achievement_rewards_desc'] = 'Afficher les récompenses des haut-faits dans les infobulles et suivre l\'état de leur acquisition.'
L['options_manuscript_rewards'] = 'Montrer les Manuscrits guette-drake en récompenses'
L['options_manuscript_rewards_desc'] = 'Afficher les Manuscrits guette-drake en récompenses dans les infobulles et suivre l\'état de leur acquisition.'
L['options_mount_rewards'] = 'Afficher les montures en récompense'
Expand Down
4 changes: 4 additions & 0 deletions core/localization/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ L['options_open_settings_panel'] = '설정창 열기'
L['options_open_world_map'] = '세계지도 열기'
L['options_open_world_map_desc'] = '세계지도에서 이 지역을 엽니다.'

L['achievement_rewards_off_note'] = nil

------------------------------------ ICONS ------------------------------------

L['options_icon_settings'] = '아이콘 설정'
Expand Down Expand Up @@ -186,6 +188,8 @@ L['options_restore_hidden_nodes_desc'] = '우클릭 메뉴에서 숨긴 지점

L['options_rewards_settings'] = '보상'
L['options_reward_types'] = '보상 종류 표시'
L['options_achievement_rewards'] = nil
L['options_achievement_rewards_desc'] = nil
L['options_manuscript_rewards'] = nil
L['options_manuscript_rewards_desc'] = nil
L['options_mount_rewards'] = '탈것 보상 표시'
Expand Down
4 changes: 4 additions & 0 deletions core/localization/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ L['options_open_settings_panel'] = 'Открыть панель настроек
L['options_open_world_map'] = 'Карта открытого мира'
L['options_open_world_map_desc'] = 'Открыть эту локацию на карте мира.'

L['achievement_rewards_off_note'] = nil

------------------------------------ ICONS ------------------------------------

L['options_icon_settings'] = 'Настройки значков'
Expand Down Expand Up @@ -186,6 +188,8 @@ L['options_restore_hidden_nodes_desc'] = 'Восстановите все скр

L['options_rewards_settings'] = 'Награды'
L['options_reward_types'] = 'Показать типы наград'
L['options_achievement_rewards'] = nil
L['options_achievement_rewards_desc'] = nil
L['options_manuscript_rewards'] = nil
L['options_manuscript_rewards_desc'] = nil
L['options_mount_rewards'] = 'Показать маунтов'
Expand Down
4 changes: 4 additions & 0 deletions core/localization/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ L['options_open_settings_panel'] = '打开设置面板…'
L['options_open_world_map'] = '打开世界地图'
L['options_open_world_map_desc'] = '打开此区域世界地图。'

L['achievement_rewards_off_note'] = nil

------------------------------------ ICONS ------------------------------------

L['options_icon_settings'] = '图标设置'
Expand Down Expand Up @@ -186,6 +188,8 @@ L['options_restore_hidden_nodes_desc'] = '使用右击菜单恢复全部隐藏

L['options_rewards_settings'] = '奖励'
L['options_reward_types'] = '显示奖励类型'
L['options_achievement_rewards'] = nil
L['options_achievement_rewards_desc'] = nil
L['options_manuscript_rewards'] = '显示观龙者手稿奖励'
L['options_manuscript_rewards_desc'] = '在提示中显示龙观察者手稿奖励并跟踪其收集状态。'
L['options_mount_rewards'] = '显示坐骑奖励'
Expand Down
4 changes: 4 additions & 0 deletions core/localization/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ L['options_open_settings_panel'] = '打開設定面板…'
L['options_open_world_map'] = '打開世界地圖'
L['options_open_world_map_desc'] = '在世界地圖中開啟此區域'

L['achievement_rewards_off_note'] = nil

------------------------------------ ICONS ------------------------------------

L['options_icon_settings'] = '圖示設定'
Expand Down Expand Up @@ -186,6 +188,8 @@ L['options_restore_hidden_nodes_desc'] = '恢復所有使用右鍵選單隱藏

L['options_rewards_settings'] = '獎勵'
L['options_reward_types'] = '顯示獎勵類型'
L['options_achievement_rewards'] = nil
L['options_achievement_rewards_desc'] = nil
L['options_manuscript_rewards'] = nil
L['options_manuscript_rewards_desc'] = nil
L['options_mount_rewards'] = '顯示坐騎獎勵'
Expand Down
8 changes: 8 additions & 0 deletions core/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ ns.options = {
name = L['options_rewards_settings'],
order = 10
},
show_achievement_rewards = {
type = 'toggle',
arg = 'show_achievement_rewards',
name = L['options_achievement_rewards'],
desc = L['options_achievement_rewards_desc'],
order = 11,
width = 'full'
},
show_manuscript_rewards = {
type = 'toggle',
arg = 'show_manuscript_rewards',
Expand Down
3 changes: 2 additions & 1 deletion core/rewards.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ function Spacer:Render(tooltip) tooltip:AddLine(' ') end
--------------------------------- ACHIEVEMENT ---------------------------------
-------------------------------------------------------------------------------

local Achievement = Class('Achievement', Reward)
local Achievement = Class('Achievement', Reward,
{display_option = 'show_achievement_rewards'})

local GetCriteriaInfo = function(id, criteria)
local results = {GetAchievementCriteriaInfoByID(id, criteria)}
Expand Down
22 changes: 17 additions & 5 deletions core/templates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function WorldMapOptionsButtonMixin:InitializeDropDown(level)

if level == 1 then
local current_group_type = nil
local achievements_menu_added = false
local achievement_menu_added = false
for i, group in ipairs(map.groups) do

-- Add a separator each time the group type changes
Expand All @@ -172,7 +172,7 @@ function WorldMapOptionsButtonMixin:InitializeDropDown(level)

if group:IsEnabled() and group:HasEnabledNodes(map) then
if group.type == ns.group_types.ACHIEVEMENT and
not achievements_menu_added then
not achievement_menu_added then
LibDD:UIDropDownMenu_AddButton({
text = ns.GetIconLink(236671, 12, 1, 0) .. ' ' ..
ACHIEVEMENTS,
Expand All @@ -182,7 +182,7 @@ function WorldMapOptionsButtonMixin:InitializeDropDown(level)
hasArrow = true,
value = 'achievements'
})
achievements_menu_added = true
achievement_menu_added = true
elseif group.type ~= ns.group_types.ACHIEVEMENT then
self:AddGroupButton(group, 1)
end
Expand Down Expand Up @@ -241,6 +241,18 @@ function WorldMapOptionsButtonMixin:InitializeDropDown(level)
})
elseif level == 2 then
if L_UIDROPDOWNMENU_MENU_VALUE == 'achievements' then
if not ns:GetOpt('show_achievement_rewards') then
LibDD:UIDropDownMenu_AddButton({
text = L['achievement_rewards_off_note'],
isNotRadio = true,
notCheckable = true,
notClickable = true,
keepShownOnClick = true
-- hasArrow = true,
-- value = 'rewards'
}, level)
LibDD:UIDropDownMenu_AddSeparator(level)
end
for i, group in ipairs(map.groups) do
if group.type == ns.group_types.ACHIEVEMENT and
group:IsEnabled() and group:HasEnabledNodes(map) then
Expand All @@ -249,8 +261,8 @@ function WorldMapOptionsButtonMixin:InitializeDropDown(level)
end
elseif L_UIDROPDOWNMENU_MENU_VALUE == 'rewards' then
for i, type in ipairs({
'manuscript', 'mount', 'pet', 'recipe', 'toy', 'transmog',
'all_transmog'
'achievement', 'manuscript', 'mount', 'pet', 'recipe', 'toy',
'transmog', 'all_transmog'
}) do
LibDD:UIDropDownMenu_AddButton({
text = L['options_' .. type .. '_rewards'],
Expand Down