diff --git a/LuckParser/Controllers/Controller1.cs b/LuckParser/Controllers/Controller1.cs index 9d693f48b0..1f7a06c5d7 100644 --- a/LuckParser/Controllers/Controller1.cs +++ b/LuckParser/Controllers/Controller1.cs @@ -10,6 +10,7 @@ using System.Net; using LuckParser.Models; using System.IO.Compression; +using System.Windows.Forms; //recomend CTRL+M+O to collapse all namespace LuckParser.Controllers { @@ -2669,7 +2670,7 @@ public void CreatePlayerTab(StreamWriter sw) { "source: '" + skillIcon + "'," + "xref: 'x'," + "yref: 'y'," + - "x: " + cl.getTime() / 1000f + "," + + "x: " + (cl.getTime() / 1000f) + "," + "y: 0," + "sizex: 1.1," + "sizey: 1.1," + @@ -3223,6 +3224,7 @@ public void CreateEventList(StreamWriter sw) { } public void CreateHTML(StreamWriter sw,bool[] settingsSnap) { + SnapSettings = settingsSnap; BossData b_data = getBossData(); double fight_duration = (b_data.getLastAware() - b_data.getFirstAware()) / 1000.0; diff --git a/LuckParser/Form1.cs b/LuckParser/Form1.cs index 6bcbc094c7..0031b650d0 100644 --- a/LuckParser/Form1.cs +++ b/LuckParser/Form1.cs @@ -119,6 +119,10 @@ void m_oWorker_DoWork(object sender, DoWorkEventArgs e) int pos = path.LastIndexOf("/") + 1; string file = path.Substring(pos, path.Length - pos); int pos1 = file.LastIndexOf(".") + 1; + if(path.EndsWith(".evtc.zip", StringComparison.OrdinalIgnoreCase)){ + pos1 = pos1 - 5; + } + string appendix = file.Substring(pos1, file.Length - pos1); string fileName = file.Substring(0, pos1 - 1); diff --git a/LuckParser/Program.cs b/LuckParser/Program.cs index be8117d967..78c9f40a1a 100644 --- a/LuckParser/Program.cs +++ b/LuckParser/Program.cs @@ -14,7 +14,7 @@ static class Program [STAThread] static void Main() { - + Application.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US"); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1());