Beispiel #1
0
 public override void CompDraw()
 {
     if (forbidden)
     {
         OverlayDrawer.DrawOverlay(parent, OverlayTypes.Forbidden);
     }
 }
 public override void Draw()
 {
     base.Draw();
     if (isLocked)
     {
         OverlayDrawer.DrawOverlay(this, OverlayTypes.ForbiddenBig);
     }
 }
Beispiel #3
0
    public override void Draw()
    {
        if (health < def.maxHealth && def.useStandardHealth)
        {
            OverlayDrawer.DrawOverlay(this, OverlayTypes.Damaged);
        }

        //If we've already added to the map mesh don't bother with drawing our base mesh
        if (def.drawerType == DrawerType.RealtimeOnly)
        {
            base.Draw();
        }

        Comps_Draw();
    }