Skip to content

Commit

Permalink
rename game modes #97
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Aug 28, 2023
1 parent 50ec616 commit 88860d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/components/world_tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,19 +200,19 @@ function WorldSelectionMenu() {
}

function label(x : number) {
return x == 0 ? 'playground' : x == 1 ? 'explorer' : 'regular'
return x == 0 ? 'none' : x == 1 ? 'lax' : 'regular'
}

return <nav className="world-selection-menu">
<Button onClick={downloadProgress} title="Download game progress" to=""><FontAwesomeIcon icon={faDownload} /></Button>
<Button title="Load game progress from JSON" onClick={openUploadMenu} to=""><FontAwesomeIcon icon={faUpload} /></Button>
<Button title="Clear game progress" to="" onClick={openEraseMenu}><FontAwesomeIcon icon={faEraser} /></Button>
<div className="slider-wrap">
<span className="difficulty-label">difficulty:</span>
<span className="difficulty-label">Game Rules:</span>
<Slider
title="Difficulties:&#10;- regular: πŸ” levels, πŸ” tactics&#10;- explorer: πŸ”“ levels, πŸ” tactics&#10;- playground: πŸ”“ levels, πŸ”“ tactics"
title="Game Rules:&#10;- regular: πŸ” levels, πŸ” tactics&#10;- lax: πŸ”“ levels, πŸ” tactics&#10;- none: πŸ”“ levels, πŸ”“ tactics"
min={0} max={2}
aria-label="Mode"
aria-label="Game Rules"
defaultValue={difficulty}
marks={[
{value: 0, label: label(0)},
Expand Down

0 comments on commit 88860d2

Please sign in to comment.