Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        TextAsset jsonStr = Resources.Load("Table/MusicTab") as TextAsset;

        musicTab = new MusicTab(jsonStr.text);
        tabCount = musicTab.tabList.Count;
        bpm      = ClapClapMgr.instance.musicData.getMainGameMusicInfo().BPM;
        float bpmSec = 60f / bpm / 8;

        Debug.Log(bpmSec);
        InvokeRepeating("checkTemple", 0, bpmSec);
    }
Ejemplo n.º 2
0
        public void RequestOnlineTitle()
        {
            var window = new MainWindow();
            var track  = TestTrack;

            track.Artist = "aaa";
            track.Album  = "bbb";
            track.Title  = "ccc";

            if (!(window.Controls[0] is MusicPage tab))
            {
                return;
            }
            tab.musicTab.AddTrack(track);
            tab.musicTab.DownloadTrack(track);
            if (!File.Exists(track.filePath))
            {
                Assert.Fail();
            }
            MusicTab.RequestOnlineTitle(track);
        }
Ejemplo n.º 3
0
        private void EditorForm_Load(object sender, EventArgs e)
        {
            Program.Debug.Show();
            if (Program.Start.ShowDialog(this) != DialogResult.OK)
            {
                this.Close();
                return;
            }

            this.overview  = new OverviewTab(this);
            this.screen    = new ScreenTab(this);
            this.map       = new MapTab(this);
            this.cutscenes = new CutscenesTab(this);
            this.tilesets  = new TilesetsTab(this);
            this.gradients = new GradientsTab(this);
            this.music     = new MusicTab(this);
            this.ambiance  = new AmbianceTab(this);
            this.objects   = new ObjectsTab(this);
            this.worldIni  = new WorldIniTab(this);

            StoryChanged();
        }