Skip to content

Commit

Permalink
170 bug era enchanting uses old window (#171)
Browse files Browse the repository at this point in the history
* Duplicate Profession code and change to CraftFrame
* Update UI.lua
* Fix CraftFrame for Beast Training
* Fix favorite position
* Update ProfessionTwo.mixin.lua
  • Loading branch information
Karl-HeinzSchneider authored Aug 1, 2024
1 parent 36bc1ef commit 13f3211
Show file tree
Hide file tree
Showing 7 changed files with 1,463 additions and 1 deletion.
1 change: 1 addition & 0 deletions DragonflightUI.toc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ XML\Castbar.xml
XML\ConfigCategoryList.xml
XML\Config.xml
XML\Profession.xml
XML\ProfessionTwo.xml
XML\QuickKeybind.xml
XML\SettingsList.xml
XML\Talents.xml
Expand Down
12 changes: 12 additions & 0 deletions Localization/BlizzardData/Professions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ if locale == 'deDE' then

PROFESSIONS_COOKING = "Kochkunst";
PROFESSIONS_FISHING = "Angeln";

PROFESSIONS_POISON = "Gifte"
PROFESSIONS_BEAST = "Wildtierausbildung"
elseif locale == 'enUS' then
CHARACTER_PROFESSION_ALCHEMY = "Alchemy";
CHARACTER_PROFESSION_BLACKSMITHING = "Blacksmithing";
Expand All @@ -46,6 +48,7 @@ elseif locale == 'enUS' then
PROFESSIONS_FISHING = "Fishing";

PROFESSIONS_POISON = "Poisons"
PROFESSIONS_BEAST = "Beast Training"
elseif locale == 'esMX' or locale == 'esES' then
CHARACTER_PROFESSION_ALCHEMY = "Alquimia";
CHARACTER_PROFESSION_BLACKSMITHING = "Herrería";
Expand All @@ -64,6 +67,7 @@ elseif locale == 'esMX' or locale == 'esES' then
PROFESSIONS_FISHING = "Pesca";

PROFESSIONS_POISON = "Venenos"
PROFESSIONS_BEAST = "Doma de bestias"
elseif locale == 'frFR' then
CHARACTER_PROFESSION_ALCHEMY = "Alchimie";
CHARACTER_PROFESSION_BLACKSMITHING = "Forge";
Expand All @@ -82,6 +86,7 @@ elseif locale == 'frFR' then
PROFESSIONS_FISHING = "Pêche";

PROFESSIONS_POISON = "Poisons"
PROFESSIONS_BEAST = "Dressage des bêtes"
elseif locale == 'itIT' then
CHARACTER_PROFESSION_ALCHEMY = "Alchimia";
CHARACTER_PROFESSION_BLACKSMITHING = "Forgiatura";
Expand All @@ -100,6 +105,7 @@ elseif locale == 'itIT' then
PROFESSIONS_FISHING = "Pesca";

PROFESSIONS_POISON = "Poisons"
PROFESSIONS_BEAST = "Beast Training"
elseif locale == 'koKR' then
CHARACTER_PROFESSION_ALCHEMY = "연금술";
CHARACTER_PROFESSION_BLACKSMITHING = "대장기술";
Expand All @@ -118,6 +124,7 @@ elseif locale == 'koKR' then
PROFESSIONS_FISHING = "낚시";

PROFESSIONS_POISON = "독 조제"
PROFESSIONS_BEAST = "야수 조련"
elseif locale == 'ptBR' then
CHARACTER_PROFESSION_ALCHEMY = "Alquimia";
CHARACTER_PROFESSION_BLACKSMITHING = "Ferraria";
Expand All @@ -136,6 +143,7 @@ elseif locale == 'ptBR' then
PROFESSIONS_FISHING = "Pesca";

PROFESSIONS_POISON = "Venenos"
PROFESSIONS_BEAST = "Treinamento de Feras"
elseif locale == 'ruRU' then
CHARACTER_PROFESSION_ALCHEMY = "Алхимия";
CHARACTER_PROFESSION_BLACKSMITHING = "Кузнечное дело";
Expand All @@ -154,6 +162,7 @@ elseif locale == 'ruRU' then
PROFESSIONS_FISHING = "Рыбная ловля";

PROFESSIONS_POISON = "Яды"
PROFESSIONS_BEAST = "Дрессировка"
elseif locale == 'zhCN' then
CHARACTER_PROFESSION_ALCHEMY = "炼金术";
CHARACTER_PROFESSION_BLACKSMITHING = "锻造";
Expand All @@ -172,6 +181,7 @@ elseif locale == 'zhCN' then
PROFESSIONS_FISHING = "钓鱼";

PROFESSIONS_POISON = "毒药"
PROFESSIONS_BEAST = "训练野兽"
elseif locale == 'zhTW' then
CHARACTER_PROFESSION_ALCHEMY = "鍊金術";
CHARACTER_PROFESSION_BLACKSMITHING = "鍛造";
Expand All @@ -190,6 +200,7 @@ elseif locale == 'zhTW' then
PROFESSIONS_FISHING = "釣魚";

PROFESSIONS_POISON = "毒药"
PROFESSIONS_BEAST = "训练野兽"
end

--[[ First Aid 129
Expand Down Expand Up @@ -226,6 +237,7 @@ ProfessionNamesToSkillID[PROFESSIONS_COOKING] = 185
ProfessionNamesToSkillID[PROFESSIONS_FISHING] = 356

ProfessionNamesToSkillID[PROFESSIONS_POISON] = 666 -- custom
ProfessionNamesToSkillID[PROFESSIONS_BEAST] = 667 -- custom

function DragonflightUILocalizationData:GetSkillIDFromProfessionName(name)
return ProfessionNamesToSkillID[name]
Expand Down
3 changes: 2 additions & 1 deletion Mixin/Profession.mixin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,8 @@ end
function DFProfessionSearchBoxTemplateMixin:OnTextChanged()
-- print('DFProfessionSearchBoxTemplateMixin:OnTextChanged()')
SearchBoxTemplate_OnTextChanged(self);
frameRef:OnEvent('TRADE_SKILL_FILTER_UPDATE')
-- frameRef:OnEvent('TRADE_SKILL_FILTER_UPDATE')
self:GetParent():GetParent():OnEvent('TRADE_SKILL_FILTER_UPDATE')
end

function DFProfessionSearchBoxTemplateMixin:OnChar()
Expand Down
Loading

0 comments on commit 13f3211

Please sign in to comment.