Originally Posted by Deome
I use moc() to get the name. Might help.
I.e.:
lua Code:
elseif mouseOverControl:GetOwningWindow():GetName() == "ZO_SmithingTopLevel" then local Skill = mouseOverControl:GetOwningWindow():GetChild(1).name:GetText() if Skill == "BLACKSMITHING" then Skill = CRAFTING_TYPE_BLACKSMITHING elseif Skill == "CLOTHING" then Skill = CRAFTING_TYPE_CLOTHIER elseif Skill == "WOODWORKING" then 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