Add dlcpack/itemimages, finalize code
This commit is contained in:
@@ -15,7 +15,6 @@ var inventoryWeight;
|
||||
var items = [[]];
|
||||
|
||||
var grid = [];
|
||||
|
||||
grid[0] = [0.3375, 0.305]
|
||||
grid[1] = [0.4195, 0.305]
|
||||
grid[2] = [0.5015, 0.305]
|
||||
@@ -65,20 +64,6 @@ mp.events.add("showInventory", (invWeight, itemArr) => {
|
||||
mp.events.add("render", () => {
|
||||
if (show === true) {
|
||||
var pos = mp.gui.cursor.position;
|
||||
//DEBUG 2D-SCREEN-KOORDINATEN
|
||||
//mp.game.graphics.drawText("~r~X: " + pos[0] + " ~g~Y: " + pos[1] + "~s~ ---~b~" + parseFloat(pos[0] / screenX).toFixed(3) + " ~y~" + parseFloat(pos[1] / screenY).toFixed(3) + " " + mouseLDown, [pos[0] / screenX, (pos[1] / screenY) - 0.02], {
|
||||
// font: 0,
|
||||
// color: [255, 255, 255, 185],
|
||||
// scale: [0.3, 0.3],
|
||||
// outline: true,
|
||||
//});
|
||||
|
||||
//mp.game.graphics.drawText("~r~drag: " + dragItem + "~s~... ~b~hover:" + hoverItem + "~y~....FREESLOT: " + isMouseOverFreeSlot(pos[0], pos[1]) + "..." + isItemOverSameItem(pos[0], pos[1]), [0.5, 0.02], {
|
||||
// font: 0,
|
||||
// color: [255, 255, 255, 185],
|
||||
// scale: [0.3, 0.3],
|
||||
// outline: true,
|
||||
//});
|
||||
|
||||
mp.game.graphics.set2dLayer(1);
|
||||
//INVENTARHINTERGRUND
|
||||
@@ -340,9 +325,3 @@ mp.events.add('click', (x, y, upOrDown, leftOrRight, relativeX, relativeY, world
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//items[userItems.IndexOf(item)][0] = iItem.Name;
|
||||
//items[userItems.IndexOf(item)][1] = iItem.Description;
|
||||
//items[userItems.IndexOf(item)][2] = iItem.Gewicht.ToString();
|
||||
//items[userItems.IndexOf(item)][3] = item.Amount.ToString();
|
||||
//items[userItems.IndexOf(item)][4] = item.Slot.ToString();
|
||||
BIN
Client/dlcpacks/itemimages/dlc.rpf
Normal file
BIN
Client/dlcpacks/itemimages/dlc.rpf
Normal file
Binary file not shown.
Reference in New Issue
Block a user