mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 15:40:26 +00:00
debug_tiles feature
This commit is contained in:
parent
63e855562c
commit
51ea62977f
@ -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);
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user