1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

editNumber(int) now accepts floating point step

This commit is contained in:
Zeno Rogue 2019-07-12 23:11:39 +02:00
parent 1875e1641e
commit e58e3c9bcb
2 changed files with 3 additions and 2 deletions

View File

@ -904,7 +904,7 @@ namespace dialog {
#endif
}
void editNumber(int& x, int vmin, int vmax, int step, int dft, string title, string help) {
void editNumber(int& x, int vmin, int vmax, ld step, int dft, string title, string help) {
editNumber(ne.intbuf, vmin, vmax, step, dft, title, help);
ne.intbuf = x; ne.intval = &x; ne.s = its(x);
ne.animatable = false;

View File

@ -1979,7 +1979,8 @@ namespace dialog {
void display();
void editNumber(ld& x, ld vmin, ld vmax, ld step, ld dft, string title, string help);
void editNumber(int& x, int vmin, int vmax, int step, int dft, string title, string help);
// step can be ld if we use scaleLog()
void editNumber(int& x, int vmin, int vmax, ld step, int dft, string title, string help);
void use_hexeditor();
inline void scaleLog() { ne.sc = logarithmic; }
inline void scaleSinh() { ne.sc = asinhic; }