diff --git a/stream_overlays/README.md b/stream_overlays/README.md index 63c79e4..85b9d3a 100644 --- a/stream_overlays/README.md +++ b/stream_overlays/README.md @@ -8,6 +8,8 @@ This overlay is designed by the [Dutch Drone Squad](https://dutchdronesquad.nl) ### Topbar +The title in the top bar consists of a heat name and event name which dynamically adapts to what is set in RotorHazard. + ![alt Screenshot of topbar](https://raw.githubusercontent.com/dutchdronesquad/rh-stream-overlays/main/assets/overlays/topbar-dds.png) URL to use: `RH-IP:5000/stream/overlay/dds/topbar` @@ -41,6 +43,8 @@ This overlay is designed by the [Liga Colombiana Drone Racing](https://ligacolom ### Topbar +The title in the top bar consists of a heat name that changes dynamically and the organization name of LCDR (static). + ![alt Screenshot of topbar](https://raw.githubusercontent.com/dutchdronesquad/rh-stream-overlays/main/assets/overlays/topbar-lcdr.png) URL to use: `RH-IP:5000/stream/overlay/lcdr/topbar` diff --git a/stream_overlays/static/js/main/stream_topbar.js b/stream_overlays/static/js/main/stream_topbar.js index d0d1373..fbc43dc 100644 --- a/stream_overlays/static/js/main/stream_topbar.js +++ b/stream_overlays/static/js/main/stream_topbar.js @@ -140,7 +140,7 @@ $(document).ready(function () { if (race.heat == 0) { heatName = __("Practice"); } else { - heatName = __("Heat") + " " + race.heat; + heatName = race.displayname; } $("#js--heat-title").text(heatName); });