feat: added gray background to pause, story and buff layer
This commit is contained in:
parent
176157866d
commit
3b449273a3
BIN
dist/shattered_sword_assets/images/black.png
vendored
BIN
dist/shattered_sword_assets/images/black.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 43 KiB |
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user