Unlike the city production queue, there are no Lua hooks to facilitate this, so you'll need to re-write bits of UnitPanel.lua, specifically one or both of the bits that disable available actions
Code:
-- test w/o visible flag (ie can train right now)
if not Game.CanHandleAction( iAction ) then
bDisabled = true;
instance.UnitActionButton:SetAlpha( 0.4 );
instance.UnitActionButton:SetDisabled( true );
else
instance.UnitActionButton:SetAlpha( 1.0 );
instance.UnitActionButton:SetDisabled( false );
end
and
Code:
-- Not able to perform action
if not Game.CanHandleAction( iAction ) then
bDisabled = true;
end
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.