This commit is contained in:
Бранимир Караџић 2019-08-14 22:21:29 -07:00
parent 70d460bf32
commit 7b01a4dc9a
1 changed files with 8 additions and 1 deletions

View File

@ -143,10 +143,17 @@ void showExampleDialog(entry::AppI* _app, const char* _errorText)
bx::StringView url = _app->getUrl();
if (!url.isEmpty() )
{
if (ImGui::Button("Documentation") )
ImGui::SameLine();
if (ImGui::SmallButton(ICON_FA_LINK) )
{
openUrl(url);
}
else if (ImGui::IsItemHovered() )
{
char tmp[1024];
bx::snprintf(tmp, BX_COUNTOF(tmp), "Documentation: %.*s", url.getLength(), url.getPtr() );
ImGui::SetTooltip(tmp);
}
}
ImGui::Separator();