View Single Post
08/04/14, 05:49 AM   #5
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by Deome View Post
I use moc() to get the name. Might help.

I.e.:

lua Code:
  1. elseif mouseOverControl:GetOwningWindow():GetName() == "ZO_SmithingTopLevel" then local Skill = mouseOverControl:GetOwningWindow():GetChild(1).name:GetText()
  2. if Skill == "BLACKSMITHING" then
  3. Skill = CRAFTING_TYPE_BLACKSMITHING
  4. elseif Skill == "CLOTHING" then
  5. Skill = CRAFTING_TYPE_CLOTHIER
  6. elseif Skill == "WOODWORKING" then
  7. Skill = CRAFTING_TYPE_WOODWORKING
OP wanted to get (localized) name from CRAFTING_TYPE constant.
If your code is supposed to tell you which crafting station you're at, you could find GetCraftingInteractionType() useful
  Reply With Quote