diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-02 19:43:45 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-02 19:43:45 +0800 |
commit | 9d1a7e4ebc4428be0e086dd4d75646294ba51f53 (patch) | |
tree | 11e8dec92d7c3bdf52faf29a890022e4dcd39a8d /features/streamsGUI | |
parent | 7940745eb519224a6826f2b94ab7802cf05d94b8 (diff) | |
download | SoopyV2-9d1a7e4ebc4428be0e086dd4d75646294ba51f53.tar.gz SoopyV2-9d1a7e4ebc4428be0e086dd4d75646294ba51f53.tar.bz2 SoopyV2-9d1a7e4ebc4428be0e086dd4d75646294ba51f53.zip |
+make stat history gui main page less cluttered and sidebar for more graphs
+ fix streamsgui preview images being stretched sometimes
Diffstat (limited to 'features/streamsGUI')
-rw-r--r-- | features/streamsGUI/index.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/features/streamsGUI/index.js b/features/streamsGUI/index.js index d7d75cd..fec9bfa 100644 --- a/features/streamsGUI/index.js +++ b/features/streamsGUI/index.js @@ -73,10 +73,14 @@ class StreamPage extends GuiPage { let stream = streams.twitch[channel] if (i % 2 === 0) { - this.streamsBox.addChild(new StreamElement().setStream(stream, true).setLocation(0, y, 0.45, 0.55).setStreamPage(this)) + let element = new StreamElement().setLocation(0, y, 0.45, 0.55).setStreamPage(this) + this.streamsBox.addChild(element) + element.setStream(stream, true) } if (i % 2 === 1) { - this.streamsBox.addChild(new StreamElement().setStream(stream, true).setLocation(0.55, y, 0.45, 0.55).setStreamPage(this)) + let element = new StreamElement().setLocation(0.55, y, 0.45, 0.55).setStreamPage(this) + this.streamsBox.addChild(element) + element.setStream(stream, true) y += 0.6 } }) |