Started kind of working on making a GUI for the Inventory.
This commit is contained in:
		
							parent
							
								
									5b5465ab97
								
							
						
					
					
						commit
						654e71f14f
					
				
					 4 changed files with 11 additions and 0 deletions
				
			
		
							
								
								
									
										5
									
								
								gui/inventoryGUI.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								gui/inventoryGUI.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					function inventoryGUI() {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function drawInventoryGUI() {
 | 
				
			||||||
 | 
						OS.context.drawImage(guiBackground, 0, 0, 240, 240, 2 * OS.S.pixelScale, 2 * OS.S.pixelScale, 240, 240);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										
											BIN
										
									
								
								images/guiBackground.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								images/guiBackground.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 811 B  | 
							
								
								
									
										
											BIN
										
									
								
								images/sources/guiBackground.pyxel
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								images/sources/guiBackground.pyxel
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										6
									
								
								loadGUIs.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								loadGUIs.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					function loadGUIs() {
 | 
				
			||||||
 | 
						OS.AddScript("gui/inventoryGUI.js");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var guiBackground = new Image();
 | 
				
			||||||
 | 
					guiBackground.src = "images/guiBackground.png";
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue