Skip to content

Commit

Permalink
about: use LinkOpenURL
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Oct 7, 2024
1 parent 527ed19 commit eb76f00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Viewer for `.mesh` model files as consumed by OGRE as well as any format [suppor
[Portable Windows Package](https://github.com/OGRECave/ogre-meshviewer/releases)

# Dependencies
* [ogre-python](https://pypi.org/project/ogre-python/) >= 14.2
* [ogre-python](https://pypi.org/project/ogre-python/) >= 14.3
* python3

# Usage
Expand Down
9 changes: 6 additions & 3 deletions ogre_mesh_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,12 @@ def __init__(self, app):
def draw_about(self):
flags = ImGui.WindowFlags_AlwaysAutoResize
self.show_about = ImGui.Begin("About OgreMeshViewer", self.show_about, flags)[1]
ImGui.Text("By Pavel Rojtberg")
ImGui.Text("OgreMeshViewer is licensed under the MIT License.")
ImGui.Text("See LICENSE for more information.")
ImGui.TextLinkOpenURL("OgreMeshViewer", "https://github.com/OGRECave/ogre-meshviewer")
ImGui.SameLine(0, 0)
ImGui.Text(" is licensed under the ")
ImGui.SameLine(0, 0)
ImGui.TextLinkOpenURL("MIT License.", "https://github.com/OGRECave/ogre-meshviewer/blob/master/LICENSE")
ImGui.Text("by Pavel Rojtberg and contributors.")
ImGui.Separator()
ImGui.BulletText(f"Ogre: {Ogre.__version__}")
ImGui.BulletText(f"ImGui: {ImGui.GetVersion()}")
Expand Down

0 comments on commit eb76f00

Please sign in to comment.