Пример #1
0
 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);
             }
         }
     };
 }
Пример #2
0
        /// <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);
        }
Пример #3
0
        public override void ModifyInterfaceLayerList(List <InterfaceLayer> list)
        {
            base.ModifyInterfaceLayerList(list);

            InterfaceLayer.Add(list, new OrbLayer(modBase), InterfaceLayer.LayerBars, true);
        }