Description:
Make budget window move more easily.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r56:4a106ab89830 -

1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
@@ -8,7 +8,12
8 8 "restore": {
9 9 "projectUniqueName": "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj",
10 10 "projectName": "FNA",
11 "projectPath": "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj"
11 "projectPath": "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj",
12 "frameworks": {
13 "net48": {
14 "projectReferences": {}
15 }
16 }
12 17 },
13 18 "frameworks": {
14 19 "net48": {}
@@ -34,7 +39,6
34 39 },
35 40 "frameworks": {
36 41 "net45": {
37 "targetAlias": "net45",
38 42 "projectReferences": {
39 43 "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj": {
40 44 "projectPath": "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj"
@@ -50,8 +54,7
50 54 },
51 55 "frameworks": {
52 56 "net45": {
53 "targetAlias": "net45",
54 "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/5.0.102/RuntimeIdentifierGraph.json"
57 "runtimeIdentifierGraphPath": "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/RuntimeIdentifierGraph.json"
55 58 }
56 59 }
57 60 }
@@ -7,11 +7,8
7 7 <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/alys/.nuget/packages/</NuGetPackageRoot>
8 8 <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/alys/.nuget/packages/</NuGetPackageFolders>
9 9 <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.8.0</NuGetToolVersion>
10 <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.6.0</NuGetToolVersion>
11 11 </PropertyGroup>
12 <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 <SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageFolders)))" />
14 </ItemGroup>
15 12 <PropertyGroup>
16 13 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
17 14 </PropertyGroup>
@@ -48,7 +48,6
48 48 },
49 49 "frameworks": {
50 50 "net45": {
51 "targetAlias": "net45",
52 51 "projectReferences": {
53 52 "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj": {
54 53 "projectPath": "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj"
@@ -64,8 +63,7
64 63 },
65 64 "frameworks": {
66 65 "net45": {
67 "targetAlias": "net45",
68 "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/5.0.102/RuntimeIdentifierGraph.json"
66 "runtimeIdentifierGraphPath": "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/RuntimeIdentifierGraph.json"
69 67 }
70 68 }
71 69 }
@@ -1,6 +1,6
1 1 {
2 2 "version": 2,
3 "dgSpecHash": "QbljAP9YfnlfGt9DK+paIbf2KN67CHfFFP459FIA09f6Vs2u4/bm6jOZkhaagMtqNxlEucQ1En4ss24qjT71BA==",
3 "dgSpecHash": "kUPsWi+W/I8KOuiF0fQ9nWh1vVsW3b0wAQVjldBK6JNRF3usvNENwsXcLXddNG6Wh/129HHhkfaanQmLUK7wcA==",
4 4 "success": true,
5 5 "projectFilePath": "/Users/alys/repos/isometric-park-fna/SpriteFontPlus/src/SpriteFontPlus.FNA.csproj",
6 6 "expectedPackageFiles": [],
@@ -42,23 +42,18
42 42 else
43 43 {
44 44 this.mouseEnd = new Vector2(mouseCur.X, mouseCur.Y);
45 this.x = MathUtils.Clamp(this.x + (int)(this.mouseEnd.X - this.mouseStart.X), 0, 700);
46 this.y = MathUtils.Clamp(this.y + (int)(this.mouseEnd.Y - this.mouseStart.Y), 0, 400);
45 47 }
46 48 }
47 49 else if (mousePrev.LeftButton == ButtonState.Pressed)
48 50 {
49 this.x = MathUtils.Clamp(this.x + (int)(this.mouseEnd.X - this.mouseStart.X), 0, 700);
50 this.y = MathUtils.Clamp(this.y + (int)(this.mouseEnd.Y - this.mouseStart.Y), 0, 400);
51 51
52 52 }
53 this.mouseStart = new Vector2(mouseCur.X, mouseCur.Y);
53 54
54 55 this.mousePrev = mouseCur;
55 56
56 //if ((mouseCur.LeftButton == ButtonState.Pressed)
57 // && MathUtils.Between(mouseCur.X, x, 700 + x)
58 // && MathUtils.Between(mouseCur.Y, y, 500 + y))
59 //{
60 // this.x += 50;
61 //}
62 57 }
63 58
64 59 public void draw(SpriteBatch batch)
@@ -875,8 +875,7
875 875 debugWindow.Layout(debugInfo, additionalInfo, ref show_another_window);
876 876
877 877
878 debugWindow.ImGuiLayout();
879
878 //debugWindow.ImGuiLayout();
880 879 //String[] messages = { "Message1", "Message2" };
881 880
882 881 //DialogOption[] dialog = { new DialogOption{ response="Welcome to your new park, director! You can use the mouse or arrow keys to move around, and the plus and minus keys to zoom in and out.", choice="Okay" },
@@ -912,7 +911,7
912 911
913 912 //Upper right
914 913 //float x = this.mouseGrid.X;
915 //float y = this.mouseGrid.Y;
914 //float y = this.mouseGrid.Y;
916 915 Line.drawLine(batch,
917 916 new Vector2(((x - y) * Tile.TileSpriteWidth / 2), (x + y) * Tile.TileSpriteHeight / 2) + adjust2,
918 917 //new Vector2(this.squaresAcross * Tile.TileSpriteWidth, (y+1) * Tile.TileSpriteHeight),
You need to be logged in to leave comments. Login now