public void LoadContent(ContentManager cm) { this.cm = cm; s.LoadContent(cm); for (int i = 0; i < inventory.Length; i++) { inventory[i] = StaticItems.transparent; itemAnzahl[i] = 0; } itemnamefont = cm.Load <SpriteFont>("fonts/SegoeUIBlack"); invnumberfont = cm.Load <SpriteFont>("fonts/InvNumber"); invBar = cm.Load <Texture2D>("textures/inventory/inventory"); invOpen = cm.Load <Texture2D>("textures/inventory/inventoryOpen"); currentSlotTexture = cm.Load <Texture2D>("textures/inventory/currentSlot"); items = cm.Load <Texture2D>("textures/inventory/items"); invWidth = invBar.Width; invHeight = invBar.Height; UpdateResolution(); #if true //AddItem(StaticItems.water, 10); AddItem(StaticItems.particlespawner, 10); AddItem(StaticItems.window1, 5); AddItem(StaticItems.sofa, 10); AddItem(StaticItems.tv, 10); AddItem(StaticItems.speaker, 4); AddItem(StaticItems.discolight, 20); AddItem(StaticItems.lamp1, 10); AddItem(StaticItems.torch, 100); AddItem(StaticItems.magicglass, 10); AddItem(StaticItems.cabinet1, 5); AddItem(StaticItems.plant1, 10); AddItem(StaticItems.fence, 50); AddItem(StaticItems.redjacket, 1); AddItem(StaticItems.yellowjacket, 1); AddItem(StaticItems.blackjacket, 1); AddItem(StaticItems.whitejacket, 1); AddItem(StaticItems.beachchair, 3); //addItem(Item.book1, 1); AddItem(StaticItems.beer, 2); //addItem(Item.disc_GhostBusters, 1); //addItem(Item.disc_Night_Drive, 1); AddItem(StaticItems.sheep, 30); //addItem(Item.joseph, 10); AddItem(StaticItems.grass, 10); AddItem(StaticItems.tree, 10); AddItem(StaticItems.palm, 5); AddItem(StaticItems.fir, 100); //addItem(Item.cristmasStar, 3); //addItem(Item.chessking, 2); #endif CurrentSlot = 1; }