Skip to content

Commit

Permalink
Add current version to CTRL+F11 [General] Tab
Browse files Browse the repository at this point in the history
  • Loading branch information
kirides committed Jan 5, 2024
1 parent 2bea335 commit 410fb5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions D3D11Engine/BaseAntTweakBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ XRESULT BaseAntTweakBar::Init() {
Bar_General = TwNewBar( "General" );
TwDefine( " General position='600 0'" );

static std::string versionString = std::string( VERSION_NUMBER );
TwAddVarRO( Bar_General, "Version", TW_TYPE_STDSTRING, &versionString, VERSION_NUMBER );

TwAddButton( Bar_General, "Save ZEN-Resources", (TwButtonCallback)SaveZENResourcesCallback, this, nullptr );
TwAddButton( Bar_General, "Load ZEN-Resources", (TwButtonCallback)LoadZENResourcesCallback, this, nullptr );
TwAddButton( Bar_General, "Open Settings Dialog", (TwButtonCallback)OpenSettingsCallback, this, nullptr );
Expand Down

0 comments on commit 410fb5d

Please sign in to comment.