فهرست منبع

Use go:generate for fonts.

Steve Thielemann 2 سال پیش
والد
کامیت
70f1b3ec26
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      testdoor/testdoor.go

+ 4 - 0
testdoor/testdoor.go

@@ -15,6 +15,10 @@ import (
 	"github.com/mitchellh/go-wordwrap"
 )
 
+//go:generate sh -c "font-util extract -f 'Amazon Cyan,Anarchy Blue,Unchained,Asylum,ArmageonRed,BrainDmgBlu,Boner,Descent,Remorse,Dungeon' ../TDFONTS.TDF ../TDFONTS2.TDF ../TDFONTS9.TDF > fonts.go"
+
+//go:generate sh -c "font-util extract -f Armageddon -c 7,1 -c 4,2 ../TDFONTS2.TDF > rgfont.go; sed -i 's/Armageddon/RedGreen/g' rgfont.go"
+
 func pctUpdate(pct *int64) func() int64 {
 	return func() int64 {
 		return *pct