mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-16 21:34:08 +00:00
rogueviz:: edge colors can be adjusted now
This commit is contained in:
parent
87534ac492
commit
ddf3ca83cf
@ -29,6 +29,10 @@ void init();
|
|||||||
bool showlabels = false;
|
bool showlabels = false;
|
||||||
bool specialmark = false;
|
bool specialmark = false;
|
||||||
|
|
||||||
|
static const unsigned DEFAULT_COLOR = 0x47129371;
|
||||||
|
|
||||||
|
unsigned edgecolor = DEFAULT_COLOR;
|
||||||
|
|
||||||
bool rog3 = false;
|
bool rog3 = false;
|
||||||
int vertex_shape = 1;
|
int vertex_shape = 1;
|
||||||
|
|
||||||
@ -1086,7 +1090,7 @@ void drawVertex(const transmatrix &V, cell *c, shmup::monster *m) {
|
|||||||
} */
|
} */
|
||||||
|
|
||||||
int col =
|
int col =
|
||||||
((hilite ? 0xFF0000 : forecolor) << 8) + xlalpha;
|
((hilite ? 0xFF0000 : ei->color != DEFAULT_COLOR ? ei->color : forecolor) << 8) + xlalpha;
|
||||||
|
|
||||||
bool onspiral = kind == kSpiral && abs(ei->i - ei->j) == 1;
|
bool onspiral = kind == kSpiral && abs(ei->i - ei->j) == 1;
|
||||||
if(pmodel || onspiral) {
|
if(pmodel || onspiral) {
|
||||||
@ -1529,6 +1533,9 @@ int readArgs() {
|
|||||||
else if(argis("-rog3")) {
|
else if(argis("-rog3")) {
|
||||||
rog3 = true;
|
rog3 = true;
|
||||||
}
|
}
|
||||||
|
else if(argis("-rvedge")) {
|
||||||
|
shift(); edgecolor = arghex();
|
||||||
|
}
|
||||||
else if(argis("-cshift")) {
|
else if(argis("-cshift")) {
|
||||||
shift(); collatz::cshift = argf();
|
shift(); collatz::cshift = argf();
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ namespace rogueviz {
|
|||||||
void mark(cell *c);
|
void mark(cell *c);
|
||||||
void showMenu();
|
void showMenu();
|
||||||
string makehelp();
|
string makehelp();
|
||||||
|
extern unsigned edgecolor;
|
||||||
|
|
||||||
void init();
|
void init();
|
||||||
|
|
||||||
@ -27,7 +28,8 @@ namespace rogueviz {
|
|||||||
vector<glvertex> prec;
|
vector<glvertex> prec;
|
||||||
cell *orig;
|
cell *orig;
|
||||||
int lastdraw;
|
int lastdraw;
|
||||||
edgeinfo() { visible = true; orig = NULL; lastdraw = -1; }
|
unsigned color;
|
||||||
|
edgeinfo() { visible = true; orig = NULL; lastdraw = -1; color = edgecolor; }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct colorpair {
|
struct colorpair {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user