-
Notifications
You must be signed in to change notification settings - Fork 8
Building your own overlay
Steven Knepper edited this page Aug 31, 2021
·
4 revisions
Lets take a look at the Slippi-HUD template structure.
import { html, css } from 'lit';
import { repeat } from 'lit/directives/repeat.js';
import '@vaadin/vaadin-ordered-layout/vaadin-vertical-layout';
import '@vaadin/vaadin-ordered-layout/vaadin-horizontal-layout';
export const template = function () {
if (!this.ready)
return html``;
return html`
<Everything that makes up the overlay>
'
export const style = function () {
return css`
:host {
}
`;
}
To make this work with the overlay switching compatibility of the dashboard you will style script the webpage with the <style></style> tags in the return html instead of the return css LIT function.
As of Slippi Playback 3.4.0, SlippiHUD now works with Online Spectating and Replays.