示例#1
0
        public override void Initialize()
        {
            if (instance == null)
            {
                instance = this;
            }

            sizeMult              = (int)(Math.Floor(Main.maxTilesX / 4200f));
            power                 = 0;
            downedAnnihilator     = false;
            downedPaperCut        = false;
            downedThe404KingSlime = false;
            downedThe404EoC       = false;
            downedThe404EoW       = false;
            downedThe404BoC       = false;
            downedThe404QueenBee  = false;
            downedTheCelestial    = false;
            downedThe404Celestial = false;
            spawned404Crystals    = false;
            hardMode              = false;
            zawarudo              = 0;
            obEnf                 = false;
            bysmal                = false;
            steamPosition         = 0;
        }
示例#2
0
        public override void ModifyInterfaceLayers(List <GameInterfaceLayer> layers)
        {
            MoToolsWorld modWorld = (MoToolsWorld)GetModWorld("MoToolsWorld");

            int resourceBarIndex = layers.FindIndex(layer => layer.Name.Equals("Vanilla: Resource Bars"));

            if (resourceBarIndex != -1)
            {
                layers.Insert(resourceBarIndex, new LegacyGameInterfaceLayer(
                                  "MoTools: Resouce Bars",
                                  delegate
                {
                    _mythicResourceBarUserInterface.Draw(Main.spriteBatch, new GameTime());

                    return(true);
                },
                                  InterfaceScaleType.UI)
                              );
            }
        }