mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-24 05:17:17 +00:00
split the projection menu into two screens
This commit is contained in:
parent
10a8b8660b
commit
3d813e83b9
18
models.cpp
18
models.cpp
@ -317,17 +317,16 @@ EX namespace models {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
EX void model_menu() {
|
EX void model_list() {
|
||||||
cmode = sm::SIDE | sm::MAYDARK | sm::CENTER;
|
cmode = sm::SIDE | sm::MAYDARK | sm::CENTER;
|
||||||
gamescreen(0);
|
gamescreen(0);
|
||||||
dialog::init(XLAT("models & projections"));
|
dialog::init(XLAT("models & projections"));
|
||||||
string chars = "0123456789!@#$%^&*()][{}'\"";
|
|
||||||
int cpos = 0;
|
|
||||||
for(int i=0; i<mdGUARD; i++) {
|
for(int i=0; i<mdGUARD; i++) {
|
||||||
eModel m = eModel(i);
|
eModel m = eModel(i);
|
||||||
if(m == mdFormula && ISMOBILE) continue;
|
if(m == mdFormula && ISMOBILE) continue;
|
||||||
if(model_available(m)) {
|
if(model_available(m)) {
|
||||||
dialog::addBoolItem(get_model_name(m), pmodel == m, chars[cpos++]);
|
dialog::addBoolItem(get_model_name(m), pmodel == m, (i < 26 ? 'a'+i : 'A'+i-26));
|
||||||
dialog::add_action([m] () {
|
dialog::add_action([m] () {
|
||||||
if(m == mdFormula) {
|
if(m == mdFormula) {
|
||||||
edit_formula();
|
edit_formula();
|
||||||
@ -344,7 +343,16 @@ EX namespace models {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dialog::addBreak(100);
|
dialog::display();
|
||||||
|
}
|
||||||
|
|
||||||
|
EX void model_menu() {
|
||||||
|
cmode = sm::SIDE | sm::MAYDARK | sm::CENTER;
|
||||||
|
gamescreen(0);
|
||||||
|
dialog::init(XLAT("models & projections"));
|
||||||
|
|
||||||
|
dialog::addSelItem(XLAT("projection type"), get_model_name(pmodel), 'm');
|
||||||
|
dialog::add_action_push(model_list);
|
||||||
|
|
||||||
if(nonisotropic)
|
if(nonisotropic)
|
||||||
dialog::addBoolItem_action(XLAT("geodesic movement in Sol/Nil"), nisot::geodesic_movement, 'G');
|
dialog::addBoolItem_action(XLAT("geodesic movement in Sol/Nil"), nisot::geodesic_movement, 'G');
|
||||||
|
Loading…
Reference in New Issue
Block a user