Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to Canary #2

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Add bind_panel
marceline-cramer committed Jun 22, 2021
commit 90eeab6c4f36fa1cdac1698a1d5f3bbaf0abccd3
4 changes: 4 additions & 0 deletions assembly/index.ts
Original file line number Diff line number Diff line change
@@ -87,3 +87,7 @@ export class PanelImpl extends Element {
// this.panel.drawTriangle(-0.38, 0, -0.44, 0.035, -0.44, -0.035, this.white.r, this.white.g, this.white.b, this.white.a);
}
}

export function bind_panel(panel: UiPanel): PanelImpl {
return new PanelImpl(panel);
}