Inheritance: ISettingsChange
コード例 #1
0
ファイル: NotesFileItem.cs プロジェクト: Nanook/TheGHOST
 internal NotesFileItem(string sourceName, NotesFile baseFile, NotesFileItem sourceItem, NotesDifficulty sourceDifficulty, NotesDifficulty difficulty)
 {
     this.construct(sourceName, new int[0], new int[0], new int[0], new int[0], new int[0], sourceItem.SustainTrigger);
     this.GenerateNotes(baseFile.Frets, difficulty, sourceItem.Notes, sourceItem.StarPower, sourceItem.BattlePower, sourceDifficulty);
 }
コード例 #2
0
ファイル: NotesEditor.cs プロジェクト: Nanook/TheGHOST
 private void setActiveItem(int index)
 {
     _activeItemIdx = index;
     _activeItem = null;
     if (_ghNotesItems.Count != 0)
     {
         if (_activeItemIdx < _ghNotesItems.Count && _ghNotesItems[_activeItemIdx].IsMapped)
             _activeItem = _ghNotesItems[_activeItemIdx].MappedFileItem;
     }
     else
     {
         if (_activeItemIdx < _notesItems.Count)
             _activeItem = _notesItems[_activeItemIdx];
     }
 }
コード例 #3
0
ファイル: NotesEditor.cs プロジェクト: Nanook/TheGHOST
        private void updateListItem(string name, int imageidx, int idx, NotesFileItem item)
        {
            ListViewItem li = lvw.Items[idx];
            li.Text = name;

            if (imageidx == -1)
            {
                if (item.ButtonsUsed >= 3)
                    li.ImageIndex = item.ButtonsUsed - 3;
                else
                    li.ImageIndex = 0; //easy
            }
            else
                li.ImageIndex = imageidx;

            if (item != null)
            {
                while (li.SubItems.Count <= 4)
                    li.SubItems.Add("");

                li.SubItems[1].Text = item.SyncOffset.ToString();
                li.SubItems[2].Text = item.ButtonsUsed.ToString();
                li.SubItems[3].Text = string.Concat(item.StarPowerCount.ToString(), item.HasGeneratedStarPower ? " *" : string.Empty);
                li.SubItems[4].Text = string.Concat(item.NotesCount.ToString(), item.HasGeneratedNotes ? " *" : string.Empty);
                li.Tag = item;
            }
        }
コード例 #4
0
ファイル: NotesEditor.cs プロジェクト: Nanook/TheGHOST
        private void addListItem(string name, int imageidx, NotesFileItem item)
        {
            ListViewItem li = new ListViewItem(name);

            if (imageidx == -1)
            {
                if (item.ButtonsUsed >= 3)
                    li.ImageIndex = item.ButtonsUsed - 3;
                else
                    li.ImageIndex = 0; //easy
            }
            else
                li.ImageIndex = imageidx;

            if (item != null)
            {
                li.SubItems.Add(item.SyncOffset.ToString());
                li.SubItems.Add(item.ButtonsUsed.ToString());
                li.SubItems.Add(string.Concat(item.StarPowerCount.ToString(), item.HasGeneratedStarPower ? " *" : string.Empty));
                li.SubItems.Add(string.Concat(item.NotesCount.ToString(), item.HasGeneratedNotes ? " *" : string.Empty));
                li.Tag = item;
            }
            li.Checked = true;
            lvw.Items.Add(li);
        }