Commits

saar drimer committed 54ac102

will now display the total number of drills, ot the text no drills

Comments (0)

Files changed (2)

boards/pieceof/pieceof.json

     "font": "Overlock-Regular-OTF-webfont",
     "scale": 0.0012
   },
+  "drill_index": 
+  {
+    "location": [35,-35],
+    "font": "Overlock-Regular-OTF-webfont",
+    "scale": 0.0012
+  },
   "documentation":
   {
     "design_information":
 
         buff = 2.0
 
+        drill_total = 0
+        for amount in drill_count.values():
+            drill_total += amount
+
+        if drill_total == 0:
+            text_to_print = 'No drills'
+        else:
+            text_to_print = '%s drills:' % drill_total
+
         paths, title_width, title_height = glyphs.get_glyphs(cfg,
-                                                             'Drills:', 
+                                                             text_to_print, 
                                                              font, 
                                                              Point(location.x, -location.y), 
                                                              font_scale)