Merge tag '1.14.0' into develop
1.14.0
This commit is contained in:
commit
4b3d5d5586
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mnml-client",
|
"name": "mnml-client",
|
||||||
"version": "1.13.0",
|
"version": "1.14.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mnml-client",
|
"name": "mnml-client",
|
||||||
"version": "1.13.0",
|
"version": "1.14.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -59,8 +59,13 @@ class AccountAvatar extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.idle = idleAnimation(this.props.account.id);
|
const startIdle = () => {
|
||||||
return this.animations.push(this.idle);
|
this.idle = idleAnimation(this.props.account.id);
|
||||||
|
this.animations.push(this.idle);
|
||||||
|
this.idle.finished.then(startIdle);
|
||||||
|
};
|
||||||
|
|
||||||
|
startIdle();
|
||||||
}
|
}
|
||||||
|
|
||||||
resetAnimations() {
|
resetAnimations() {
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
const anime = require('animejs').default;
|
const anime = require('animejs').default;
|
||||||
|
|
||||||
function idle(id) {
|
function idle(id) {
|
||||||
const duration = anime.random(2000, 18000);
|
const duration = anime.random(2000, 8000);
|
||||||
const target = document.getElementById(id);
|
const target = document.getElementById(id);
|
||||||
|
|
||||||
return anime({
|
return anime({
|
||||||
targets: target,
|
targets: target,
|
||||||
translateX: () => anime.random(-20, 20),
|
translateX: () => anime.random(-20, 20),
|
||||||
@ -10,8 +11,7 @@ function idle(id) {
|
|||||||
rotate: () => anime.random(-15, 15),
|
rotate: () => anime.random(-15, 15),
|
||||||
duration,
|
duration,
|
||||||
direction: 'alternate',
|
direction: 'alternate',
|
||||||
easing: 'linear',
|
easing: 'easeInOutSine',
|
||||||
loop: true,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -48,8 +48,13 @@ class ConstructAvatar extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.idle = idleAnimation(this.props.construct.id);
|
const startIdle = () => {
|
||||||
return this.animations.push(this.idle);
|
this.idle = idleAnimation(this.props.construct.id);
|
||||||
|
this.animations.push(this.idle);
|
||||||
|
this.idle.finished.then(startIdle);
|
||||||
|
};
|
||||||
|
|
||||||
|
startIdle();
|
||||||
}
|
}
|
||||||
|
|
||||||
resetAnimations() {
|
resetAnimations() {
|
||||||
|
|||||||
@ -98,7 +98,7 @@ function GameCtrlBtns(args) {
|
|||||||
return (
|
return (
|
||||||
<div class="game-ctrl-btns">
|
<div class="game-ctrl-btns">
|
||||||
<button disabled={!account.subscribed} onClick={() => setChatShow(!chatShow)}>Chat</button>
|
<button disabled={!account.subscribed} onClick={() => setChatShow(!chatShow)}>Chat</button>
|
||||||
<button disabled={animating} onClick={sendGameSkillClear}>Clear</button>
|
<button disabled={finished || animating} onClick={sendGameSkillClear}>Clear</button>
|
||||||
{finished ? quitBtn : readyBtn}
|
{finished ? quitBtn : readyBtn}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -34,8 +34,13 @@ class MnniAvatatr extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.idle = idleAnimation('mnni');
|
const startIdle = () => {
|
||||||
return this.animations.push(this.idle);
|
this.idle = idleAnimation('mnni');
|
||||||
|
this.animations.push(this.idle);
|
||||||
|
this.idle.finished.then(startIdle);
|
||||||
|
};
|
||||||
|
|
||||||
|
startIdle();
|
||||||
}
|
}
|
||||||
|
|
||||||
resetAnimations() {
|
resetAnimations() {
|
||||||
|
|||||||
@ -37,8 +37,13 @@ class Img extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.idle = idleAnimation(this.props.id);
|
const startIdle = () => {
|
||||||
return this.animations.push(this.idle);
|
this.idle = idleAnimation(this.props.id);
|
||||||
|
this.animations.push(this.idle);
|
||||||
|
this.idle.finished.then(startIdle);
|
||||||
|
};
|
||||||
|
|
||||||
|
startIdle();
|
||||||
}
|
}
|
||||||
|
|
||||||
resetAnimations() {
|
resetAnimations() {
|
||||||
|
|||||||
@ -349,6 +349,7 @@ function createSocket(events) {
|
|||||||
sendItemInfo();
|
sendItemInfo();
|
||||||
|
|
||||||
events.urlHashChange();
|
events.urlHashChange();
|
||||||
|
events.setPvp(false);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "mnml_core"
|
name = "mnml_core"
|
||||||
version = "1.13.0"
|
version = "1.14.0"
|
||||||
authors = ["ntr <ntr@smokestack.io>", "mashy <mashy@mnml.gg>"]
|
authors = ["ntr <ntr@smokestack.io>", "mashy <mashy@mnml.gg>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mnml-ops",
|
"name": "mnml-ops",
|
||||||
"version": "1.13.0",
|
"version": "1.14.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "mnml"
|
name = "mnml"
|
||||||
version = "1.13.0"
|
version = "1.14.0"
|
||||||
authors = ["ntr <ntr@smokestack.io>"]
|
authors = ["ntr <ntr@smokestack.io>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mnml-studios",
|
"name": "mnml-studios",
|
||||||
"version": "1.13.0",
|
"version": "1.14.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user