fix: case sensitive and buttom size

This commit is contained in:
Renge 2022-04-25 23:20:39 -04:00
parent c630ed7bd1
commit 3e54469e55
2 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@
{ {
"type": "loadSprite", "type": "loadSprite",
"key": "logo", "key": "logo",
"path": "shattered_sword_assets/images/Logo.png", "path": "shattered_sword_assets/images/logo.png",
"positon": [ "positon": [
330, 330,
150 150

View File

@ -688,8 +688,8 @@ export default class GameLevel extends Scene {
this.pauseSubmit.onClickEventId = "cheat"; this.pauseSubmit.onClickEventId = "cheat";
this.pauseSubmit.borderWidth = 3; this.pauseSubmit.borderWidth = 3;
this.mainMenuButton = <Button>this.add.uiElement(UIElementType.BUTTON, "pause", {position: new Vec2(Math.floor(this.viewport.getHalfSize().x ), Math.floor(this.viewport.getHalfSize().y + 140)), text:"Main Menu"}); this.mainMenuButton = <Button>this.add.uiElement(UIElementType.BUTTON, "pause", {position: new Vec2(Math.floor(this.viewport.getHalfSize().x ), Math.floor(this.viewport.getHalfSize().y + 150)), text:"Main Menu"});
this.mainMenuButton.size.set(180,100); this.mainMenuButton.size.set(180,50);
this.mainMenuButton.borderWidth = 5; this.mainMenuButton.borderWidth = 5;
this.mainMenuButton.borderColor = Color.BLACK; this.mainMenuButton.borderColor = Color.BLACK;
this.mainMenuButton.backgroundColor = Color.WHITE; this.mainMenuButton.backgroundColor = Color.WHITE;