|
|
@@ -101,23 +101,23 @@ static void ShowHelpMarker(const char* desc)
|
|
|
void ImGui::ShowUserGuide()
|
|
|
{
|
|
|
ImGui::BulletText("Double-click on title bar to collapse window.");
|
|
|
- ImGui::BulletText("Click and drag on lower right corner to resize window.");
|
|
|
+ ImGui::BulletText("Click and drag on lower right corner to resize window\n(double-click to auto fit window to its contents).");
|
|
|
ImGui::BulletText("Click and drag on any empty space to move window.");
|
|
|
- ImGui::BulletText("Mouse Wheel to scroll.");
|
|
|
+ ImGui::BulletText("TAB/SHIFT+TAB to cycle through keyboard editable fields.");
|
|
|
+ ImGui::BulletText("CTRL+Click on a slider or drag box to input value as text.");
|
|
|
if (ImGui::GetIO().FontAllowUserScaling)
|
|
|
ImGui::BulletText("CTRL+Mouse Wheel to zoom window contents.");
|
|
|
- ImGui::BulletText("TAB/SHIFT+TAB to cycle through keyboard editable fields.");
|
|
|
- ImGui::BulletText("CTRL+Click on a slider or drag box to input text.");
|
|
|
- ImGui::BulletText(
|
|
|
- "While editing text:\n"
|
|
|
- "- Hold SHIFT or use mouse to select text\n"
|
|
|
- "- CTRL+Left/Right to word jump\n"
|
|
|
- "- CTRL+A or double-click to select all\n"
|
|
|
- "- CTRL+X,CTRL+C,CTRL+V clipboard\n"
|
|
|
- "- CTRL+Z,CTRL+Y undo/redo\n"
|
|
|
- "- ESCAPE to revert\n"
|
|
|
- "- You can apply arithmetic operators +,*,/ on numerical values.\n"
|
|
|
- " Use +- to subtract.\n");
|
|
|
+ ImGui::BulletText("Mouse Wheel to scroll.");
|
|
|
+ ImGui::BulletText("While editing text:\n");
|
|
|
+ ImGui::Indent();
|
|
|
+ ImGui::BulletText("Hold SHIFT or use mouse to select text.");
|
|
|
+ ImGui::BulletText("CTRL+Left/Right to word jump.");
|
|
|
+ ImGui::BulletText("CTRL+A or double-click to select all.");
|
|
|
+ ImGui::BulletText("CTRL+X,CTRL+C,CTRL+V to use clipboard.");
|
|
|
+ ImGui::BulletText("CTRL+Z,CTRL+Y to undo/redo.");
|
|
|
+ ImGui::BulletText("ESCAPE to revert.");
|
|
|
+ ImGui::BulletText("You can apply arithmetic operators +,*,/ on numerical values.\nUse +- to subtract.");
|
|
|
+ ImGui::Unindent();
|
|
|
}
|
|
|
|
|
|
// Demonstrate most ImGui features (big function!)
|
|
|
@@ -230,7 +230,8 @@ void ImGui::ShowTestWindow(bool* p_open)
|
|
|
ImGui::Spacing();
|
|
|
if (ImGui::CollapsingHeader("Help"))
|
|
|
{
|
|
|
- ImGui::TextWrapped("This window is being created by the ShowTestWindow() function. Please refer to the code for programming reference.\n\nUser Guide:");
|
|
|
+ ImGui::TextWrapped("This window is being created by the ShowTestWindow() function. Please refer to the code in imgui_demo.cpp for reference.\n\n");
|
|
|
+ ImGui::Text("USER GUIDE:");
|
|
|
ImGui::ShowUserGuide();
|
|
|
}
|
|
|
|