Add sponsor button to welcome dialog.

This commit is contained in:
Bartosz Taudul 2020-03-29 14:06:54 +02:00
parent 99b09290b7
commit ddfd755ddc

View File

@ -471,7 +471,36 @@ static void DrawContents()
ImGui::SameLine(); ImGui::SameLine();
if( ImGui::Button( ICON_FA_GLOBE_AMERICAS " Web" ) ) if( ImGui::Button( ICON_FA_GLOBE_AMERICAS " Web" ) )
{ {
OpenWebpage( "https://bitbucket.org/wolfpld/tracy" ); ImGui::OpenPopup( "web" );
}
if( ImGui::BeginPopup( "web" ) )
{
if( ImGui::Selectable( ICON_FA_HOME " Tracy Profiler home page" ) )
{
OpenWebpage( "https://bitbucket.org/wolfpld/tracy" );
}
ImGui::Separator();
if( ImGui::Selectable( ICON_FA_VIDEO " Overview of v0.2" ) )
{
OpenWebpage( "https://www.youtube.com/watch?v=fB5B46lbapc" );
}
if( ImGui::Selectable( ICON_FA_VIDEO " New features in v0.3" ) )
{
OpenWebpage( "https://www.youtube.com/watch?v=3SXpDpDh2Uo" );
}
if( ImGui::Selectable( ICON_FA_VIDEO " New features in v0.4" ) )
{
OpenWebpage( "https://www.youtube.com/watch?v=eAkgkaO8B9o" );
}
if( ImGui::Selectable( ICON_FA_VIDEO " New features in v0.5" ) )
{
OpenWebpage( "https://www.youtube.com/watch?v=P6E7qLMmzTQ" );
}
if( ImGui::Selectable( ICON_FA_VIDEO " New features in v0.6" ) )
{
OpenWebpage( "https://www.youtube.com/watch?v=uJkrFgriuOo" );
}
ImGui::EndPopup();
} }
ImGui::SameLine(); ImGui::SameLine();
if( ImGui::Button( ICON_FA_COMMENT " Chat" ) ) if( ImGui::Button( ICON_FA_COMMENT " Chat" ) )
@ -479,33 +508,9 @@ static void DrawContents()
OpenWebpage( "https://discord.gg/pk78auc" ); OpenWebpage( "https://discord.gg/pk78auc" );
} }
ImGui::SameLine(); ImGui::SameLine();
if( ImGui::Button( ICON_FA_VIDEO " Tutorial" ) ) if( ImGui::Button( ICON_FA_HEART " Sponsor" ) )
{ {
ImGui::OpenPopup( "tutorial" ); OpenWebpage( "https://github.com/sponsors/wolfpld/" );
}
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" );
}
if( ImGui::Selectable( ICON_FA_VIDEO " New features in Tracy Profiler v0.5" ) )
{
OpenWebpage( "https://www.youtube.com/watch?v=P6E7qLMmzTQ" );
}
if( ImGui::Selectable( ICON_FA_VIDEO " New features in Tracy Profiler v0.6" ) )
{
OpenWebpage( "https://www.youtube.com/watch?v=uJkrFgriuOo" );
}
ImGui::EndPopup();
} }
ImGui::Separator(); ImGui::Separator();
ImGui::TextUnformatted( "Client address" ); ImGui::TextUnformatted( "Client address" );