11.1.0
This commit is contained in:
parent
48b843bc31
commit
8ca0316e26
|
@ -261,30 +261,6 @@ namespace PoE_MxFilterGen.generator
|
|||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iB + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " HasExplicitMod \"Veiled\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetTextColor 255 215 0" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, SetBackgroundColor + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBorderColor 112 255 112 255" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " MinimapIcon 1 Green Star" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " PlayEffect Green" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iB + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " FracturedItem True" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetTextColor 255 215 0" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, SetBackgroundColor + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBorderColor 112 255 112 255" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " MinimapIcon 1 Green Star" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " PlayEffect Green" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iB + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SynthesisedItem True" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetTextColor 255 215 0" + Environment.NewLine, Encoding.UTF8);
|
||||
|
|
|
@ -3,6 +3,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Security.Policy;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
@ -11,6 +12,7 @@ namespace PoE_MxFilterGen.json
|
|||
public class SETTINGS
|
||||
{
|
||||
public string league { get; set; }
|
||||
public List<string> Structures { get; set; }
|
||||
public int tierValue { get; set; }
|
||||
public bool tier1HAxe { get; set; }
|
||||
public bool tier2HAxe { get; set; }
|
||||
|
@ -38,6 +40,12 @@ namespace PoE_MxFilterGen.json
|
|||
public bool install { get; set; }
|
||||
public string path { get; set; }
|
||||
public string structure { get; set; }
|
||||
public List<string> Sizes { get; set; }
|
||||
public List<string> Colors { get; set; }
|
||||
public List<string> Shapes { get; set; }
|
||||
public List<string> Actions { get; set; }
|
||||
public List<string> Conditions { get; set; }
|
||||
public List<string> Operators { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
@ -204,6 +212,12 @@ namespace PoE_MxFilterGen.json
|
|||
return j.tierBaseExclude;
|
||||
}
|
||||
|
||||
internal static List<string> GetStructure()
|
||||
{
|
||||
SETTINGS j = JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText("settings.json"));
|
||||
return j.Structures;
|
||||
}
|
||||
|
||||
public static void WriteSection(string structure)
|
||||
{
|
||||
SETTINGS js = JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText($@"settings.json"));
|
||||
|
@ -236,7 +250,14 @@ namespace PoE_MxFilterGen.json
|
|||
cardValue = js.cardValue,
|
||||
install = js.install,
|
||||
path = js.path,
|
||||
structure = structure
|
||||
structure = structure,
|
||||
Structures = js.Structures,
|
||||
Sizes = js.Sizes,
|
||||
Colors = js.Colors,
|
||||
Shapes = js.Shapes,
|
||||
Actions = js.Actions,
|
||||
Conditions = js.Conditions,
|
||||
Operators = js.Operators
|
||||
};
|
||||
var raw = JsonConvert.SerializeObject(se, Formatting.Indented);
|
||||
File.WriteAllText($@"settings.json", raw);
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace PoE_MxFilterGen
|
|||
internal class main
|
||||
{
|
||||
private static DateTime dt = DateTime.Now;
|
||||
public static string version = "11.0.1";
|
||||
public static string version = "11.1.0";
|
||||
public static string fDate = string.Format("{0}-{1}-{2}", (object)main.dt.Day, (object)main.dt.Month, (object)main.dt.Year);
|
||||
public static string api = "";
|
||||
public static string giturl = "https://mxgit.ovh/mikx";
|
||||
|
@ -97,10 +97,11 @@ namespace PoE_MxFilterGen
|
|||
}
|
||||
}
|
||||
string str = "MxFilter";
|
||||
int sc = structures.Structures().Length;
|
||||
List<string> struc = settings.GetStructure();
|
||||
int sc = struc.Count;
|
||||
msg.CMW(string.Format("Generating the {0} filter using {1} source(s)...", filter, sc), true, 1);
|
||||
main.ftotal = sc;
|
||||
foreach (var structure in structures.Structures())
|
||||
foreach (var structure in settings.GetStructure())
|
||||
{
|
||||
++main.fprog;
|
||||
msg.drawProgress(main.fprog, main.ftotal);
|
||||
|
@ -173,12 +174,12 @@ namespace PoE_MxFilterGen
|
|||
File.AppendAllText(outp, $"#### Contact: mikx@mxpoe.ovh / http://discord.mxg.ovh{Environment.NewLine}");
|
||||
File.AppendAllText(outp, $"{Environment.NewLine}");
|
||||
File.AppendAllText(outp, $"#### SECTIONS{Environment.NewLine}");
|
||||
foreach (var s in structures.Structures())
|
||||
foreach (var s in settings.GetStructure())
|
||||
{
|
||||
File.AppendAllText(outp, $"# {s}{Environment.NewLine}");
|
||||
}
|
||||
File.AppendAllText(outp, $"{Environment.NewLine}");
|
||||
foreach (var structure in structures.Structures())
|
||||
foreach (var structure in settings.GetStructure())
|
||||
{
|
||||
switch (structure)
|
||||
{
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue