Changes

Jump to navigation Jump to search
397 bytes added ,  03:22, 17 October 2021
Line 24: Line 24:  
                 {
 
                 {
 
                     string soundIdLabel = sound.Id.ToString("X").ToLower().PadLeft(8, '0');
 
                     string soundIdLabel = sound.Id.ToString("X").ToLower().PadLeft(8, '0');
                     output.AppendLine($"|-\n| <tt>{sound.Name}</tt>\n| <tt>{soundIdLabel}</tt>\n| ");
+
                     output.AppendLine($"|-\n| <tt>{sound.Name}</tt>\n| data-sort-value=\"{sound.Id}\"| <tt>{soundIdLabel}</tt>\n| ");
 
                 }
 
                 }
   Line 81: Line 81:     
                 // export tracks
 
                 // export tracks
                 foreach (int id in ids)
+
                 if (ids.Any())
 +
                {
 +
                    foreach (int id in ids)
 +
                    {
 +
                        yield return new SoundInfo
 +
                        {
 +
                            Category = category,
 +
                            Name = name,
 +
                            Id = id
 +
                        };
 +
                    }
 +
                }
 +
                else
 
                 {
 
                 {
 
                     yield return new SoundInfo
 
                     yield return new SoundInfo
Line 87: Line 99:  
                         Category = category,
 
                         Category = category,
 
                         Name = name,
 
                         Name = name,
                         Id = id
+
                         Id = 0
 
                     };
 
                     };
 
                 }
 
                 }
Line 118: Line 130:  
}
 
}
 
</syntaxhighlight>}}
 
</syntaxhighlight>}}
—<small>[[User:Pathoschild|Pathoschild]] ([[User talk:Pathoschild|talk]]) 02:18, 17 October 2021 (UTC)</small>
+
—<small>[[User:Pathoschild|Pathoschild]] ([[User talk:Pathoschild|talk]]) 03:22, 17 October 2021 (UTC)</small>
translators
8,450

edits

Navigation menu