diff --git a/config.cpp b/config.cpp index d894518a..22bfcf7e 100644 --- a/config.cpp +++ b/config.cpp @@ -651,6 +651,7 @@ EX void initConfig() { -> editable({{"letters", ""}, {"auto", ""}, {"images", ""}}, "inventory/kill mode", 'd'); param_f(vid.binary_width, "bwidth", "binary-tiling-width", 1); + param_custom(vid.binary_width, "binary tiling width", menuitem_binary_width, 'v'); addsaver(vid.particles, "extra effects", 1); param_i(vid.framelimit, "frame limit", 75); diff --git a/geom-exp.cpp b/geom-exp.cpp index d2cd1dd2..140acbc9 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -635,6 +635,19 @@ EX void menuitem_projection(char key) { dialog::add_action_push(models::model_menu); } +EX void menuitem_binary_width(char key) { + dialog::addSelItem(XLAT("binary tiling width"), fts(vid.binary_width), key); + dialog::add_action([] { + dialog::editNumber(vid.binary_width, 0, 2, 0.1, 1, XLAT("binary tiling width"), ""); + dialog::reaction = [] () { + #if CAP_TEXTURE + texture::config.remap(); + #endif + if(asonov::in()) asonov::prepare(); + }; + }); + } + EX void showEuclideanMenu() { // for(int i=2; i