mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-19 05:33:02 +00:00
added missing XLAT in some places
This commit is contained in:
parent
5e2a65a781
commit
8e1ee8f8d5
@ -1207,7 +1207,7 @@ void show3D() {
|
||||
else if(uni == 'w') {
|
||||
dialog::editNumber(geom3::wall_height, 0, 1, .1, .3, XLAT("Height of walls"), "");
|
||||
dialog::extra_options = [] () {
|
||||
dialog::addBoolItem("auto-adjust in Goldberg grids", geom3::gp_autoscale_heights, 'o');
|
||||
dialog::addBoolItem(XLAT("auto-adjust in Goldberg grids"), geom3::gp_autoscale_heights, 'o');
|
||||
dialog::add_action([] () {
|
||||
geom3::gp_autoscale_heights = !geom3::gp_autoscale_heights;
|
||||
buildpolys();
|
||||
@ -1231,12 +1231,12 @@ void show3D() {
|
||||
|
||||
else if(uni == 'y')
|
||||
dialog::editNumber(vid.yshift, 0, 1, .1, 0, XLAT("Y shift"),
|
||||
"Don't center on the player character."
|
||||
XLAT("Don't center on the player character.")
|
||||
);
|
||||
else if(uni == 's')
|
||||
dialog::editNumber(vid.camera_angle, -180, 180, 5, 0, XLAT("camera rotation"),
|
||||
"Rotate the camera. Can be used to obtain a first person perspective, "
|
||||
"or third person perspective when combined with Y shift."
|
||||
XLAT("Rotate the camera. Can be used to obtain a first person perspective, "
|
||||
"or third person perspective when combined with Y shift.")
|
||||
);
|
||||
else if(uni == 'b')
|
||||
config_camera_rotation();
|
||||
|
@ -707,7 +707,7 @@ bool load_map(const string &fname) {
|
||||
auto& all = base->allcells();
|
||||
int g, sa;
|
||||
ignore(fscanf(f, "%d %d %d\n", &g, &sa, &cellcount));
|
||||
if(sa != isize(all) || g != geometry) { printf("bad parameters\n"); addMessage("bad format or bad map geometry"); return false; }
|
||||
if(sa != isize(all) || g != geometry) { printf("bad parameters\n"); addMessage(XLAT("bad format or bad map geometry")); return false; }
|
||||
density = cellcount * 1. / isize(all);
|
||||
|
||||
cells.clear();
|
||||
@ -748,7 +748,7 @@ string irrmapfile = "irregularmap.txt";
|
||||
void show_gridmaker() {
|
||||
cmode = sm::SIDE;
|
||||
gamescreen(0);
|
||||
dialog::init(XLAT("Irregular grid"));
|
||||
dialog::init(XLAT("irregular grid"));
|
||||
dialog::addSelItem(XLAT("density"), fts(density), 'd');
|
||||
dialog::add_action([] {
|
||||
dialog::editNumber(density, 1, 10, .1, 4, "density", "");
|
||||
@ -763,7 +763,7 @@ void show_gridmaker() {
|
||||
});
|
||||
dialog::addSelItem(XLAT("min edge to median"), fts(quality), 'q');
|
||||
dialog::add_action([] {
|
||||
dialog::editNumber(quality, 0, 1, .1, 4, "quality", "");
|
||||
dialog::editNumber(quality, 0, 1, .1, 4, XLAT("quality"), "");
|
||||
dialog::reaction = [] () {
|
||||
printf("quality = %lf\n", double(density));
|
||||
if(runlevel > 4) runlevel = 4;
|
||||
|
Loading…
Reference in New Issue
Block a user