aboutsummaryrefslogtreecommitdiff
path: root/features/streamsGUI
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-01 18:40:02 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-01 18:40:02 +0800
commitdc7032bbb937cbff276d18fba263ef1625834c6b (patch)
tree19516a4f0534a1f15bb0f3e873282be0e41dc53d /features/streamsGUI
parent8842bfabccde107cf916a57638d05dd23e2954a2 (diff)
downloadSoopyV2-dc7032bbb937cbff276d18fba263ef1625834c6b.tar.gz
SoopyV2-dc7032bbb937cbff276d18fba263ef1625834c6b.tar.bz2
SoopyV2-dc7032bbb937cbff276d18fba263ef1625834c6b.zip
+ add stat history graph gui
+ fix streams gui stream previews sometimes being wayyy too tall
Diffstat (limited to 'features/streamsGUI')
-rw-r--r--features/streamsGUI/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/features/streamsGUI/index.js b/features/streamsGUI/index.js
index 492728a..d7d75cd 100644
--- a/features/streamsGUI/index.js
+++ b/features/streamsGUI/index.js
@@ -10,7 +10,6 @@ import SoopyGuiElement from "../../../guimanager/GuiElement/SoopyGuiElement";
import SoopyMouseClickEvent from "../../../guimanager/EventListener/SoopyMouseClickEvent";
import ButtonWithArrow from "../../../guimanager/GuiElement/ButtonWithArrow";
import BoxWithText from "../../../guimanager/GuiElement/BoxWithText";
-import { drawBoxAtBlock } from "../../utils/renderUtils";
import { fetch } from "../../utils/networkUtils";
class StreamsGui extends Feature {
@@ -94,9 +93,9 @@ class StreamPage extends GuiPage {
let title = new SoopyMarkdownElement().setText(data.title).setLocation(0.1, 0.15, 0.8, 0.1)
sidebar.addChild(title)
- let image = new SoopyImageElement().setImage(data.image).setLocation(0.1, 0.15 + title.getHeight(), 0.8, 0.4)
+ let image = new SoopyImageElement().setLocation(0.1, 0.15 + title.getHeight(), 0.8, 0.4).setImage(data.image)
sidebar.addChild(image)
- image.loadHeightFromImage()
+
let button = new ButtonWithArrow().setText("ยง0Watch on Twitch").setLocation(0.1, 0.15 + image.location.size.y.get() + title.getHeight(), 0.8, 0.1)
sidebar.addChild(button)
@@ -118,6 +117,7 @@ class StreamPage extends GuiPage {
button.location.location.y.set(0.15 + image.location.size.y.get() + title.getHeight())
if (language) language.location.location.y.set(0.25 + image.location.size.y.get() + title.getHeight())
}, this)
+ image.loadHeightFromImage()
}
onOpen() {