Description:
Misc foundational changes: UpdateTime and gdm fields.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r49:1ae8283a0919 -

1 NO CONTENT: modified file, binary diff hidden
@@ -51,7 +51,7
51 51 "frameworks": {
52 52 "net45": {
53 53 "targetAlias": "net45",
54 "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/5.0.101/RuntimeIdentifierGraph.json"
54 "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/5.0.102/RuntimeIdentifierGraph.json"
55 55 }
56 56 }
57 57 }
@@ -65,7 +65,7
65 65 "frameworks": {
66 66 "net45": {
67 67 "targetAlias": "net45",
68 "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/5.0.101/RuntimeIdentifierGraph.json"
68 "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/5.0.102/RuntimeIdentifierGraph.json"
69 69 }
70 70 }
71 71 }
@@ -1,6 +1,6
1 1 {
2 2 "version": 2,
3 "dgSpecHash": "sLS5t/lm8+OjmBMUSq4Oa+qj1nmlP4hv1nbhrDkCyh4cFv0feKffMuOUJCnVyo3CemM3wJ8x9kse/rI52oJ1pQ==",
3 "dgSpecHash": "QbljAP9YfnlfGt9DK+paIbf2KN67CHfFFP459FIA09f6Vs2u4/bm6jOZkhaagMtqNxlEucQ1En4ss24qjT71BA==",
4 4 "success": true,
5 5 "projectFilePath": "/Users/alys/repos/isometric-park-fna/SpriteFontPlus/src/SpriteFontPlus.FNA.csproj",
6 6 "expectedPackageFiles": [],
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
@@ -20,7 +20,7
20 20 public Vector2 mouseGrid;
21 21 public Boolean hasTree;
22 22 public int tilesDrawn;
23
23 internal object updateTime;
24 24 }
25 25
26 26 public class DebugWindow
@@ -39,6 +39,8
39 39 int frameCounter = 0;
40 40 TimeSpan elapsedTime = TimeSpan.Zero;
41 41 TimeSpan drawTime = TimeSpan.Zero;
42 TimeSpan updateTime = TimeSpan.Zero;
43
42 44 Queue<float> past_fps = new Queue<float>(100);
43 45 int tilesDrawn = 0;
44 46
@@ -77,6 +79,7
77 79 private Grammar grammar;
78 80 private string output;
79 81 private bool showSecond = true;
82 private GraphicsDeviceManager gdm;
80 83
81 84 private static void Main(string[] args)
82 85 {
@@ -97,7 +100,7
97 100 }
98 101 ;
99 102 #endif
100 GraphicsDeviceManager gdm = new GraphicsDeviceManager(this)
103 this.gdm = new GraphicsDeviceManager(this)
101 104 {
102 105
103 106 // Typically you would load a config here...
@@ -799,6 +802,7
799 802 pastFps = past_fps.ToArray(),
800 803 cameraPosition = camera.position,
801 804 drawTime = this.drawTime,
805 updateTime = this.updateTime,
802 806 treeCount = this.simulation.map.tree_count,
803 807 mouseGrid = this.mouseGrid,
804 808 hasTree = has_tree,
@@ -821,14 +825,17
821 825 additionalInfo.Add("Tracery Test", this.output);
822 826 debugWindow.Layout(debugInfo, additionalInfo, ref show_another_window);
823 827
824 //String[] messages = { "Message1", "Message2" };
828
829 debugWindow.ImGuiLayout();
825 830
826 //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" },
827 // new DialogOption{ response="Make sure that you keep visitors happy and the budget in the black! You're currently getting an annual grant out of my budget—it'd sure be nice if you park were self-sufficient so we could drop that expense!", choice="And I need to keep the forest healthy, too, right?" },
828 // new DialogOption{ response="Oh yeah, of course.", choice="..." }};
831 //String[] messages = { "Message1", "Message2" };
832
833 //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" },
834 // new DialogOption{ response="Make sure that you keep visitors happy and the budget in the black! You're currently getting an annual grant out of my budget—it'd sure be nice if you park were self-sufficient so we could drop that expense!", choice="And I need to keep the forest healthy, too, right?" },
835 // new DialogOption{ response="Oh yeah, of course.", choice="..." }};
829 836
830 837
831 if (this.currentNode != null)
838 if (this.currentNode != null)
832 839 {
833 840 this.currentNode = DialogInterface.RenderDialog(ref this.showInitial,
834 841 ref this.simulation.paused, debugWindow.monoFont, this.currentNode);
You need to be logged in to leave comments. Login now