Exemplo n.º 1
0
            public XElement ToQBXML(string name)
            {
                XElement xElement = new XElement(name);

                xElement.Add(NoteID.ToQBXML(nameof(NoteID)));
                xElement.Add(Date.ToQBXML(nameof(Date)));
                xElement.Add(Note.ToQBXML(nameof(Note)));
                return(xElement);
            }
Exemplo n.º 2
0
    public Note(NoteID noteID, AudioClip audio, int FXRowNumber)
    {
        this.noteID      = noteID;
        this.audio       = audio;
        this.FXRowNumber = FXRowNumber;

        switch (noteID)
        {
        case Note.NoteID.G:
            keyButton = "Note G";
            break;

        case Note.NoteID.A:
            keyButton = "Note A";
            break;

        case Note.NoteID.B:
            keyButton = "Note B";
            break;

        case Note.NoteID.C:
            keyButton = "Note C";
            break;

        case Note.NoteID.D:
            keyButton = "Note D";
            break;

        case Note.NoteID.E:
            keyButton = "Note E";
            break;

        case Note.NoteID.Fplus:
            keyButton = "Note F+";
            break;

        case Note.NoteID.g8va:
            keyButton = "Note G8va";
            break;
        }
    }
Exemplo n.º 3
0
    public void UpdateInfoText()
    {
        if (GameLogic.CurrentTool != global::NoteType.MOVE)
        {
            infotxt.text = "";
        }
        else
        {
            switch (GlobalState.ShownNoteInfo)
            {
            case GlobalState.NoteInfo.NoteID:
                infotxt.text = NoteID.ToString();
                break;

            case GlobalState.NoteInfo.NoteX:
                infotxt.text = (System.Math.Floor(GlobalState.CurrentChart.note_list[NoteID].x * 100) / 100).ToString("F2");
                break;

            case GlobalState.NoteInfo.NoteY:
                infotxt.text = GlobalState.CurrentChart.note_list[NoteID].y.ToString("F2");
                break;
            }
        }
    }