From e0bf851843a96bff003eb15de389b3ccdf5f70eb Mon Sep 17 00:00:00 2001 From: Renge Date: Thu, 21 Apr 2022 15:34:15 -0400 Subject: [PATCH] feat: added google form --- src/shattered_sword/Scenes/MainMenu.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/shattered_sword/Scenes/MainMenu.ts b/src/shattered_sword/Scenes/MainMenu.ts index d30720c..6bf0298 100644 --- a/src/shattered_sword/Scenes/MainMenu.ts +++ b/src/shattered_sword/Scenes/MainMenu.ts @@ -73,6 +73,15 @@ export default class MainMenu extends Scene { about.backgroundColor = Color.TRANSPARENT; about.onClickEventId = "about"; + // Add about button + const form = this.add.uiElement(UIElementType.BUTTON, "mainMenu", {position: new Vec2(center.x, center.y + 200), text: "Google Form"}); + form.size.set(200, 50); + form.borderWidth = 2; + form.borderColor = Color.WHITE; + form.backgroundColor = Color.TRANSPARENT; + form.onClick = function() { + window.open("https://forms.gle/Ku7RmUdNn7b9m5ch6"); + }; // Add control button, and give it an event to emit on press const control = this.add.uiElement(UIElementType.BUTTON, "mainMenu", {position: new Vec2(center.x, center.y), text: "Controls"});