Description:
Load test image.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
|
1 | NO CONTENT: new file 100644, binary diff hidden |
|
NO CONTENT: new file 100644, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -5,7 +5,6 | |||||
|
5 | }, |
|
5 | }, |
|
6 | "projects": { |
|
6 | "projects": { |
|
7 | "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj": { |
|
7 | "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj": { |
|
8 | "version": "1.0.0", |
|
||
|
9 | "restore": { |
|
8 | "restore": { |
|
10 | "projectUniqueName": "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj", |
|
9 | "projectUniqueName": "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj", |
|
11 | "projectName": "FNA", |
|
10 | "projectName": "FNA", |
@@ -54,7 +53,9 | |||||
|
54 | } |
|
53 | } |
|
55 | }, |
|
54 | }, |
|
56 | "frameworks": { |
|
55 | "frameworks": { |
|
57 |
"net45": { |
|
56 | "net45": { |
|
|
57 | "runtimeIdentifierGraphPath": "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/RuntimeIdentifierGraph.json" | ||
|
|
58 | } | ||
|
58 | } |
|
59 | } |
|
59 | } |
|
60 | } |
|
60 | } |
|
61 | } |
@@ -7,7 +7,7 | |||||
|
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/alys/.nuget/packages/</NuGetPackageRoot> |
|
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/alys/.nuget/packages/</NuGetPackageRoot> |
|
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/alys/.nuget/packages/</NuGetPackageFolders> |
|
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/alys/.nuget/packages/</NuGetPackageFolders> |
|
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> |
|
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> |
|
10 |
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5. |
|
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.6.0</NuGetToolVersion> |
|
11 | </PropertyGroup> |
|
11 | </PropertyGroup> |
|
12 | <PropertyGroup> |
|
12 | <PropertyGroup> |
|
13 | <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> |
|
13 | <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> |
@@ -62,7 +62,9 | |||||
|
62 | } |
|
62 | } |
|
63 | }, |
|
63 | }, |
|
64 | "frameworks": { |
|
64 | "frameworks": { |
|
65 |
"net45": { |
|
65 | "net45": { |
|
|
66 | "runtimeIdentifierGraphPath": "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/RuntimeIdentifierGraph.json" | ||
|
|
67 | } | ||
|
66 | } |
|
68 | } |
|
67 | } |
|
69 | } |
|
68 | } No newline at end of file |
|
70 | } |
@@ -1,8 +1,8 | |||||
|
1 | { |
|
1 | { |
|
2 | "version": 2, |
|
2 | "version": 2, |
|
3 | "dgSpecHash": "3AWDv+MZriwMxBTBDorp8FiSvyrXQqppePDYsTfATqNGlipF/pJObt6DcBo8NzTLP21oSN3cyqBrcDukFLx64w==", |
|
3 | "dgSpecHash": "kUPsWi+W/I8KOuiF0fQ9nWh1vVsW3b0wAQVjldBK6JNRF3usvNENwsXcLXddNG6Wh/129HHhkfaanQmLUK7wcA==", |
|
4 | "success": true, |
|
4 | "success": true, |
|
5 |
"projectFilePath": "/ |
|
5 | "projectFilePath": "/Users/alys/repos/isometric-park-fna/SpriteFontPlus/src/SpriteFontPlus.FNA.csproj", |
|
6 | "expectedPackageFiles": [], |
|
6 | "expectedPackageFiles": [], |
|
7 | "logs": [] |
|
7 | "logs": [] |
|
8 | } No newline at end of file |
|
8 | } |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -62,6 +62,8 | |||||
|
62 | private ImGuiRenderer _imGuiRenderer; |
|
62 | private ImGuiRenderer _imGuiRenderer; |
|
63 | private DebugWindow debugWindow; |
|
63 | private DebugWindow debugWindow; |
|
64 |
|
64 | ||
|
|
65 | public ImageMap imageMap; | ||
|
|
66 | |||
|
65 | bool show_another_window; |
|
67 | bool show_another_window; |
|
66 | private bool showInitial; |
|
68 | private bool showInitial; |
|
67 | int messageIndex; |
|
69 | int messageIndex; |
@@ -168,6 +170,8 | |||||
|
168 |
|
170 | ||
|
169 | sound = Content.Load<SoundEffect>("FNASound"); |
|
171 | sound = Content.Load<SoundEffect>("FNASound"); |
|
170 | Tile.TileSetTexture = Content.Load<Texture2D>(@"part4_tileset"); |
|
172 | Tile.TileSetTexture = Content.Load<Texture2D>(@"part4_tileset"); |
|
|
173 | ImageMap.ImageMapTexture = Content.Load<Texture2D>(@"photos_converted"); | ||
|
|
174 | this.imageMap = new ImageMap(500, 400); | ||
|
171 |
|
175 | ||
|
172 | Line.initialize(GraphicsDevice); |
|
176 | Line.initialize(GraphicsDevice); |
|
173 |
|
177 | ||
@@ -623,6 +627,19 | |||||
|
623 | } |
|
627 | } |
|
624 | } |
|
628 | } |
|
625 | } |
|
629 | } |
|
|
630 | |||
|
|
631 | batch.Draw( | ||
|
|
632 | ImageMap.ImageMapTexture, | ||
|
|
633 | new Rectangle( | ||
|
|
634 | 0, // screenx, | ||
|
|
635 | 0, // screeny, | ||
|
|
636 | Tile.TileWidth, Tile.TileHeight), | ||
|
|
637 | imageMap.GetSourceRectangle(1), | ||
|
|
638 | Color.White, | ||
|
|
639 | 0.0f, | ||
|
|
640 | Vector2.Zero, | ||
|
|
641 | SpriteEffects.None, | ||
|
|
642 | 0.9f); | ||
|
626 | #endregion draw_tiles |
|
643 | #endregion draw_tiles |
|
627 |
|
644 | ||
|
628 | #region draw_gridlines |
|
645 | #region draw_gridlines |
@@ -41,6 +41,7 | |||||
|
41 | <Compile Include="DrawVertDeclaration.cs" /> |
|
41 | <Compile Include="DrawVertDeclaration.cs" /> |
|
42 | <Compile Include="ImGuiRenderer.cs" /> |
|
42 | <Compile Include="ImGuiRenderer.cs" /> |
|
43 | <Compile Include="FilledRectangle.cs" /> |
|
43 | <Compile Include="FilledRectangle.cs" /> |
|
|
44 | <Compile Include="ImageMap.cs" /> | ||
|
44 | <Compile Include="Simulation.cs" /> |
|
45 | <Compile Include="Simulation.cs" /> |
|
45 | <Compile Include="Utils\MathUtils.cs" /> |
|
46 | <Compile Include="Utils\MathUtils.cs" /> |
|
46 | <Compile Include="Utils\Node.cs" /> |
|
47 | <Compile Include="Utils\Node.cs" /> |
@@ -77,6 +78,9 | |||||
|
77 | <None Include="Content\part4_tileset.png"> |
|
78 | <None Include="Content\part4_tileset.png"> |
|
78 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
|
79 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
|
79 | </None> |
|
80 | </None> |
|
|
81 | <None Include="Content\photos_converted.png"> | ||
|
|
82 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
|
|
83 | </None> | ||
|
80 | <None Include="Content\iosevka-medium.ttf"> |
|
84 | <None Include="Content\iosevka-medium.ttf"> |
|
81 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
|
85 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
|
82 | </None> |
|
86 | </None> |
You need to be logged in to leave comments.
Login now