Module:AbilityHints: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Use Data:Dictionary keys for hint tooltips instead of hardcoded English (with help from vergir-bot LLM) |
Support the "enhanced" iconbox state on manually placed hints (with help from vergir-bot LLM) |
||
| Line 27: | Line 27: | ||
disabled = "AbilityHintsInteractsNot", | disabled = "AbilityHintsInteractsNot", | ||
partial = "AbilityHintsInteractsPartial", | partial = "AbilityHintsInteractsPartial", | ||
enhanced = "AbilityHintsInteractsEnhanced", | |||
} | } | ||
| Line 88: | Line 89: | ||
dict_key = STATE_DICT_KEYS.partial | dict_key = STATE_DICT_KEYS.partial | ||
partial = true | partial = true | ||
elseif m.state == 'enhanced' then | |||
cls = cls .. ' ability-hint--enhanced' | |||
dict_key = STATE_DICT_KEYS.enhanced | |||
end | end | ||
local tip = dictionary.translate(dict_key, nil, nil, { m.title }) | local tip = dictionary.translate(dict_key, nil, nil, { m.title }) | ||