fix: case sensitive and buttom size
This commit is contained in:
parent
c630ed7bd1
commit
3e54469e55
2
dist/shattered_sword_assets/jsons/story.json
vendored
2
dist/shattered_sword_assets/jsons/story.json
vendored
|
@ -109,7 +109,7 @@
|
|||
{
|
||||
"type": "loadSprite",
|
||||
"key": "logo",
|
||||
"path": "shattered_sword_assets/images/Logo.png",
|
||||
"path": "shattered_sword_assets/images/logo.png",
|
||||
"positon": [
|
||||
330,
|
||||
150
|
||||
|
|
|
@ -688,8 +688,8 @@ export default class GameLevel extends Scene {
|
|||
this.pauseSubmit.onClickEventId = "cheat";
|
||||
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.size.set(180,100);
|
||||
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,50);
|
||||
this.mainMenuButton.borderWidth = 5;
|
||||
this.mainMenuButton.borderColor = Color.BLACK;
|
||||
this.mainMenuButton.backgroundColor = Color.WHITE;
|
||||
|
|
Loading…
Reference in New Issue
Block a user