1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-16 11:08:05 +00:00

four digits shown in pen width

This commit is contained in:
Zeno Rogue
2017-12-22 21:58:09 +01:00
parent dd108cde6b
commit 04cc9300bf
2 changed files with 26 additions and 3 deletions

View File

@@ -577,7 +577,7 @@ namespace dialog {
if(ne.positive && x <= 0) return;
*ne.editwhat = x;
}
if(kind == 'v') ne.s = fts(*ne.editwhat);
if(kind == 'v') ne.s = disp(*ne.editwhat);
}
if(reaction) reaction();
@@ -758,7 +758,7 @@ namespace dialog {
double d = exp(shiftmul/10);
vid.alpha *= d;
vid.scale *= d;
ne.s = fts(vid.alpha);
ne.s = disp(vid.alpha);
}
else if(doexiton(sym, uni)) popScreen();
};
@@ -815,7 +815,7 @@ namespace dialog {
void editNumber(ld& x, ld vmin, ld vmax, ld step, ld dft, string title, string help) {
ne.editwhat = &x;
ne.s = fts(x);
ne.s = disp(x);
ne.vmin = vmin;
ne.vmax = vmax;
ne.step = step;