dash hud tint
This commit is contained in:
@@ -7,11 +7,9 @@ class GenericObject{
|
||||
this.object = this.source.scene;
|
||||
|
||||
if (!data.exclude){
|
||||
engine.clickable.add(this.object, e=>{
|
||||
engine.clickable.add(this.object, async e=>{
|
||||
this.object._active = !this.object._active;
|
||||
if (engine.dashboard){
|
||||
if (data.description){
|
||||
engine.dashboard.update({ hint: data.description })
|
||||
}
|
||||
if (data.hud){
|
||||
if (this.object._hud ){
|
||||
engine.dashboard.detach(this.object);
|
||||
@@ -29,10 +27,14 @@ class GenericObject{
|
||||
z: scale*this.object.scale.z
|
||||
}
|
||||
}
|
||||
|
||||
engine.dashboard.attach(this.object, placement, true);
|
||||
await engine.dashboard.attach(this.object, placement, true, true);
|
||||
}
|
||||
}
|
||||
if (data.description){
|
||||
engine.dashboard.updateText(this.object._active ? data.description : '', (d)=>{
|
||||
console.log('DONETEXT', d)
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -63,9 +63,7 @@ class MazeQuizGame {
|
||||
}
|
||||
}
|
||||
if (ud.qid !== undefined && e.started){
|
||||
engine.dashboard.update({
|
||||
hint: ud.question.q
|
||||
})
|
||||
engine.dashboard.updateText(ud.question.q)
|
||||
engine.dashboard.updateProgress(ud.qid / questions.length)
|
||||
}
|
||||
//console.log(e, ud, engine.hero?.animationsMap);
|
||||
|
||||
Reference in New Issue
Block a user