From 3b5ef4996a71209208b2d92ab91980100da1428d Mon Sep 17 00:00:00 2001 From: Soopyboo32 Date: Sat, 1 Jan 2022 15:01:37 +0800 Subject: + add leaderboard to networth gui + add buttons to webite version of avalible features --- features/streamsGUI/index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'features/streamsGUI') 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) -- cgit