mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 15:40:26 +00:00
numerical_minefield option -- not yet changed in menu
This commit is contained in:
parent
228c3e9866
commit
b9fd64e1d9
@ -1366,6 +1366,8 @@ bool celldrawer::set_randompattern_floor() {
|
||||
return true;
|
||||
}
|
||||
|
||||
EX bool numerical_minefield;
|
||||
|
||||
void celldrawer::draw_features() {
|
||||
char xch = winf[c->wall].glyph;
|
||||
#if CAP_SHAPES
|
||||
@ -1610,10 +1612,18 @@ void celldrawer::draw_features() {
|
||||
|
||||
case waMineOpen: {
|
||||
int mines = countMinesAround(c);
|
||||
if(mines >= 10)
|
||||
queuepoly(V, cgi.shBigMineMark[ct6], darkena(minecolors[(mines/10) % 10], 0, 0xFF));
|
||||
if(mines)
|
||||
queuepoly(V, cgi.shMineMark[ct6], darkena(minecolors[mines%10], 0, 0xFF));
|
||||
if(numerical_minefield) {
|
||||
if(mines) {
|
||||
string label = its(mines);
|
||||
queuestr(V, mines >= 10 ? .5 : 1, label, minecolors[mines%10], 8);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(mines >= 10)
|
||||
queuepoly(V, cgi.shBigMineMark[ct6], darkena(minecolors[(mines/10) % 10], 0, 0xFF));
|
||||
if(mines)
|
||||
queuepoly(V, cgi.shMineMark[ct6], darkena(minecolors[mines%10], 0, 0xFF));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2327,6 +2327,7 @@ EX int config3 = addHook(hooks_configfile, 100, [] {
|
||||
addsaver(vid.fixed_facing_dir, "fixed facing dir", 90);
|
||||
param_b(vid.fixed_yz, "fixed YZ", true);
|
||||
param_b(frustum_culling, "frustum_culling");
|
||||
param_b(numerical_minefield, "numerical_minefield");
|
||||
param_b(draw_sky, "draw sky", true);
|
||||
param_f(linepatterns::parallel_count, "parallel_count")
|
||||
->editable(0, 24, 1, "number of parallels drawn", "", 'n');
|
||||
|
Loading…
Reference in New Issue
Block a user