1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

tour:: added XLAT in some places, also 'disable the Camelot cheat'

This commit is contained in:
Zeno Rogue 2018-04-22 11:13:13 +02:00
parent 10d438270b
commit b6da7779d5
2 changed files with 13 additions and 10 deletions

View File

@ -1611,11 +1611,11 @@ namespace patterns {
} }
bool have_goldberg = S3 == 3 && among(cgroup, cpFootball, cpThree) && !euclid; bool have_goldberg = S3 == 3 && among(cgroup, cpFootball, cpThree) && !euclid;
if(have_goldberg) { if(have_goldberg) {
dialog::addBoolItem("Goldberg", gp::on, 'G'); dialog::addBoolItem(XLAT("Goldberg"), gp::on, 'G');
dialog::lastItem().value = gp::operation_name(); dialog::lastItem().value = gp::operation_name();
} }
else dialog::addBreak(100); else dialog::addBreak(100);
dialog::addItem("more tuning", 'r'); dialog::addItem(XLAT("more tuning"), 'r');
dialog::display(); dialog::display();
keyhandler = [have_goldberg] (int sym, int uni) { keyhandler = [have_goldberg] (int sym, int uni) {
@ -1953,7 +1953,7 @@ namespace linepatterns {
dialog::init(XLAT("line patterns")); dialog::init(XLAT("line patterns"));
for(numpat=0; patterns[numpat].lpname; numpat++) for(numpat=0; patterns[numpat].lpname; numpat++)
dialog::addColorItem(among(patterns[numpat].id, patVine, patPower) && gp::on ? XLAT("Goldberg") : XLAT(patterns[numpat].lpname), patterns[numpat].color, 'a'+numpat); dialog::addColorItem(among(patterns[numpat].id, patVine, patPower) && gp::on ? XLAT("Goldberg") + (patterns[numpat].id == patVine ? " " : ""): XLAT(patterns[numpat].lpname), patterns[numpat].color, 'a'+numpat);
dialog::addBreak(50); dialog::addBreak(50);
dialog::addItem(XLAT("exit menu"), 'v'); dialog::addItem(XLAT("exit menu"), 'v');

View File

@ -195,11 +195,11 @@ bool handleKeyTour(int sym, int uni) {
canmove = true; canmove = true;
} }
} }
else addMessage( else addMessage(XLAT(
(vid.shifttarget&1) ? (vid.shifttarget&1) ?
"Shift-click a location to teleport there." "Shift-click a location to teleport there."
: "Click a location to teleport there." : "Click a location to teleport there."
); ));
return true; return true;
} }
if(sym == '5') { if(sym == '5') {
@ -211,11 +211,11 @@ bool handleKeyTour(int sym, int uni) {
static ld spd; static ld spd;
if(sickmode == true) { if(sickmode == true) {
spd = vid.sspeed, vid.sspeed = 5; spd = vid.sspeed, vid.sspeed = 5;
addMessage("Static mode enabled."); addMessage(XLAT("Static mode enabled."));
} }
else { else {
vid.sspeed = spd; vid.sspeed = spd;
addMessage("Static mode disabled."); addMessage(XLAT("Static mode disabled."));
} }
return true; return true;
} }
@ -543,8 +543,11 @@ slide default_slides[] = {
"Press '5' to cheat by seeing the smaller circles too.\n\n" "Press '5' to cheat by seeing the smaller circles too.\n\n"
"Note: Camelot and some other lands are unlocked earlier in the Tutorial than in a real game.", "Note: Camelot and some other lands are unlocked earlier in the Tutorial than in a real game.",
[] (presmode mode) { [] (presmode mode) {
slidecommand = "enable the Camelot cheat"; slidecommand =
if(mode == 4) camelotcheat = !camelotcheat; camelotcheat ? XLAT("enable the Camelot cheat")
: XLAT("disable the Camelot cheat");
if(mode == 4)
camelotcheat = !camelotcheat;
GETNEXT { GETNEXT {
if(!isCrossroads(old)) return laCrossroads; if(!isCrossroads(old)) return laCrossroads;
return laNone; return laNone;
@ -600,7 +603,7 @@ slide default_slides[] = {
"This is related to the fact that the world of HyperRogue is curved, and " "This is related to the fact that the world of HyperRogue is curved, and "
"the sum of angles in a triangle is not equal to 180 degrees.", "the sum of angles in a triangle is not equal to 180 degrees.",
[] (presmode mode) { [] (presmode mode) {
slidecommand = "gain Orb of the Sword"; slidecommand = XLAT("gain Orb of the Sword");
if(mode == 4) if(mode == 4)
items[itOrbSword] = 90; items[itOrbSword] = 90;
GETNEXT { GETNEXT {