From ec50d1607641ff05b6db2774156af6571f4856ce Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 9 Oct 2018 19:28:24 +0200 Subject: [PATCH] Add new feature videos to tutorial button. --- profiler/src/main.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 5af34154..67ef0dcd 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -210,7 +210,23 @@ int main( int argc, char** argv ) ImGui::SameLine(); if( ImGui::Button( ICON_FA_VIDEO " Tutorial" ) ) { - OpenWebpage( "https://www.youtube.com/watch?v=fB5B46lbapc" ); + ImGui::OpenPopup( "tutorial" ); + } + if( ImGui::BeginPopup( "tutorial" ) ) + { + if( ImGui::Selectable( ICON_FA_VIDEO " Introduction to the Tracy Profiler" ) ) + { + OpenWebpage( "https://www.youtube.com/watch?v=fB5B46lbapc" ); + } + if( ImGui::Selectable( ICON_FA_VIDEO " New features in Tracy Profiler v0.3" ) ) + { + OpenWebpage( "https://www.youtube.com/watch?v=3SXpDpDh2Uo" ); + } + if( ImGui::Selectable( ICON_FA_VIDEO " New features in Tracy Profiler v0.4" ) ) + { + OpenWebpage( "https://www.youtube.com/watch?v=eAkgkaO8B9o" ); + } + ImGui::EndPopup(); } ImGui::Separator(); ImGui::Text( "Connect to client" );