mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	patterns:: innerwalls setting
This commit is contained in:
		| @@ -1528,7 +1528,7 @@ void celldrawer::draw_features_and_walls_3d() { | |||||||
|     for(int a=0; a<c->type; a++) { |     for(int a=0; a<c->type; a++) { | ||||||
|       bool b = true; |       bool b = true; | ||||||
|       if(c->move(a) && (among(pmodel, mdPerspective, mdGeodesic) || gmatrix0.count(c->move(a)))) |       if(c->move(a) && (among(pmodel, mdPerspective, mdGeodesic) || gmatrix0.count(c->move(a)))) | ||||||
|         b = !isWall3(c->move(a), dummy); |         b = (patterns::innerwalls && (tC0(V)[2] < tC0(V * currentmap->adj(c, a))[2])) || !isWall3(c->move(a), dummy); | ||||||
|       if(b) { |       if(b) { | ||||||
|         if(pmodel == mdPerspective && !sphere && !quotient && !penrose && !nonisotropic && !hybri && !experimental && !nih) { |         if(pmodel == mdPerspective && !sphere && !quotient && !penrose && !nonisotropic && !hybri && !experimental && !nih) { | ||||||
|           if(a < 4 && among(geometry, gHoroTris, gBinary3) && celldistAlt(c) >= celldistAlt(centerover)) continue; |           if(a < 4 && among(geometry, gHoroTris, gBinary3) && celldistAlt(c) >= celldistAlt(centerover)) continue; | ||||||
|   | |||||||
							
								
								
									
										11
									
								
								pattern2.cpp
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								pattern2.cpp
									
									
									
									
									
								
							| @@ -1494,6 +1494,7 @@ EX namespace patterns { | |||||||
|   EX bool displaycodes; |   EX bool displaycodes; | ||||||
|   EX char whichShape = 0; |   EX char whichShape = 0; | ||||||
|   EX char whichCanvas = 0; |   EX char whichCanvas = 0; | ||||||
|  |   EX bool innerwalls; | ||||||
|    |    | ||||||
|   int sevenval(cell *c) { |   int sevenval(cell *c) { | ||||||
|     if(!euclid) return 0; |     if(!euclid) return 0; | ||||||
| @@ -1789,6 +1790,7 @@ EX namespace patterns { | |||||||
|  |  | ||||||
|     dialog::addBreak(100); |     dialog::addBreak(100); | ||||||
|  |  | ||||||
|  |     dialog::addBoolItem_action(XLAT("display the inner walls"), innerwalls, '5'); | ||||||
|     dialog::addBoolItem(XLAT("display only hexagons"), (whichShape == '6'), '6'); |     dialog::addBoolItem(XLAT("display only hexagons"), (whichShape == '6'), '6'); | ||||||
|     dialog::addBoolItem(XLAT("display only heptagons"), (whichShape == '7'), '7'); |     dialog::addBoolItem(XLAT("display only heptagons"), (whichShape == '7'), '7'); | ||||||
|     dialog::addBoolItem(XLAT("display the triheptagonal grid"), (whichShape == '8'), '8'); |     dialog::addBoolItem(XLAT("display the triheptagonal grid"), (whichShape == '8'), '8'); | ||||||
| @@ -2857,7 +2859,14 @@ int read_pattern_args() { | |||||||
|     patterns::whichCanvas = 'f'; |     patterns::whichCanvas = 'f'; | ||||||
|     shift(); patterns::color_formula = args(); |     shift(); patterns::color_formula = args(); | ||||||
|     } |     } | ||||||
|  |   else if(argis("-innerwall")) { | ||||||
|  |     PHASEFROM(2); | ||||||
|  |     patterns::innerwalls = true; | ||||||
|  |     } | ||||||
|  |   else if(argis("-noinnerwall")) { | ||||||
|  |     PHASEFROM(2); | ||||||
|  |     patterns::innerwalls = false; | ||||||
|  |     } | ||||||
|   else if(argis("-d:line"))  |   else if(argis("-d:line"))  | ||||||
|     launch_dialog(linepatterns::showMenu); |     launch_dialog(linepatterns::showMenu); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue