feat: added gray background to pause, story and buff layer

This commit is contained in:
Renge 2022-04-19 20:49:16 -04:00
parent 176157866d
commit 3b449273a3
2 changed files with 3 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -535,7 +535,9 @@ export default class GameLevel extends Scene {
this.pauseInput = <TextInput>this.add.uiElement(UIElementType.TEXT_INPUT, "pause", {position: new Vec2(500, 300), text: ""}); this.pauseInput = <TextInput>this.add.uiElement(UIElementType.TEXT_INPUT, "pause", {position: new Vec2(500, 300), text: ""});
this.pauseSubmit = <Label>this.add.uiElement(UIElementType.LABEL, "pause", {position: new Vec2(500, 350), text: "Submit"}); this.pauseSubmit = <Label>this.add.uiElement(UIElementType.LABEL, "pause", {position: new Vec2(500, 350), text: "Submit"});
// let tmp = this.add.sprite("black", "pause"); this.add.sprite("black", "pause");
this.add.sprite("black", "story");
this.add.sprite("black", "buffLayer");
this.pauseLayer.setAlpha(0.5); this.pauseLayer.setAlpha(0.5);
this.pauseInput.size.set(500, 30); this.pauseInput.size.set(500, 30);
this.pauseText.textColor = Color.BLACK; this.pauseText.textColor = Color.BLACK;