Note from ORBLISH on idea for hover sounds.
This commit is contained in:
parent
1b4f55804c
commit
bec8fe0a13
1 changed files with 5 additions and 0 deletions
|
@ -238,6 +238,7 @@ namespace guecs {
|
|||
});
|
||||
|
||||
do_if<Sound>(ent, [hover](auto& sound) {
|
||||
// here set that it played then only play once
|
||||
sound.play(hover);
|
||||
});
|
||||
|
||||
|
@ -250,6 +251,10 @@ namespace guecs {
|
|||
}
|
||||
|
||||
action_count++;
|
||||
} else {
|
||||
// via ORBLISHJ
|
||||
// just reset the hover trigger for all that aren't hit
|
||||
// then in the ^^ positive branch play it and set it played
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue