������ 14/16/20/40/44: vehicle, ����, ����������, damage floaters, ��������� #20
@ -2305,6 +2305,10 @@ const game = {
|
|||||||
opts = opts && typeof opts === 'object' ? opts : {};
|
opts = opts && typeof opts === 'object' ? opts : {};
|
||||||
this._opts = opts;
|
this._opts = opts;
|
||||||
this._active = true;
|
this._active = true;
|
||||||
|
// Колбэки можно передавать прямо в опциях show({ onPlay, onShow, onHide }).
|
||||||
|
if (typeof opts.onPlay === 'function') this._onPlay.push(opts.onPlay);
|
||||||
|
if (typeof opts.onShow === 'function') this._onShow.push(opts.onShow);
|
||||||
|
if (typeof opts.onHide === 'function') this._onHide.push(opts.onHide);
|
||||||
_send('player.setInputBlocked', { blocked: true });
|
_send('player.setInputBlocked', { blocked: true });
|
||||||
game.hud.setVisible(false);
|
game.hud.setVisible(false);
|
||||||
this._camCfg = opts.camera || { mode: 'orbit', center: { x: 0, y: 1, z: 0 }, radius: 6, height: 2, duration: 12 };
|
this._camCfg = opts.camera || { mode: 'orbit', center: { x: 0, y: 1, z: 0 }, radius: 6, height: 2, duration: 12 };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user