How to correct object drawing?

Started by Oiltanker, January 22, 2016, 12:17:58 PM

Previous topic - Next topic

Oiltanker

I created mod for testing. I wanted to enlarge turrets' guns, but for some reason it draws small version of it over large version.

Can someone explain me what I did wrong. I will apply souce files.

[attachment deleted due to age]

skullywag

Havent looked at the code but if youve manually drawn the turret in c# make sure you havent still got turrettopgraphic still set in the xml def for the turret building.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Oiltanker

No I solved the problem. I just simply changed orders of drawing, so now base.Draw() goes first and this.top.DrawTurret() goes second.