criZp
Emperor
So I'm trying to make a mod that keeps unit icons translucent when the units go into fortify, instead of becoming semi-transparent.
There is a function called UnitFlag.SetDim( self, bDim : boolean ), located in the UnitFlagManager.lua file, which changes the dimming state (transparency) of the unit icon. SetDim is called by another function:
function UnitFlag.UpdateReadyState( self )
local pUnit : table = self:GetUnit();
if (pUnit ~= nil and pUnit:IsHuman()) then
self:SetDim(not pUnit:IsReadyToSelect());
end
end
This is the only function that calls the UnitFlag.SetDim function. The call to SetDim requires a third function, this one called IsReadyToSelect().
Now here is the weird thing: IsReadyToSelect does not have a function definition anywhere...
As you can see in the images, one function call, but zero function definition. Anyone have a clue about what's going on?
There is a function called UnitFlag.SetDim( self, bDim : boolean ), located in the UnitFlagManager.lua file, which changes the dimming state (transparency) of the unit icon. SetDim is called by another function:
function UnitFlag.UpdateReadyState( self )
local pUnit : table = self:GetUnit();
if (pUnit ~= nil and pUnit:IsHuman()) then
self:SetDim(not pUnit:IsReadyToSelect());
end
end
This is the only function that calls the UnitFlag.SetDim function. The call to SetDim requires a third function, this one called IsReadyToSelect().
Now here is the weird thing: IsReadyToSelect does not have a function definition anywhere...
As you can see in the images, one function call, but zero function definition. Anyone have a clue about what's going on?
Last edited: