Need a little help with LUA

toft

King
Joined
May 18, 2005
Messages
758
Location
€urope
I need to change a line in a LUA file, but this file is different in Vanilla and G&K, so I can't just change the line and overwrite the entire file because only vanilla works then :sad:

So do anyone know how I change this line:

Code:
controls.StatusIcon:SetColor( textColor );
to:
Code:
controls.StatusIcon:SetColor();

I just want to remove that textColor, so my mod works independently of expansion or not.
 
Code:
local isGandK = (GameInfoTypes.UNITCOMBAT_NAVALMELEE ~= nil)

if isGandK then
  controls.StatusIcon:SetColor(textColor)
else
  controls.StatusIcon:SetColor()
end
 
Back
Top Bottom