radarcolors as delimited textfile
Posted: Mon Oct 22, 2012 12:56 am
Hallo there,
I would like to export a delimited textfile which contains landtiles and items with their respective radarcolors (best would be as r;g;b).
In the sourcecode there exists a public static function to at least save all colors:
But it doesn't seem implemented in the GUI if I am not wrong. Could you please implement it and if it already is: Can you tell me where to find the option in the GUI.
Thank you very much!
I would like to export a delimited textfile which contains landtiles and items with their respective radarcolors (best would be as r;g;b).
In the sourcecode there exists a public static function to at least save all colors:
Code: Select all
public static void ExportToCSV(string FileName)
{
using (StreamWriter Tex = new StreamWriter(new FileStream(FileName, FileMode.Create, FileAccess.ReadWrite), System.Text.Encoding.GetEncoding(1252)))
{
Tex.WriteLine("ID;Color");
for (int i = 0; i < m_Colors.Length; ++i)
{
Tex.WriteLine(String.Format("0x{0:X4};{1}", i, m_Colors[i]));
}
}
}
Thank you very much!