Skip to content

Commit

Permalink
PulsarMainWindow: draw nameicons before the rest of the UI, add version
Browse files Browse the repository at this point in the history
  • Loading branch information
behindcurtain3 committed Apr 26, 2024
1 parent ebbd97e commit 34f57ce
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Pulsar4X/Pulsar4X.Client/PulsarMainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ public override void ImGuiRender()

public unsafe override void ImGuiLayout()
{
//because the nameIcons are IMGUI not SDL we draw them here.
_state.GalacticMap.DrawNameIcons();

if (_state.ShowImgDbg)
{
ImGui.NewLine();
Expand Down Expand Up @@ -256,17 +259,14 @@ public unsafe override void ImGuiLayout()
item.Display();
}

//because the nameIcons are IMGUI not SDL we draw them here.
_state.GalacticMap.DrawNameIcons();

// var dispsize = ImGui.GetIO().DisplaySize;
// var pos = new System.Numerics.Vector2(0, dispsize.Y - ImGui.GetFrameHeightWithSpacing());
// ImGui.SetNextWindowPos(pos, ImGuiCond.Always);
// var flags = ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoBackground | ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoSavedSettings | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoNav;
// if (ImGui.Begin("GitHash", flags))
// {
// ImGui.Text(AssemblyInfo.GetGitHash());
// }
var dispsize = ImGui.GetIO().DisplaySize;
var pos = new System.Numerics.Vector2(0, dispsize.Y - ImGui.GetFrameHeightWithSpacing());
ImGui.SetNextWindowPos(pos, ImGuiCond.Always);
var flags = ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoBackground | ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoSavedSettings | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoNav;
if (ImGui.Begin("GitHash", flags))
{
ImGui.Text("Version: " + AssemblyInfo.GetGitHash());
}
}
}
}

0 comments on commit 34f57ce

Please sign in to comment.