Started kind of working on making a GUI for the Inventory.

This commit is contained in:
Robbie Antenesse 2016-04-09 20:13:08 -06:00
parent 5b5465ab97
commit 654e71f14f
4 changed files with 11 additions and 0 deletions

5
gui/inventoryGUI.js Normal file
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 811 B

Binary file not shown.

6
loadGUIs.js Normal file
View File

@ -0,0 +1,6 @@
function loadGUIs() {
OS.AddScript("gui/inventoryGUI.js");
}
var guiBackground = new Image();
guiBackground.src = "images/guiBackground.png";