Skip to content

Commit

Permalink
Updating LuaConsole to account for .ms files, and fixing an error wit…
Browse files Browse the repository at this point in the history
…h EasyComparer
  • Loading branch information
PirateIzzy committed Dec 11, 2024
1 parent 97e66cf commit df547da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WzComparerR2.LuaConsole/Examples/DumpXml.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ end
-- enum all wz_images
for n in enumAllWzNodes(topNode) do
local value = n.Value
if value and type(value) == "userdata" and value:GetType().Name == 'Wz_Image' then
if value and type(value) == "userdata" and (value:GetType().Name == 'Wz_Image' or value:GetType().Name == 'Ms_Image') then
local img = value

--extract wz image
Expand Down
2 changes: 1 addition & 1 deletion WzComparerR2/Comparer/EasyComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ private void SaveTooltip(string skillTooltipPath)
int picH = 13;
GearGraphics.DrawPlainText(g, skillType, skillTypeFont, Color.FromArgb(255, 255, 255), 2, (int)Math.Ceiling(skillTypeTextInfo.Width) + 2, ref picH, 10);

string imageName = Path.Combine(skillTooltipPath, "Skill_" + skillID + '[' + (ItemStringHelper.GetJobName(int.Parse(skillID) / 10000) ?? "Etc") + "]_" + skillName + "_" + skillType + ".png")
string imageName = Path.Combine(skillTooltipPath, "Skill_" + skillID + '[' + (ItemStringHelper.GetJobName(int.Parse(skillID) / 10000) ?? "Etc") + "]_" + skillName + "_" + skillType + ".png");
if (!File.Exists(imageName))
{
resultImage.Save(imageName, System.Drawing.Imaging.ImageFormat.Png);
Expand Down

0 comments on commit df547da

Please sign in to comment.