mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-12 18:30:34 +00:00
restricted model keys in model menu
This commit is contained in:
parent
393f299074
commit
17c9c751f6
@ -755,11 +755,13 @@ namespace conformal {
|
||||
cmode = sm::SIDE | sm::MAYDARK | sm::CENTER;
|
||||
gamescreen(0);
|
||||
dialog::init(XLAT("models & projections"));
|
||||
string chars = "0123456789!@#$%^&*()][{}'\"";
|
||||
int cpos = 0;
|
||||
for(int i=0; i<mdGUARD; i++) {
|
||||
eModel m = eModel(i);
|
||||
if(m == mdFormula && ISMOBILE) continue;
|
||||
if(model_available(m)) {
|
||||
dialog::addBoolItem(get_model_name(m), pmodel == m, "0123456789!@#$%^&*()][{}'" [m]);
|
||||
dialog::addBoolItem(get_model_name(m), pmodel == m, chars[cpos++]);
|
||||
dialog::add_action([m] () {
|
||||
if(m == mdFormula) {
|
||||
edit_formula();
|
||||
|
Loading…
Reference in New Issue
Block a user