debug_tiles feature

This commit is contained in:
Zeno Rogue 2022-04-28 08:23:33 +02:00
parent 63e855562c
commit 51ea62977f
2 changed files with 12 additions and 0 deletions

View File

@ -1930,6 +1930,8 @@ void celldrawer::check_rotations() {
}
}
EX bool debug_tiles;
void celldrawer::bookkeeping() {
bool orig = false;
if(!inmirrorcount) {
@ -2021,6 +2023,15 @@ void celldrawer::draw_cellstat() {
string label = its(c->landparam);
queuestr(V, 1 * .2, label, 0xFFFFFFFF, 1);
}
if(debug_tiles) {
string label = its(shvid(c));
queuestr(V, .5, label, 0xFFFFFFFF, 1);
for(int i=0; i<c->type; i++) {
queuestr(V * rgpushxto0(currentmap->get_corner(c, i, 4)), .2, its(i), 0xFFFFFFFF, 1);
queuestr(V * rgpushxto0(mid(currentmap->get_corner(c, i, 4), currentmap->get_corner(c, i+1, 5))), .2, its(i), 0xFFFFFFFF, 1);
}
}
if(cmode & sm::TORUSCONFIG) {
auto p = euc::coord_display(V, c);

View File

@ -2440,6 +2440,7 @@ EX int config3 = addHook(hooks_configfile, 100, [] {
->set_reaction([] {
if(vid.highdetail > vid.middetail) vid.highdetail = vid.middetail;
});
param_b(debug_tiles, "debug_tiles");
addsaver(vid.gp_autoscale_heights, "3D Goldberg autoscaling", true);
});