|
@@ -71,6 +71,7 @@ const GameCreationForm = ({ afterCreate }) => {
|
|
|
|
|
|
const countryLookup = useCountryLookup(genMethod);
|
|
|
|
|
|
+ const [presetOpen, setPresetOpen] = useState(false);
|
|
|
const setPreset = useCallback(
|
|
|
({
|
|
|
timer: newTimer,
|
|
@@ -128,31 +129,42 @@ const GameCreationForm = ({ afterCreate }) => {
|
|
|
open={creationError}
|
|
|
onClose={() => setCreationError(false)}
|
|
|
/>
|
|
|
- <button className={styles.start} onClick={onCreateGame} type="button">
|
|
|
- New Game
|
|
|
- </button>
|
|
|
+ <div className={styles.buttoncontainer}>
|
|
|
+ <Dropdown
|
|
|
+ buttonClass={styles.favbutton}
|
|
|
+ selected={DEFAULTS}
|
|
|
+ onClick={() => setPresetOpen(o => !o)}
|
|
|
+ onSelect={v => {
|
|
|
+ setPresetOpen(false);
|
|
|
+ setPreset(v);
|
|
|
+ }}
|
|
|
+ open={presetOpen}
|
|
|
+ >
|
|
|
+ <Item value={DEFAULTS} display="⭐">
|
|
|
+ Default
|
|
|
+ </Item>
|
|
|
+ <Item value={PRESETS.URBAN_AMERICA} display="⭐">
|
|
|
+ Urban America
|
|
|
+ </Item>
|
|
|
+ <Item value={PRESETS.URBAN_GLOBAL} display="⭐">
|
|
|
+ Urban Global
|
|
|
+ </Item>
|
|
|
+ <Item value={PRESETS.FAST_FROZEN} display="⭐">
|
|
|
+ Fast Frozen
|
|
|
+ </Item>
|
|
|
+ <Item value={PRESETS.COUNTRY_RACE} display="⭐">
|
|
|
+ Country Race
|
|
|
+ </Item>
|
|
|
+ <Item value={PRESETS.FROZEN_COUNTRY_RACE} display="⭐">
|
|
|
+ Frozen Country Race
|
|
|
+ </Item>
|
|
|
+ </Dropdown>
|
|
|
+ <button className={styles.start} onClick={onCreateGame} type="button">
|
|
|
+ New Game
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
<div className={styles.dropdowns}>
|
|
|
<DropdownGroup>
|
|
|
- <Dropdown selected={DEFAULTS} onSelect={setPreset} open="presets">
|
|
|
- <Item value={DEFAULTS} display="⭐">
|
|
|
- Default
|
|
|
- </Item>
|
|
|
- <Item value={PRESETS.URBAN_AMERICA} display="⭐">
|
|
|
- Urban America
|
|
|
- </Item>
|
|
|
- <Item value={PRESETS.URBAN_GLOBAL} display="⭐">
|
|
|
- Urban Global
|
|
|
- </Item>
|
|
|
- <Item value={PRESETS.FAST_FROZEN} display="⭐">
|
|
|
- Fast Frozen
|
|
|
- </Item>
|
|
|
- <Item value={PRESETS.COUNTRY_RACE} display="⭐">
|
|
|
- Country Race
|
|
|
- </Item>
|
|
|
- <Item value={PRESETS.FROZEN_COUNTRY_RACE} display="⭐">
|
|
|
- Frozen Country Race
|
|
|
- </Item>
|
|
|
- </Dropdown>
|
|
|
<Dropdown selected={timer} onSelect={setTimer} open="timer">
|
|
|
<Item value={30} display={ms(30 * 1000)}>
|
|
|
30 Seconds
|
|
@@ -228,13 +240,13 @@ const GameCreationForm = ({ afterCreate }) => {
|
|
|
open="roundPointCap"
|
|
|
>
|
|
|
<Item value={null} display="♾️">
|
|
|
- No limit
|
|
|
+ No Limit
|
|
|
</Item>
|
|
|
<Item value={10000} display="10k">
|
|
|
- 10k total points per round
|
|
|
+ 10k Total Points per Round
|
|
|
</Item>
|
|
|
<Item value={20000} display="20k">
|
|
|
- 20k total points per round
|
|
|
+ 20k Total Points per Round
|
|
|
</Item>
|
|
|
</Dropdown>
|
|
|
</DropdownGroup>
|