blocks: Change font color

This commit is contained in:
Hajime Hoshi 2014-12-29 18:33:57 +09:00
parent bb1d168154
commit 1c4a652a6d

View File

@ -64,8 +64,10 @@ func drawRect(r *ebiten.Image, x, y, width, height int) error {
}) })
} }
var fontColor = color.NRGBA{0x40, 0x40, 0xff, 0xff}
func drawTextBox(r *ebiten.Image, label, content string, x, y, width int) error { func drawTextBox(r *ebiten.Image, label, content string, x, y, width int) error {
if err := drawTextWithShadow(r, label, x, y, 1, color.NRGBA{0x00, 0x00, 0x80, 0xff}); err != nil { if err := drawTextWithShadow(r, label, x, y, 1, fontColor); err != nil {
return err return err
} }
y += blockWidth y += blockWidth
@ -281,7 +283,7 @@ func (s *GameScene) Draw(r *ebiten.Image) error {
// Draw next // Draw next
x := fieldX + fieldWidth + blockWidth*2 x := fieldX + fieldWidth + blockWidth*2
y := fieldY y := fieldY
if err := drawTextWithShadow(r, "NEXT", x, y, 1, color.NRGBA{0x00, 0x00, 0x80, 0xff}); err != nil { if err := drawTextWithShadow(r, "NEXT", x, y, 1, fontColor); err != nil {
return err return err
} }
nextX := x nextX := x