fix(ags player): show players when only one present
This commit is contained in:
parent
8bd1c23ce0
commit
5b72e6fa0a
1 changed files with 9 additions and 9 deletions
|
@ -46,6 +46,15 @@ export default ({
|
|||
...connections,
|
||||
|
||||
[gesture, (overlay, realGesture) => {
|
||||
if (realGesture) {
|
||||
overlay.list().forEach((over) => {
|
||||
over.visible = true;
|
||||
});
|
||||
}
|
||||
else {
|
||||
overlay._showTopOnly(overlay);
|
||||
}
|
||||
|
||||
// Don't allow gesture when only one player
|
||||
if (overlay.list().length <= 1) {
|
||||
return;
|
||||
|
@ -56,15 +65,6 @@ export default ({
|
|||
|
||||
const playerBox = overlay.list().at(-1);
|
||||
|
||||
if (realGesture) {
|
||||
overlay.list().forEach((over) => {
|
||||
over.visible = true;
|
||||
});
|
||||
}
|
||||
else {
|
||||
overlay._showTopOnly(overlay);
|
||||
}
|
||||
|
||||
// Slide right
|
||||
if (offset >= 0) {
|
||||
playerBox.setCss(`
|
||||
|
|
Loading…
Reference in a new issue