diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-02-05 19:56:09 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-02-05 19:56:09 +0800 |
commit | 28d6ec51b2d92bc469cb35a444b63be8c9031504 (patch) | |
tree | 32191ac94d9bf96860e86fffdaed60e0040ae387 | |
parent | 24c2cfbdeadc7f58293621ce6a7f8329e25313b7 (diff) | |
download | SoopyV2-28d6ec51b2d92bc469cb35a444b63be8c9031504.tar.gz SoopyV2-28d6ec51b2d92bc469cb35a444b63be8c9031504.tar.bz2 SoopyV2-28d6ec51b2d92bc469cb35a444b63be8c9031504.zip |
add discord button
-rw-r--r-- | features/soopyGui/index.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/features/soopyGui/index.js b/features/soopyGui/index.js index 13a8813..d9ef421 100644 --- a/features/soopyGui/index.js +++ b/features/soopyGui/index.js @@ -47,9 +47,17 @@ class SoopyGui extends Feature { this.categoryPage = new SoopyGuiElement().setLocation(0, 0, 1, 1) - let title = new SoopyTextElement().setText("§0Soopy Addons!").setMaxTextScale(3).setLocation(0.1, 0.05, 0.8, 0.1) + let title = new SoopyTextElement().setText("§0Soopy Addons!").setMaxTextScale(3).setLocation(0.1, 0.05, 0.5, 0.1) this.categoryPage.addChild(title) + let discordButton = new ButtonWithArrow().setText("§0Discord").setLocation(0.7, 0.05, 0.25, 0.1) + discordButton.addEvent(new SoopyMouseClickEvent().setHandler(()=>{ + java.awt.Desktop.getDesktop().browse( + new java.net.URI("https://discord.gg/dfSMq96RSN") + ); + })) + this.categoryPage.addChild(discordButton) + this.buttonListElm = new SoopyGuiElement().setLocation(0.1, 0.2, 0.8, 0.8).setScrollable(true) this.categoryPage.addChild(this.buttonListElm) |