public override void Load() { //Overhaul = ModLoader.GetMod("TerrariaOverhaul"); kConfig.Initialize(); if (Main.netMode != NetmodeID.Server) { GFX.LoadGfx(); InvSlot[0] = Main.inventoryBackTexture; InvSlot[1] = Main.inventoryBack2Texture; InvSlot[2] = Main.inventoryBack3Texture; InvSlot[3] = Main.inventoryBack4Texture; InvSlot[4] = Main.inventoryBack5Texture; InvSlot[5] = Main.inventoryBack6Texture; InvSlot[6] = Main.inventoryBack7Texture; InvSlot[7] = Main.inventoryBack8Texture; InvSlot[8] = Main.inventoryBack9Texture; InvSlot[9] = Main.inventoryBack10Texture; InvSlot[10] = Main.inventoryBack11Texture; InvSlot[11] = Main.inventoryBack12Texture; InvSlot[12] = Main.inventoryBack13Texture; InvSlot[13] = Main.inventoryBack14Texture; InvSlot[14] = Main.inventoryBack15Texture; InvSlot[15] = Main.inventoryBack16Texture; Main.inventoryBackTexture = GFX.ItemSlot; Main.inventoryBack2Texture = GFX.ItemSlot; Main.inventoryBack3Texture = GFX.ItemSlot; Main.inventoryBack4Texture = GFX.ItemSlot; Main.inventoryBack5Texture = GFX.ItemSlot; Main.inventoryBack6Texture = GFX.ItemSlot; Main.inventoryBack7Texture = GFX.ItemSlot; Main.inventoryBack8Texture = GFX.ItemSlot; Main.inventoryBack9Texture = GFX.ItemSlot; Main.inventoryBack10Texture = GFX.FavouritedSlot; Main.inventoryBack11Texture = GFX.ItemSlot; Main.inventoryBack12Texture = GFX.ItemSlot; Main.inventoryBack13Texture = GFX.ItemSlot; Main.inventoryBack14Texture = GFX.SelectedSlot; Main.inventoryBack15Texture = GFX.ItemSlot; Main.inventoryBack16Texture = GFX.ItemSlot; } Main.player[Main.myPlayer].hbLocked = false; SwordHilt.Initialize(); SwordBlade.Initialize(); SwordAccent.Initialize(); Staff.Initialize(); StaffGem.Initialize(); StaffOrnament.Initialize(); GlyphModifier.Initialize(); }
public override void Load() { overhaul = ModLoader.GetMod("TerrariaOverhaul"); kConfig.Initialize(); if (Main.netMode != 2) { GFX.LoadGFX(ModLoader.GetMod("kRPG")); invslot[0] = Main.inventoryBackTexture; invslot[1] = Main.inventoryBack2Texture; invslot[2] = Main.inventoryBack3Texture; invslot[3] = Main.inventoryBack4Texture; invslot[4] = Main.inventoryBack5Texture; invslot[5] = Main.inventoryBack6Texture; invslot[6] = Main.inventoryBack7Texture; invslot[7] = Main.inventoryBack8Texture; invslot[8] = Main.inventoryBack9Texture; invslot[9] = Main.inventoryBack10Texture; invslot[10] = Main.inventoryBack11Texture; invslot[11] = Main.inventoryBack12Texture; invslot[12] = Main.inventoryBack13Texture; invslot[13] = Main.inventoryBack14Texture; invslot[14] = Main.inventoryBack15Texture; invslot[15] = Main.inventoryBack16Texture; Main.inventoryBackTexture = GFX.itemSlot; Main.inventoryBack2Texture = GFX.itemSlot; Main.inventoryBack3Texture = GFX.itemSlot; Main.inventoryBack4Texture = GFX.itemSlot; Main.inventoryBack5Texture = GFX.itemSlot; Main.inventoryBack6Texture = GFX.itemSlot; Main.inventoryBack7Texture = GFX.itemSlot; Main.inventoryBack8Texture = GFX.itemSlot; Main.inventoryBack9Texture = GFX.itemSlot; Main.inventoryBack10Texture = GFX.favouritedSlot; Main.inventoryBack11Texture = GFX.itemSlot; Main.inventoryBack12Texture = GFX.itemSlot; Main.inventoryBack13Texture = GFX.itemSlot; Main.inventoryBack14Texture = GFX.selectedSlot; Main.inventoryBack15Texture = GFX.itemSlot; Main.inventoryBack16Texture = GFX.itemSlot; } SwordHilt.Initialize(); SwordBlade.Initialize(); SwordAccent.Initialize(); Staff.Initialize(); StaffGem.Initialize(); StaffOrnament.Initialize(); GlyphModifier.Initialize(this); }