Description:
More refactoring.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r435:a819423abe8f -

@@ -163,7 +163,6
163 163
164 164 Content.RootDirectory = "Content";
165 165
166
167 166 }
168 167
169 168 protected override void Initialize()
@@ -272,7 +271,7
272 271 WorldBuilder.AddEngine(new TraceryBridgeEngine(this.grammar));
273 272
274 273 WorldBuilder.AddGeneralRenderer(new AreaRenderer(this.batch, this.monoFont), 1);
275 WorldBuilder.AddGeneralRenderer(new ImGuiWindowRenderer(this, this.simulation, debugWindow.monoFont, debugWindow.italicFont, this.imGuiWindowBridgeEngine, this.gdm) , 2);
274 WorldBuilder.AddGeneralRenderer(new ImGuiWindowRenderer(this, this.simulation, this.imGuiWindowBridgeEngine, this.gdm) , 2);
276 275 var contractWindow = WorldBuilder.CreateEntity();
277 276 WorldBuilder.SetComponent(contractWindow, new VisibilityComponent { visible = false });
278 277 WorldBuilder.SetComponent(contractWindow, new WindowTypeComponent { type = isometricparkfna.Messages.Window.Contracts });
@@ -21,17 +21,14
21 21
22 22 class ImGuiWindowRenderer : GeneralRenderer
23 23 {
24 private ImFontPtr italicFont;
25 24 private ImGuiWindowBridgeEngine BridgeEngine;
26 25 private FNAGame game;
27 26 private Simulation simulation;
28 27
29 28 private GraphicsDeviceManager gdm;
30 29
31 public ImGuiWindowRenderer(FNAGame game, Simulation simulation, ImFontPtr font, ImFontPtr italicFont, ImGuiWindowBridgeEngine engine, GraphicsDeviceManager gdm)
30 public ImGuiWindowRenderer(FNAGame game, Simulation simulation, ImGuiWindowBridgeEngine engine, GraphicsDeviceManager gdm)
32 31 {
33 // this.font = font;
34 this.italicFont = italicFont;
35 32 this.BridgeEngine = engine;
36 33 this.game = game;
37 34 this.simulation = simulation;
@@ -127,7 +124,7
127 124
128 125 var area = GetComponent<AreaComponent>(data.entity).squares;
129 126
130 ContractWindow.Render(this.BridgeEngine.font, this.italicFont, this.BridgeEngine, data);
127 ContractWindow.Render(this.BridgeEngine.font, this.BridgeEngine.italicFont, this.BridgeEngine, data);
131 128
132 129 break;
133 130 case Window.News:
@@ -49,11 +49,6
49 49 ImGui.SliderInt("Tree Clearing", ref new_tree_clearing, 0, Simulation.MAX_TREES_TO_CLEAR, string.Format("%d (${0})", new_tree_clearing*Simulation.TREE_CLEAR_COST));
50 50 sim.tree_clearing = new_tree_clearing;
51 51
52 ImGui.Checkbox("Enforce Trespassing.", ref enforceTresspassing1);
53
54 ImGui.Text("Enforce tresspassing?");
55 ImGui.SameLine();
56
57 52 if (ImGui.BeginCombo("##tresspassing2", enforceTresspassing2))
58 53 {
59 54
You need to be logged in to leave comments. Login now