mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-03 10:12:51 +00:00
rogueviz:: edgewidth parameter
This commit is contained in:
parent
af00aaac2d
commit
6929b2f1b4
@ -584,6 +584,8 @@ int brm_limit = 1000;
|
|||||||
ld labelshift = .2;
|
ld labelshift = .2;
|
||||||
ld labelscale = .2; // .28 in SVG
|
ld labelscale = .2; // .28 in SVG
|
||||||
|
|
||||||
|
ld edgewidth = 1;
|
||||||
|
|
||||||
bool drawVertex(const shiftmatrix &V, cell *c, shmup::monster *m) {
|
bool drawVertex(const shiftmatrix &V, cell *c, shmup::monster *m) {
|
||||||
if(m->dead) return true;
|
if(m->dead) return true;
|
||||||
if(m->type != moRogueviz) return false;
|
if(m->type != moRogueviz) return false;
|
||||||
@ -622,6 +624,7 @@ bool drawVertex(const shiftmatrix &V, cell *c, shmup::monster *m) {
|
|||||||
|
|
||||||
if(ei->lastdraw < frameid || multidraw) {
|
if(ei->lastdraw < frameid || multidraw) {
|
||||||
ei->lastdraw = frameid;
|
ei->lastdraw = frameid;
|
||||||
|
dynamicval<ld> w(vid.linewidth, vid.linewidth * edgewidth);
|
||||||
|
|
||||||
color_t col = (hilite ? ei->type->color_hi : ei->type->color);
|
color_t col = (hilite ? ei->type->color_hi : ei->type->color);
|
||||||
auto& alpha = part(col, 0);
|
auto& alpha = part(col, 0);
|
||||||
@ -1213,6 +1216,8 @@ auto hooks =
|
|||||||
addHook(hooks_markers, 100, search_marker) +
|
addHook(hooks_markers, 100, search_marker) +
|
||||||
addHook(hooks_configfile, 100, [] {
|
addHook(hooks_configfile, 100, [] {
|
||||||
param_i(brm_limit, "brm_limit");
|
param_i(brm_limit, "brm_limit");
|
||||||
|
param_f(edgewidth, "rvedgewidth");
|
||||||
|
param_f(min_line_splits, "edgeminsplits");
|
||||||
}) +
|
}) +
|
||||||
0;
|
0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user