mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-14 01:14:48 +00:00
45 lines
1.0 KiB
C++
45 lines
1.0 KiB
C++
// Hyperbolic Rogue
|
|
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details
|
|
|
|
// a CLI option to label tiles
|
|
|
|
#include "rogueviz.h"
|
|
|
|
namespace rogueviz {
|
|
|
|
namespace fullnet {
|
|
|
|
void drawExtra() {
|
|
for(auto& p: gmatrix) {
|
|
cell *c = p.first;
|
|
c->wall = waChasm;
|
|
}
|
|
int index = 0;
|
|
|
|
for(auto& p: gmatrix) {
|
|
cell *c = p.first;
|
|
bool draw = true;
|
|
for(int i=0; i<isize(named); i++) if(named[i] == c) draw = false;
|
|
if(draw && gmatrix.count(c))
|
|
queuedisk(p.second, dftcolor, false, NULL, index++);
|
|
// queuepolyat(it->second, shDisk, dftcolor., PPR::LINE);
|
|
}
|
|
|
|
for(int i=0; i<isize(named); i++) if(gmatrix.count(named[i])) {
|
|
string s = ""; s += 'A'+i;
|
|
queuestr(gmatrix[named[i]], 1, s, forecolor, 1);
|
|
}
|
|
|
|
canmove = true; items[itOrbAether] = true;
|
|
}
|
|
|
|
auto hooks = arg::add3("-net", [] {
|
|
init(0);
|
|
rv_hook(hooks_frame, 0, drawExtra);
|
|
linepatterns::patTriTree.color = 0x30;
|
|
linepatterns::patDual.color = 0x10;
|
|
linepatterns::patTriRings.color = 0xFF;
|
|
});
|
|
|
|
}}
|