mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
crystal:: 3D mode works from the Rug menu, and linked to from its menu
This commit is contained in:
parent
e6a97b6914
commit
92eaf96930
@ -858,6 +858,12 @@ void show() {
|
||||
dialog::addBreak(50);
|
||||
dialog::addBoolItem("view coordinates in the cheat mode", view_coordinates, 'v');
|
||||
dialog::add_action([]() { view_coordinates = !view_coordinates; });
|
||||
if(geometry == gCrystal) {
|
||||
dialog::addBoolItem("3D display", rug::rugged, 'r');
|
||||
dialog::add_action([]() { pushScreen(rug::show); });
|
||||
}
|
||||
else
|
||||
dialog::addBreak(100);
|
||||
dialog::addBack();
|
||||
dialog::display();
|
||||
}
|
||||
|
1
hyper.h
1
hyper.h
@ -4154,6 +4154,7 @@ namespace crystal {
|
||||
int dist_alt(cell *c);
|
||||
int dist_relative(cell *c);
|
||||
void show();
|
||||
void init_rotation();
|
||||
}
|
||||
|
||||
hyperpoint get_warp_corner(cell *c, int cid);
|
||||
|
7
rug.cpp
7
rug.cpp
@ -1396,6 +1396,13 @@ void init_model() {
|
||||
qvalid = 0; dt = 0; queueiter = 0;
|
||||
err_zero_current = err_zero;
|
||||
|
||||
if(geometry == gCrystal && surface::sh == surface::dsNone) {
|
||||
surface::sh = surface::dsCrystal;
|
||||
crystal::init_rotation();
|
||||
good_shape = true;
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
buildRug();
|
||||
while(good_shape && subdivide_further()) subdivide();
|
||||
|
Loading…
Reference in New Issue
Block a user