Exemple #1
0
        public override void Load()
        {
            TwinSight         = RegisterHotKey("Twin Sight", "Z");
            Main.tileCut[231] = false;
            if (!Main.dedServ)
            {
                //AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Optime"), ItemType("OptimeMusicBox"), TileType("OptimeMusicBox"));
                //AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/NiceGuy"), ItemType("NGMusicBox"), TileType("NGMusicBox"));
                AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/CavityMusic"), ItemType("CavityMusicBox"), TileType("CavityMusicBox"));
                AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/FallenAngel"), ItemType("FAMusicBox"), TileType("FAMusicBox"));

                BarUIStateInfection = new InfectionBar();
                BarUIStateInfection.Activate();
                BarInterfaceInfection = new UserInterface();
                BarInterfaceInfection.SetState(BarUIStateInfection);
            }
            //Filters.Scene["StarShower"] = new Filter(new ScreenShaderData("FilterBloodMoon").UseColor(1.86f, 1.78f, 2.26f).UseOpacity(1f), EffectPriority.VeryHigh);
            Filters.Scene["Host"] = new Filter(new ScreenShaderData("FilterMiniTower").UseColor(2.56f, 2f, 0.54f).UseOpacity(0.5f), EffectPriority.VeryHigh);

            instance = this;

            if (!Main.dedServ)
            {
                PremultiplyTexture(GetTexture("NPCs/FallenAngel/Forcefield"));
            }
        }
Exemple #2
0
        private void LoadUI()
        {
            vitalityBar = new VitalityBar();
            vitalityBar.Activate();
            _interfaceVitality = new UserInterface();
            _interfaceVitality.SetState(vitalityBar);

            shieldBrokenUI = new ShieldBrokenUI();
            shieldBrokenUI.Activate();
            _interfaceShieldBroken = new UserInterface();
            _interfaceShieldBroken.SetState(shieldBrokenUI);

            infectionBar = new InfectionBar();
            infectionBar.Activate();
            _interfaceInfectionBar = new UserInterface();
            _interfaceInfectionBar.SetState(infectionBar);

            noteUI = new NoteUI();
            noteUI.Activate();
            _interfaceNoteUI = new UserInterface();
            _interfaceNoteUI.SetState(noteUI);
        }