Merge branch 'release/1.12.2' of ssh://git.mnml.gg:40022/~/mnml into release/1.12.2
This commit is contained in:
commit
62b8fa37a4
@ -10,6 +10,7 @@ const addState = connect(
|
|||||||
chatShow,
|
chatShow,
|
||||||
instance,
|
instance,
|
||||||
account,
|
account,
|
||||||
|
tutorial,
|
||||||
} = state;
|
} = state;
|
||||||
|
|
||||||
function sendReady() {
|
function sendReady() {
|
||||||
@ -21,6 +22,7 @@ const addState = connect(
|
|||||||
instance,
|
instance,
|
||||||
chatShow,
|
chatShow,
|
||||||
account,
|
account,
|
||||||
|
tutorial,
|
||||||
|
|
||||||
sendReady,
|
sendReady,
|
||||||
};
|
};
|
||||||
@ -42,17 +44,17 @@ function InstanceCtrlBtns(args) {
|
|||||||
instance,
|
instance,
|
||||||
chatShow,
|
chatShow,
|
||||||
account,
|
account,
|
||||||
|
tutorial,
|
||||||
sendReady,
|
sendReady,
|
||||||
setChatShow,
|
setChatShow,
|
||||||
} = args;
|
} = args;
|
||||||
|
|
||||||
const finished = instance && instance.phase === 'Finished';
|
const finished = instance && instance.phase === 'Finished';
|
||||||
|
const tutorialDisable = tutorial && tutorial < 8;
|
||||||
return (
|
return (
|
||||||
<div class="instance-ctrl-btns">
|
<div class="instance-ctrl-btns">
|
||||||
<button disabled={!account.subscribed} onClick={() => setChatShow(!chatShow)}>Chat</button>
|
<button disabled={!account.subscribed} onClick={() => setChatShow(!chatShow)}>Chat</button>
|
||||||
<button disabled={finished} class="ready" onClick={() => sendReady()}>Ready</button>
|
<button disabled={finished || tutorialDisable} class="ready" onClick={() => sendReady()}>Ready</button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -95,7 +95,7 @@ function Play(args) {
|
|||||||
type="submit">
|
type="submit">
|
||||||
Invite
|
Invite
|
||||||
</button>
|
</button>
|
||||||
<figcaption>Invite a Friend</figcaption>
|
<figcaption>Play against friend</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|||||||
@ -116,7 +116,6 @@ function registerEvents(store) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
store.dispatch(actions.setAccount(account));
|
store.dispatch(actions.setAccount(account));
|
||||||
store.dispatch(actions.setTutorial(null));
|
|
||||||
store.dispatch(actions.setAuthenticated(true));
|
store.dispatch(actions.setAuthenticated(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,7 +188,6 @@ function registerEvents(store) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return store.dispatch(actions.setInstance(v));
|
return store.dispatch(actions.setInstance(v));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -53,7 +53,7 @@ module.exports = {
|
|||||||
teamPage: createReducer(0, 'SET_TEAM_PAGE'),
|
teamPage: createReducer(0, 'SET_TEAM_PAGE'),
|
||||||
teamSelect: createReducer([null, null, null], 'SET_TEAM_SELECT'),
|
teamSelect: createReducer([null, null, null], 'SET_TEAM_SELECT'),
|
||||||
|
|
||||||
tutorial: createReducer(1, 'SET_TUTORIAL'),
|
tutorial: createReducer(localStorage.getItem('tutorial-complete') ? null : 1, 'SET_TUTORIAL'),
|
||||||
|
|
||||||
vboxSelected: createReducer({ storeSelect: [], stashSelect: [] }, 'SET_VBOX_SELECTED'),
|
vboxSelected: createReducer({ storeSelect: [], stashSelect: [] }, 'SET_VBOX_SELECTED'),
|
||||||
vboxCombiner: createReducer(null, 'SET_VBOX_COMBINER'),
|
vboxCombiner: createReducer(null, 'SET_VBOX_COMBINER'),
|
||||||
|
|||||||
@ -197,10 +197,10 @@ function tutorialStage(tutorial, clearTutorial, instance) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tutorial === 8) {
|
if (tutorial === 8) {
|
||||||
|
localStorage.setItem('tutorial-complete', true);
|
||||||
if (window.innerWidth < 1000) {
|
if (window.innerWidth < 1000) {
|
||||||
return exit();
|
return exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class='info-item'>
|
<div class='info-item'>
|
||||||
<h2>GLHF</h2>
|
<h2>GLHF</h2>
|
||||||
@ -210,6 +210,7 @@ function tutorialStage(tutorial, clearTutorial, instance) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user