Skip to content

Commit

Permalink
Added scrollbar on crafting list
Browse files Browse the repository at this point in the history
Added the possibility to add a custom scenario when teleporting before crafting
  • Loading branch information
ShishioValentine committed Mar 6, 2021
2 parents fe822d0 + 3a9df59 commit 0734f1f
Show file tree
Hide file tree
Showing 18 changed files with 52 additions and 24 deletions.
18 changes: 16 additions & 2 deletions MainUserControlV2.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion MainUserControlV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ private void SearchThread()
jobs = _jobFilter;
}
Service_Misc.LogText(_logTextBox, "Alright, let's look for " + elemToSearch);
List<FFXIVSearchItem> listResults = GarlandTool.Search(elemToSearch, _logTextBox, FFXIVItem.TypeItem.Crafted, jobs, minLevel, maxLevel);
bool searchForGathered = VPThreading.GetChecked(_gatherIemCheckBox);
List<FFXIVSearchItem> listResults = GarlandTool.Search(elemToSearch, _logTextBox, searchForGathered ? FFXIVItem.TypeItem.Gathered : FFXIVItem.TypeItem.Crafted, jobs, minLevel, maxLevel);

//Storing in options
MiqoCraftOptions options = new MiqoCraftOptions();
Expand Down
45 changes: 26 additions & 19 deletions MiqoCraftCore/GarlandTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,31 +89,38 @@ public static List<FFXIVSearchItem> Search(string iElemToSearch, System.Windows.
item.UrlImage = "http://garlandtools.org/files/icons/item/" + dataToken["c"].Value<string>() + ".png";
item.UrlGarland = "http://garlandtools.org/db/#item/" + dataToken["i"].Value<string>();

if (dataToken["f"] != null && iType == FFXIVItem.TypeItem.Crafted)
if (dataToken["f"] != null)
{
string jobID = dataToken["f"][0]["job"].Value<string>();
string itemClass = GetJobName(jobID);
string itemLevel = dataToken["f"][0]["lvl"].Value<string>();
int level = 0;
int.TryParse(itemLevel, out level);
if (iMinLevel > 0 && level < iMinLevel)
try
{
Service_Misc.LogText(iLogBox, "Found something but its level is under the requested min level : " + itemName + " - Level : " + itemLevel);
continue;
string itemLevel = dataToken["f"][0]["lvl"].Value<string>();
int level = 0;
int.TryParse(itemLevel, out level);
if (iMinLevel > 0 && level < iMinLevel)
{
Service_Misc.LogText(iLogBox, "Found something but its level is under the requested min level : " + itemName + " - Level : " + itemLevel);
continue;
}
if (iMaxLevel > 0 && level > iMaxLevel)
{
Service_Misc.LogText(iLogBox, "Found something but its level is over the requested max level : " + itemName + " - Level : " + itemLevel);
continue;
}

string jobID = dataToken["f"][0]["job"].Value<string>();
string itemClass = GetJobName(jobID);
if (null != iJobs && iJobs.Count > 0 && !iJobs.Contains(itemClass.ToUpper()) && !iJobs.Contains(itemClass.ToLower()))
{
Service_Misc.LogText(iLogBox, "Found something but its job is not in the requested list : " + itemName + " - Job : " + itemClass);
continue;
}
item.Class = itemClass;
item.Level = itemLevel;
}
if (iMaxLevel > 0 && level > iMaxLevel)
catch
{
Service_Misc.LogText(iLogBox, "Found something but its level is over the requested max level : " + itemName + " - Level : " + itemLevel);
continue;
}

if (null != iJobs && iJobs.Count > 0 && !iJobs.Contains(itemClass.ToUpper()) && !iJobs.Contains(itemClass.ToLower()))
{
Service_Misc.LogText(iLogBox, "Found something but its job is not in the requested list : " + itemName + " - Job : " + itemClass);
continue;
}
item.Class = itemClass;
item.Level = itemLevel;
}
else if (iType == FFXIVItem.TypeItem.Crafted)
{
Expand Down
6 changes: 6 additions & 0 deletions MiqoCraftCore/Service_Misc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,12 @@ public static string RemoveIllegalCharacters(string iString)
.Replace("+3?}", "+3\"}")
.Replace("+4?}", "+4\"}")
.Replace("+5?}", "+5\"}")
.Replace("+1}", "+1\"}")
.Replace("+1}", "+1\"}")
.Replace("+2}", "+2\"}")
.Replace("+3}", "+3\"}")
.Replace("+4}", "+4\"}")
.Replace("+5}", "+5\"}")
.Replace("・・", "\"");
}
}
Expand Down
Binary file not shown.
Binary file modified MiqoCraftMapViewer/bin/Debug/MiqoCraftMapViewer.exe
Binary file not shown.
Binary file modified MiqoCraftMapViewer/bin/Debug/MiqoCraftMapViewer.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
539c83ca086490ca436a5c765dabe11a14dd0231
6a3f064ecbd128374256a13c8e499a6ff1cad7f4
Binary file not shown.
Binary file modified MiqoCraftMapViewer/obj/Debug/MiqoCraftMapViewer.exe
Binary file not shown.
Binary file modified MiqoCraftMapViewer/obj/Debug/MiqoCraftMapViewer.pdb
Binary file not shown.
Binary file not shown.
Binary file modified MiqoGridFinder/bin/Debug/MiqoGridFinder.exe
Binary file not shown.
Binary file modified MiqoGridFinder/bin/Debug/MiqoGridFinder.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2e46e225bf9d275bb6a2f817420138afb76c617d
a355edc08d78a768a7cd4d54243a77346b740f48
Binary file not shown.
Binary file modified MiqoGridFinder/obj/Debug/MiqoGridFinder.exe
Binary file not shown.
Binary file modified MiqoGridFinder/obj/Debug/MiqoGridFinder.pdb
Binary file not shown.

0 comments on commit 0734f1f

Please sign in to comment.