Can disable cell colors in v6 mode
This commit is contained in:
parent
1e866e82f4
commit
d354078ad1
@ -1131,6 +1131,7 @@ function drawV6() {
|
|||||||
|
|
||||||
clear(context);
|
clear(context);
|
||||||
|
|
||||||
|
|
||||||
if (v6_flag_snowbiomes) {
|
if (v6_flag_snowbiomes) {
|
||||||
|
|
||||||
let cx, cy;
|
let cx, cy;
|
||||||
@ -1149,6 +1150,7 @@ function drawV6() {
|
|||||||
// Desert <-> Jungle <-> Temperate
|
// Desert <-> Jungle <-> Temperate
|
||||||
[cx_hot2, cy_hot2] = biomeCoordsToCanvasPixelCoords(MGV6_FREQ_HOT, MGV6_FREQ_JUNGLE);
|
[cx_hot2, cy_hot2] = biomeCoordsToCanvasPixelCoords(MGV6_FREQ_HOT, MGV6_FREQ_JUNGLE);
|
||||||
|
|
||||||
|
if (showCellColors) {
|
||||||
// Render biome areas
|
// Render biome areas
|
||||||
context.fillStyle = CELL_COLOR_V6_NORMAL;
|
context.fillStyle = CELL_COLOR_V6_NORMAL;
|
||||||
// Temperate
|
// Temperate
|
||||||
@ -1195,6 +1197,11 @@ function drawV6() {
|
|||||||
context.lineTo(w, cy_snow2);
|
context.lineTo(w, cy_snow2);
|
||||||
context.closePath();
|
context.closePath();
|
||||||
context.fill();
|
context.fill();
|
||||||
|
} else {
|
||||||
|
// Use a "neutral" background color for the whole area if cell colors are disabled
|
||||||
|
context.fillStyle = CELL_COLOR_NEUTRAL;
|
||||||
|
context.fillRect(-DRAW_OFFSET, -DRAW_OFFSET, w+DRAW_OFFSET, h+DRAW_OFFSET);
|
||||||
|
}
|
||||||
|
|
||||||
// Render biome borders
|
// Render biome borders
|
||||||
context.lineWidth = 2.5;
|
context.lineWidth = 2.5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user