public static void Initialize() { if (IHBase.ModOptions["InvButtons"]) { addLayers = (list) => { if (Main.localPlayer.chest != -1) { InterfaceLayer.Add(list, IHBase.Instance.ReplacerButtons, InterfaceLayer.LayerInventory, true); } // --haven't made a replacement for the separate chestbuttons yet else { InterfaceLayer.Add(list, IHBase.Instance.InventoryButtons, InterfaceLayer.LayerInventory, true); } } } ; else { addLayers = (list) => { if (Main.localPlayer.chest != -1) { InterfaceLayer.Add(list, IHBase.Instance.ReplacerButtons, InterfaceLayer.LayerInventory, true); } } }; }
/// <summary> /// Modifies the given interface layer list. /// </summary> /// <param name="list">The interface layer list to modify.</param> public override void ModifyInterfaceLayerList(List <InterfaceLayer> list) { base.ModifyInterfaceLayerList(list); InterfaceLayer.Add(list, MWorld.AccessoryLayer = new AccessorySlotLayer(), InterfaceLayer.LayerInventory, false); InterfaceLayer.Add(list, MWorld.TomeSlotLayer = new TomeSlotLayer(), MWorld.AccessoryLayer, false); }
public override void ModifyInterfaceLayerList(List <InterfaceLayer> list) { base.ModifyInterfaceLayerList(list); InterfaceLayer.Add(list, new OrbLayer(modBase), InterfaceLayer.LayerBars, true); }