mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-17 05:09:58 +01:00
Adding Git tags info in About Vimix
This commit is contained in:
@@ -28,6 +28,7 @@ if(GIT_EXECUTABLE)
|
|||||||
else()
|
else()
|
||||||
set(VIMIX_VERSION_PATCH "0")
|
set(VIMIX_VERSION_PATCH "0")
|
||||||
endif()
|
endif()
|
||||||
|
add_definitions(-DVIMIX_GIT="${GIT_DESCRIBE_VERSION}")
|
||||||
add_definitions(-DVIMIX_VERSION_MAJOR=${VIMIX_VERSION_MAJOR})
|
add_definitions(-DVIMIX_VERSION_MAJOR=${VIMIX_VERSION_MAJOR})
|
||||||
add_definitions(-DVIMIX_VERSION_MINOR=${VIMIX_VERSION_MINOR})
|
add_definitions(-DVIMIX_VERSION_MINOR=${VIMIX_VERSION_MINOR})
|
||||||
add_definitions(-DVIMIX_VERSION_PATCH=${VIMIX_VERSION_PATCH})
|
add_definitions(-DVIMIX_VERSION_PATCH=${VIMIX_VERSION_PATCH})
|
||||||
|
|||||||
@@ -1521,6 +1521,12 @@ void UserInterface::RenderAbout(bool* p_open)
|
|||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef VIMIX_GIT
|
||||||
|
ImGuiToolkit::PushFont(ImGuiToolkit::FONT_ITALIC);
|
||||||
|
ImGui::Text(VIMIX_GIT);
|
||||||
|
ImGui::PopFont();
|
||||||
|
#endif
|
||||||
|
|
||||||
static unsigned int img_crow = 0;
|
static unsigned int img_crow = 0;
|
||||||
if (img_crow == 0)
|
if (img_crow == 0)
|
||||||
img_crow = Resource::getTextureImage("images/vimix_crow_white.png");
|
img_crow = Resource::getTextureImage("images/vimix_crow_white.png");
|
||||||
|
|||||||
Reference in New Issue
Block a user