mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	help for formula parser
This commit is contained in:
		| @@ -626,7 +626,13 @@ namespace conformal { | |||||||
|         dialog::add_action([m] () { |         dialog::add_action([m] () { | ||||||
|           if(m == mdFormula) { |           if(m == mdFormula) { | ||||||
|             if(pmodel != m) basic_model = pmodel; |             if(pmodel != m) basic_model = pmodel; | ||||||
|             dialog::edit_string(formula, "formula", ""); |             dialog::edit_string(formula, "formula",  | ||||||
|  |               XLAT( | ||||||
|  |               "This lets you specify the projection as a formula f. " | ||||||
|  |               "The formula has access to the value 'z', which is a complex number corresponding to the x,y coordinates in the currently selected model; " | ||||||
|  |               "the point z is mapped to f(z). For 3D models (or 2D models if you prefer) you can also use parameters cx, cy, cz." | ||||||
|  |               ) + "\n\n" + parser_help() | ||||||
|  |               ); | ||||||
|             dialog::reaction_final = [] () { |             dialog::reaction_final = [] () { | ||||||
|               pmodel = mdFormula; |               pmodel = mdFormula; | ||||||
|               }; |               }; | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								hyper.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								hyper.h
									
									
									
									
									
								
							| @@ -4321,5 +4321,6 @@ bool in_smart_range(const transmatrix& T); | |||||||
| void curvepoint(const hyperpoint& H1); | void curvepoint(const hyperpoint& H1); | ||||||
| dqi_poly& queuecurve(color_t linecol, color_t fillcol, PPR prio); | dqi_poly& queuecurve(color_t linecol, color_t fillcol, PPR prio); | ||||||
|  |  | ||||||
|  | string parser_help(); | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue