video player as interactive object + move to HUD
This commit is contained in:
@@ -29,6 +29,8 @@ class DashBoard {
|
||||
})
|
||||
|
||||
const dash = new Group();
|
||||
this.group = dash;
|
||||
dash.visible = false;
|
||||
|
||||
const dashGeometry = new PlaneGeometry(engine.aspect, 1);
|
||||
const dashMesh = new Mesh(dashGeometry, new MeshStandardMaterial({
|
||||
@@ -81,9 +83,25 @@ class DashBoard {
|
||||
progressCylinder.position.x = padLeft - engine.aspect/2 + progressCylinder.scale.y/2
|
||||
}
|
||||
|
||||
this.enable = ()=>{
|
||||
dash.visible = true;
|
||||
}
|
||||
|
||||
this.disable = ()=>{
|
||||
dash.visible = false;
|
||||
}
|
||||
|
||||
this.createProgressBar();
|
||||
this.update();
|
||||
}
|
||||
|
||||
get active(){
|
||||
return this.group.visible;
|
||||
}
|
||||
|
||||
set active(v){
|
||||
this.group.visible = v;
|
||||
}
|
||||
}
|
||||
|
||||
export { DashBoard };
|
||||
Reference in New Issue
Block a user