Commit 27cfe2e6 authored by Ivaria's avatar Ivaria
Browse files

Properly decorate edit box text for 'Spells > Keys global'

parent 422d77c5
......@@ -480,14 +480,14 @@ local tTalentRampantGrowthSpellId;
local tIsTalentSelected;
function VUHDO_hasTalentRampantGrowth()
if "DRUID" ~= VUHDO_PLAYER_CLASS then
return false
return false;
end
tTalentRampantGrowthSpellId = 155834
tTalentRampantGrowthSpellId = 155834;
_, _, _, tIsTalentSelected, _ = GetTalentInfoById(tTalentRampantGrowthSpellId)
_, _, _, tIsTalentSelected, _ = GetTalentInfoById(tTalentRampantGrowthSpellId);
return tIsTalentSelected
return tIsTalentSelected;
end
--
......
......@@ -2,10 +2,15 @@
--
function VUHDO_newOptionsSpellEditBoxSpellId(anEditBox)
if (VUHDO_isSpellKnown(anEditBox:GetText())) then
local tText, tR, tG, tB = VUHDO_isActionValid(anEditBox:GetText(), anIsCustom);
local tLabel = _G[anEditBox:GetName() .. "Hint"];
if (tText ~= nil) then
anEditBox:SetTextColor(1, 1, 1, 1);
tLabel:SetText(tText);
tLabel:SetTextColor(tR, tG, tB, 1);
else
anEditBox:SetTextColor(0.8, 0.8, 1, 1);
tLabel:SetText("");
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment