mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +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() {
|
void celldrawer::bookkeeping() {
|
||||||
bool orig = false;
|
bool orig = false;
|
||||||
if(!inmirrorcount) {
|
if(!inmirrorcount) {
|
||||||
@ -2022,6 +2024,15 @@ void celldrawer::draw_cellstat() {
|
|||||||
queuestr(V, 1 * .2, label, 0xFFFFFFFF, 1);
|
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) {
|
if(cmode & sm::TORUSCONFIG) {
|
||||||
auto p = euc::coord_display(V, c);
|
auto p = euc::coord_display(V, c);
|
||||||
if(p.second != "")
|
if(p.second != "")
|
||||||
|
@ -2440,6 +2440,7 @@ EX int config3 = addHook(hooks_configfile, 100, [] {
|
|||||||
->set_reaction([] {
|
->set_reaction([] {
|
||||||
if(vid.highdetail > vid.middetail) vid.highdetail = vid.middetail;
|
if(vid.highdetail > vid.middetail) vid.highdetail = vid.middetail;
|
||||||
});
|
});
|
||||||
|
param_b(debug_tiles, "debug_tiles");
|
||||||
addsaver(vid.gp_autoscale_heights, "3D Goldberg autoscaling", true);
|
addsaver(vid.gp_autoscale_heights, "3D Goldberg autoscaling", true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user