gzip, exit tutorial auto on mobile
This commit is contained in:
@@ -199,13 +199,16 @@ function tutorialStage(tutorial, ws, clearTutorial, instance) {
|
||||
}
|
||||
|
||||
if (tutorial === 8) {
|
||||
if (window.innerWidth < 1000) {
|
||||
return exit();
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<h2>Tutorial</h2>
|
||||
<p>You've completed the tutorial! Try to create more skill and spec combinations. </p>
|
||||
<p>You can unequip skills and specs back into the inventory by double clicking. <br />
|
||||
Reclaim can be used to refund the cost of items in your inventory. </p>
|
||||
<p>Click the <b>EXIT TUTORIAL</b> button to replace this section with more information.</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -213,10 +216,11 @@ function tutorialStage(tutorial, ws, clearTutorial, instance) {
|
||||
};
|
||||
|
||||
const classes = tutorial === 8 ? 'focus' : '';
|
||||
const text = tutorial === 8 ? 'Continue' : 'Close Tutorial'
|
||||
const exitTutorial = <button
|
||||
class={classes}
|
||||
onClick={e => e.stopPropagation()}
|
||||
onMouseDown={exit}> Exit Tutorial </button>;
|
||||
onMouseDown={exit}> {text} </button>;
|
||||
|
||||
return (
|
||||
<div class='tutorial'>
|
||||
|
||||
Reference in New Issue
Block a user