feat: added google form
This commit is contained in:
parent
fc2e00f50c
commit
e0bf851843
|
@ -73,6 +73,15 @@ export default class MainMenu extends Scene {
|
||||||
about.backgroundColor = Color.TRANSPARENT;
|
about.backgroundColor = Color.TRANSPARENT;
|
||||||
about.onClickEventId = "about";
|
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
|
// 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"});
|
const control = this.add.uiElement(UIElementType.BUTTON, "mainMenu", {position: new Vec2(center.x, center.y), text: "Controls"});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user