Description:
Make buttons keep the same size.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r302:e1cc9ba4031c -

@@ -18,7 +18,7
18 rm -r isometric-park-fna/obj/
18 rm -r isometric-park-fna/obj/
19
19
20 framework-debug: clean-obj
20 framework-debug: clean-obj
21 msbuild -restore:True ${FRAMEWORK_SOLUTION} -p:Configuration=Debug
21 msbuild -restore:True ${FRAMEWORK_SOLUTION} -p:Configuration=Debug
22
22
23
23
24 run-core-debug:
24 run-core-debug:
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -20,5 +20,5
20 [assembly: System.Reflection.AssemblyTitleAttribute("SpriteFontPlus")]
20 [assembly: System.Reflection.AssemblyTitleAttribute("SpriteFontPlus")]
21 [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
21 [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
22
22
23 // Von der MSBuild WriteCodeFragment-Klasse generiert.
23 // Generated by the MSBuild WriteCodeFragment class.
24
24
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -1,6 +1,7
1 //------------------------------------------------------------------------------
1 //------------------------------------------------------------------------------
2 // <auto-generated>
2 // <auto-generated>
3 // This code was generated by a tool.
3 // This code was generated by a tool.
4 // Runtime Version:4.0.30319.42000
4 //
5 //
5 // Changes to this file may cause incorrect behavior and will be lost if
6 // Changes to this file may cause incorrect behavior and will be lost if
6 // the code is regenerated.
7 // the code is regenerated.
@@ -21,5 +22,5
21 [assembly: System.Reflection.AssemblyTitleAttribute("EncompassECS.Framework")]
22 [assembly: System.Reflection.AssemblyTitleAttribute("EncompassECS.Framework")]
22 [assembly: System.Reflection.AssemblyVersionAttribute("0.22.0.0")]
23 [assembly: System.Reflection.AssemblyVersionAttribute("0.22.0.0")]
23
24
24 // Von der MSBuild WriteCodeFragment-Klasse generiert.
25 // Generated by the MSBuild WriteCodeFragment class.
25
26
@@ -21,21 +21,21
21
21
22 ImGui.GetStyle().WindowMenuButtonPosition = ImGuiDir.None;
22 ImGui.GetStyle().WindowMenuButtonPosition = ImGuiDir.None;
23 bool newShow = true;
23 bool newShow = true;
24 Num.Vector2 button_size = new Num.Vector2(80, 20);
24 StyleSet.pushStyleVarSet(StyleSet.defaultWindowVars);
25 StyleSet.pushStyleVarSet(StyleSet.defaultWindowVars);
25 StyleSet.pushColorSet(StyleSet.defaultWindowColors);
26 StyleSet.pushColorSet(StyleSet.defaultWindowColors);
26
27
27 ImGui.PushFont(font);
28 ImGui.PushFont(font);
28 // ImGui.PushFont(smallFont);
29 // ImGui.PushFont(smallFont);
29 ImGui.Begin("##Toolbar", ref newShow, ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoSavedSettings | ImGuiWindowFlags.NoTitleBar);
30 ImGui.Begin("##Toolbar", ref newShow, ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoSavedSettings | ImGuiWindowFlags.NoTitleBar);
30 // ImGui.PopFont();
31
31 //
32 if (ImGui.Button("New Game", button_size))
32 if (ImGui.Button("New Game"))
33 {
33 {
34 bridgeEngine.gameStateMessages.Add(new GameStateMessage { isPlaying = true});
34 bridgeEngine.gameStateMessages.Add(new GameStateMessage { isPlaying = true});
35
35
36
36
37 }
37 }
38 if (ImGui.Button("Quit"))
38 if (ImGui.Button("Quit", button_size))
39 {
39 {
40
40
41 System.Console.WriteLine("Quitting");
41 System.Console.WriteLine("Quitting");
You need to be logged in to leave comments. Login now