style-coppin

This commit is contained in:
Raymond 2021-09-28 18:15:39 -04:00
parent 7a967d5968
commit 658c3fa169

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
@ -342,6 +342,15 @@ namespace Dalamud.Interface.Internal.Windows.StyleEditor
}
}
private static string GetRandomName()
{
var data = Service<DataManager>.Get();
var names = data.GetExcelSheet<BNpcName>(ClientLanguage.English);
var rng = new Random();
return names.ElementAt(rng.Next(0, names.Count() - 1)).Singular.RawString;
}
private void SaveStyle()
{
if (this.currentSel == 0)
@ -356,14 +365,5 @@ namespace Dalamud.Interface.Internal.Windows.StyleEditor
config.Save();
}
private static string GetRandomName()
{
var data = Service<DataManager>.Get();
var names = data.GetExcelSheet<BNpcName>(ClientLanguage.English);
var rng = new Random();
return names.ElementAt(rng.Next(0, names.Count() - 1)).Singular.RawString;
}
}
}