From 1418f06eda87edd99ae5bce4f29247e486930bcb Mon Sep 17 00:00:00 2001 From: Florrie Date: Thu, 26 Sep 2019 21:59:08 -0300 Subject: Make menubar easter-egg color/attribute draw deps So pressing a/c (:33) in the menubar will now cause a rerender. --- ui.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui.js b/ui.js index ba7a798..7037e87 100644 --- a/ui.js +++ b/ui.js @@ -3776,6 +3776,11 @@ class Menubar extends ListScrollForm { writable.write(' '.repeat(this.w)) writable.write(ansi.resetAttributes()) } + + get color() { return this.getDep('color') } + set color(v) { return this.setDep('color', v) } + get attribute() { return this.getDep('attribute') } + set attribute(v) { return this.setDep('attribute', v) } } class PartyBanner extends DisplayElement { -- cgit 1.3.0-6-gf8a5