From 9d1a7e4ebc4428be0e086dd4d75646294ba51f53 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 2 Jun 2022 19:43:45 +0800 Subject: +make stat history gui main page less cluttered and sidebar for more graphs + fix streamsgui preview images being stretched sometimes --- features/streamsGUI/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'features/streamsGUI') 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 } }) -- cgit