draw tile value in cell

This is an experiment. I suspect the eventual fix will be to have two
modes, one of which draws the values and the other doesn't, replacing
the TILES/VALUES pref.
This commit is contained in:
Eric House 2021-02-10 17:05:55 -08:00
parent 538ab5ab3b
commit da352d6948

View file

@ -432,7 +432,15 @@ public class BoardCanvas extends Canvas implements DrawCtx {
}
} else {
m_fillPaint.setColor( adjustColor(foreColor) );
drawCentered( text, rect, m_fontDims );
Rect smaller = new Rect(rect);
smaller.bottom -= smaller.height() / 4;
smaller.right -= smaller.width() / 4;
drawCentered( text, smaller, m_fontDims );
smaller = new Rect(rect);
smaller.left += (3 * smaller.width()) / 4;
smaller.top += (3 * smaller.height()) / 4;
drawCentered( String.format("%d", value), smaller, m_fontDims );
}
if ( (CELL_ISBLANK & flags) != 0 ) {