Skip to content

Commit

Permalink
List special keys in the main menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Infiziert90 committed Mar 9, 2024
1 parent 358effc commit 4c2271f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions DeathRoll/Bahamood/Renderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,16 @@ public void DrawMainMenu()
Game.CurrentState = State.Credits;
}

var textSize = ImGui.CalcTextSize("ESC - Shutdown Game");
var heightSpacing = textSize.Y * 6.0f; // 5 line height
var widthSpacing = textSize.X * 1.2f;
var rightCorner = new Vector2(fullSize.X - widthSpacing, fullSize.Y - heightSpacing);
drawlist.AddText(rightCorner, Helper.RaycastWhite, "Special Keys:");
rightCorner.Y += textSize.Y;
drawlist.AddText(rightCorner, Helper.RaycastWhite, "ALT - Show Mouse");
rightCorner.Y += textSize.Y;
drawlist.AddText(rightCorner, Helper.RaycastWhite, "ESC - Shutdown Game");

ImGui.PopFont();
}

Expand Down

0 comments on commit 4c2271f

Please sign in to comment.