I'm at a loss, but I imagine you fine people can give me some help. Here is what I modified (probably filled with nastiness, but it does most of what I want

Unchanged version on the CT SVN (there's so many versions of unit_morph floating around, I hold onto the one CT has because it snaps buildings to the grid)
Code: Select all
newData.texture = morphData.texture
newData.text = morphData.text
newData.name = morphData.name
return newData
end
end
...
if morphDef.name then
morphCmdDesc.name = ''.. morphDef.name
else
morphCmdDesc.name = '#' .. morphDef.into --//only works with a patched layout.lua or the TweakedLayout widget!
end
if morphDef.texture then
morphCmdDesc.texture = "LuaRules/Images/Morph/".. morphDef.texture
--morphCmdDesc.name = ''
else
morphCmdDesc.texture = "#" .. morphDef.into --//only works with a patched layout.lua or the TweakedLayout widget!
end
...
morphCmdDesc.tooltip = nil
morphCmdDesc.texture = nil
morphCmdDesc.text = nil
morphCmdDesc.name = nil
end
