aboutsummaryrefslogtreecommitdiff
path: root/features/streamsGUI
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-02 12:48:24 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-02 12:48:24 +0800
commit2776d9ae74bfc2638c54389d687e921786f2139e (patch)
tree752108cf40d8c41a1625c42db3a5e0c7a1ec9186 /features/streamsGUI
parent74dea92c426b91bb5520122d4dccc64fd6e46d1c (diff)
parent3b5ef4996a71209208b2d92ab91980100da1428d (diff)
downloadSoopyV2-2776d9ae74bfc2638c54389d687e921786f2139e.tar.gz
SoopyV2-2776d9ae74bfc2638c54389d687e921786f2139e.tar.bz2
SoopyV2-2776d9ae74bfc2638c54389d687e921786f2139e.zip
Merge branch 'master' of https://github.com/Soopyboo32/SoopyV2
Diffstat (limited to 'features/streamsGUI')
-rw-r--r--features/streamsGUI/index.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/features/streamsGUI/index.js b/features/streamsGUI/index.js
index 366fbcd..01040cd 100644
--- a/features/streamsGUI/index.js
+++ b/features/streamsGUI/index.js
@@ -43,7 +43,16 @@ class StreamPage extends GuiPage {
this.pages = [this.newPage()]
- this.pages[0].addChild(new SoopyTextElement().setText("§0Skyblock Streams").setMaxTextScale(3).setLocation(0.1, 0.05, 0.8, 0.1))
+ this.pages[0].addChild(new SoopyTextElement().setText("§0Skyblock Streams").setMaxTextScale(3).setLocation(0.1, 0.05, 0.6, 0.1))
+
+ let button = new ButtonWithArrow().setText("§0Open in browser").setLocation(0.7, 0.05, 0.2, 0.1)
+ this.pages[0].addChild(button)
+
+ button.addEvent(new SoopyMouseClickEvent().setHandler(()=>{
+ java.awt.Desktop.getDesktop().browse(
+ new java.net.URI("https://soopymc.my.to/skyblockstreams")
+ );
+ }))
this.streamsBox = new SoopyGuiElement().setLocation(0.1, 0.15, 0.8, 0.85)