Skip to content

Commit

Permalink
show all possible den locations on map
Browse files Browse the repository at this point in the history
closes #42
  • Loading branch information
architdate committed Dec 16, 2022
1 parent 8e88b53 commit 9951d6d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,14 @@ private static Image ApplyColor(Image img, SpriteBackgroundType type, Color colo
{
var x = (den_locations[$"{raid.Area}-{raid.Den}"][0] + 2.072021484) * 512 / 5000;
var y = (den_locations[$"{raid.Area}-{raid.Den}"][2] + 5255.240018) * 512 / 5000;
return ImageUtil.LayerImage(map, gem, (int)x, (int)y);
var mapimg = ImageUtil.LayerImage(map, gem, (int)x, (int)y);
if (den_locations.ContainsKey($"{raid.Area}-{raid.Den}_"))
{
x = (den_locations[$"{raid.Area}-{raid.Den}_"][0] + 2.072021484) * 512 / 5000;
x = (den_locations[$"{raid.Area}-{raid.Den}_"][0] + 2.072021484) * 512 / 5000;
mapimg = ImageUtil.LayerImage(mapimg, gem, (int)x, (int)y);
}
return mapimg;
}
catch { return null; }
}
Expand Down
4 changes: 2 additions & 2 deletions RaidCrawler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>MightiestMark.ico</ApplicationIcon>
<AssemblyVersion>1.0.7</AssemblyVersion>
<FileVersion>1.0.7</FileVersion>
<AssemblyVersion>1.0.8</AssemblyVersion>
<FileVersion>1.0.8</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Subforms/MapView.Designer.cs

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

0 comments on commit 9951d6d

Please sign in to comment.