Chame como
Conditions.talent.text(parent, message)
Registre a dependência Conditions.talent.text e depois chame-a por esse nome. Uma chamada com namespace não passa self: use uma chamada com dois-pontos ou passe o objeto você mesmo.
O que faz
Adds a full-width explanatory label to a talent condition editor.
Argumentos
| Nome | Tipo | O que faz |
|---|---|---|
parent | table | Condition widget group the control is added to. |
message | string | Text to show. |
Retornos
Nada.
Edições
As funções auxiliares integradas são registradas em todas as edições. O que muda é a API do jogo que elas leem; quando uma está ausente, a função auxiliar recorre a uma alternativa ou retorna nil com um motivo.
Não lê nenhuma API do jogo diretamente.
Como o addon a chama
- Talento (widget)
else text(parent,L["This client uses a different talent system. This reference is preserved but cannot be evaluated."]) end Conditions.talent.gridWidgettext(parent,L["This reference belongs to another talent layout. Selecting a talent explicitly replaces it; viewing does not convert it."])Conditions.talent.traitsWidgettext(parent,L["This reference belongs to another talent layout. Selecting a talent explicitly replaces it; viewing does not convert it."])Conditions.talent.treePickerelse text(parent,L['This client does not expose a Classic talent-tree layout. The saved tree reference is preserved.']) end
Código-fonte
Conditions/talent.lua, linha 127. Somente leitura no jogo; Duplicar cria uma cópia editável.
Conditions.talent.text(parent, message)
local label=addon:CreateConditionLabel();label:SetFullWidth(true);label:SetText(message);parent:AddChild(label)