mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50:34 +00:00
tortoise:: shading now can be disabled
This commit is contained in:
parent
33bacc8731
commit
11447fcb7b
@ -617,7 +617,7 @@ void celldrawer::tune_colors() {
|
||||
|
||||
aura_color = fcol;
|
||||
|
||||
if(peace::on && peace::hint && c->land != laTortoise) {
|
||||
if(peace::on && peace::hint && (c->land != laTortoise || !tortoise::shading_on())) {
|
||||
int d =
|
||||
(c->land == laCamelot || (c->land == laCaribbean && celldistAlt(c) <= 0) || (c->land == laPalace && celldistAlt(c))) ? celldistAlt(c):
|
||||
celldist(c);
|
||||
|
@ -2536,10 +2536,16 @@ EX namespace tortoise {
|
||||
else val = target;
|
||||
}
|
||||
|
||||
EX bool shading_enabled = true;
|
||||
|
||||
EX bool shading_on() {
|
||||
return shading_enabled && seek();
|
||||
}
|
||||
|
||||
EX void updateVals(int delta) {
|
||||
int currbits = getBits(cwt.at);
|
||||
for(int i=0; i<numbits; i++)
|
||||
update(seekval[i], seek() && !(peace::on && !peace::hint) ? getBit(seekbits, i) : .5, delta);
|
||||
update(seekval[i], shading_on() ? getBit(seekbits, i) : .5, delta);
|
||||
for(int i=0; i<numbits; i++)
|
||||
update(currval[i], getBit(currbits, i), delta);
|
||||
}
|
||||
|
@ -620,6 +620,8 @@ EX void initConfig() {
|
||||
addsaver(racing::standard_centering, "race_standard_centering");
|
||||
#endif
|
||||
|
||||
addsaver(tortoise::shading_enabled, "tortoise_shading", true);
|
||||
|
||||
addsaver(bounded_mine_percentage, "bounded_mine_percentage");
|
||||
|
||||
addsaver(nisot::geodesic_movement, "solv_geodesic_movement", true);
|
||||
@ -2091,6 +2093,10 @@ EX void show_color_dialog() {
|
||||
}
|
||||
#endif
|
||||
|
||||
if(cwt.at->land == laTortoise) {
|
||||
dialog::addBoolItem_action(XLAT("Galápagos shading"), tortoise::shading_enabled, 'T');
|
||||
}
|
||||
|
||||
dialog::addInfo(XLAT("colors of some game objects can be edited by clicking them."));
|
||||
|
||||
dialog::addBreak(50);
|
||||
|
Loading…
Reference in New Issue
Block a user