1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add homepage and tutorial video buttons.

This commit is contained in:
Bartosz Taudul 2018-07-15 20:10:41 +02:00
parent 2e39d18e94
commit 24f7be3f51

View File

@ -117,7 +117,18 @@ int main( int argc, char** argv )
if( !view )
{
ImGui::Begin( "Connect to...", nullptr, ImGuiWindowFlags_AlwaysAutoResize );
ImGui::Begin( "Tracy server", nullptr, ImGuiWindowFlags_AlwaysAutoResize );
if( ImGui::SmallButton( "Homepage" ) )
{
OpenWebpage( "https://bitbucket.org/wolfpld/tracy" );
}
ImGui::SameLine();
if( ImGui::SmallButton( "Tutorial" ) )
{
OpenWebpage( "https://www.youtube.com/watch?v=fB5B46lbapc" );
}
ImGui::Separator();
ImGui::Text( "Connect to client" );
ImGui::InputText( "Address", addr, 1024 );
if( ImGui::Button( "Connect" ) && *addr )
{