예제 #1
0
    public static void OpenHuntUI(int mapId = 0)
    {
        if (!SystemOpenManager.IsSystemClickOpen(74, 0, true))
        {
            return;
        }
        HuntUI huntUI = UIManagerControl.Instance.OpenUI("HuntUI", UINodesManager.NormalUIRoot, false, UIType.FullScreen) as HuntUI;

        if (mapId > 0)
        {
            huntUI.OpenHuntCityById(mapId);
        }
    }
예제 #2
0
        public override void Load()
        {
            instance           = this;
            ArmorAbilityHotKey = RegisterHotKey("Armor Ability", "Z");
            if (!Main.dedServ)
            {
                //AddEquipTexture(null, EquipType.Legs, "GenjiArmorMagic_Legs", "JoostMod/Items/Armor/GenjiArmorMagic_Legs");
                AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/TheDecisiveBattle"), ItemType("DecisiveBattleMusicBox"), TileType("DecisiveBattleMusicBox"));
                AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/VsSAX"), ItemType("SAXMusicBox"), TileType("SAXMusicBox"));
                AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/ClashOnTheBigBridge"), ItemType("COTBBMusicBox"), TileType("COTBBMusicBox"));
                AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DeoremMua"), ItemType("DeoremMuaMusicBox"), TileType("DeoremMuaMusicBox"));

                // Custom UI
                huntUI = new HuntUI();
                huntUI.Activate();
                huntUserInterface = new UserInterface();
                huntUserInterface.SetState(null);
            }
        }