add mainmenu resource
This commit is contained in:
		
							parent
							
								
									c2617f531c
								
							
						
					
					
						commit
						0fd9b40716
					
				
							
								
								
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/mainmenu.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/shattered_sword_assets/images/mainmenu.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 6.1 KiB  | 
| 
						 | 
					@ -45,10 +45,10 @@ export default class MainMenu extends Scene {
 | 
				
			||||||
        // The main menu
 | 
					        // The main menu
 | 
				
			||||||
        this.mainMenu = this.addUILayer("mainMenu");
 | 
					        this.mainMenu = this.addUILayer("mainMenu");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const seedHint = <Label>this.add.uiElement(UIElementType.LABEL, "mainMenu", {position: new Vec2(center.x, center.y - 200), text: "Enter seed or leave it blank to randomly generate one"});
 | 
					        const seedHint = <Label>this.add.uiElement(UIElementType.LABEL, "mainMenu", {position: new Vec2(center.x, center.y - 300), text: "Enter seed or leave it blank to randomly generate one"});
 | 
				
			||||||
        seedHint.textColor = Color.WHITE;
 | 
					        seedHint.textColor = Color.WHITE;
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        this.seedInput = <TextInput>this.add.uiElement(UIElementType.TEXT_INPUT, "mainMenu", {position: new Vec2(center.x, center.y - 150), text: ""})
 | 
					        this.seedInput = <TextInput>this.add.uiElement(UIElementType.TEXT_INPUT, "mainMenu", {position: new Vec2(center.x, center.y - 250), text: ""})
 | 
				
			||||||
        this.seedInput.size.set(200, 50);
 | 
					        this.seedInput.size.set(200, 50);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Add map button, and give it an event to emit on press
 | 
					        // Add map button, and give it an event to emit on press
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user