From d616010f7464c8c1a87277d6ea2f754e0bbf9a66 Mon Sep 17 00:00:00 2001 From: nickofolas Date: Sun, 24 Apr 2022 18:13:15 -0500 Subject: [PATCH] Update Intro --- src/Infiltration/ui/Intro.tsx | 138 +++++++++++++++++++--------------- 1 file changed, 79 insertions(+), 59 deletions(-) diff --git a/src/Infiltration/ui/Intro.tsx b/src/Infiltration/ui/Intro.tsx index bedf9e629..5c1711519 100644 --- a/src/Infiltration/ui/Intro.tsx +++ b/src/Infiltration/ui/Intro.tsx @@ -1,9 +1,10 @@ import React from "react"; import { Location } from "../../Locations/Location"; import Grid from "@mui/material/Grid"; -import Typography from "@mui/material/Typography"; -import Button from "@mui/material/Button"; import { numeralWrapper } from "../../ui/numeralFormat"; +import { Button, Paper, Typography, Container, Tooltip, Box } from "@mui/material"; +import { Report } from "@mui/icons-material"; +import { Settings } from "../../Settings/Settings"; interface IProps { Location: Location; @@ -41,9 +42,9 @@ function coloredArrow(difficulty: number): JSX.Element { } else { return ( <> - {arrowPart("white", difficulty * 13)} - {arrowPart("orange", (difficulty - 1) * 13)} - {arrowPart("red", (difficulty - 2) * 13)} + {arrowPart(Settings.theme.primary, difficulty * 13)} + {arrowPart(Settings.theme.warning, (difficulty - 1) * 13)} + {arrowPart(Settings.theme.error, (difficulty - 2) * 13)} ); } @@ -51,65 +52,84 @@ function coloredArrow(difficulty: number): JSX.Element { export function Intro(props: IProps): React.ReactElement { return ( - <> - - - Infiltrating {props.Location.name} - - - - Maximum level: {props.MaxLevel} - - - - - Difficulty: {numeralWrapper.format(props.Difficulty * 33.3333, "0")} / 100 - - + + + + Infiltrating {props.Location.name} + + + Maximum Level: + {props.MaxLevel} + + 2 + ? Settings.theme.error + : props.Difficulty > 1 + ? Settings.theme.warning + : Settings.theme.primary, + display: "flex", + alignItems: "center", + }} + > + Difficulty:  + {numeralWrapper.format(props.Difficulty * 33.3333, "0")} / 100 + {props.Difficulty > 1.5 && ( + + This location is too heavily guarded for your current stats. It is recommended that you try training, + or finding an easier location. + + } + > + + + )} + - {props.Difficulty > 1.5 && ( - - - Warning: This location is too heavily guarded for your current stats, try training or finding an easier - location. - - - )} + [{coloredArrow(props.Difficulty)}] + {` ^ ^ ^ ^`} + {` Trivial Normal Hard Impossible`} + - - [{coloredArrow(props.Difficulty)}] - {` ^ ^ ^ ^`} - {` Trivial Normal Hard Impossible`} - - + + + Infiltration is a series of short minigames that get progressively harder. You take damage for failing + them. Reaching the maximum level rewards you with intel that you can trade for money or reputation. +
+
+ Gameplay: +
+
    - Infiltration is a series of short minigames that get progressively harder. You take damage for failing them. - Reaching the maximum level rewards you with intel you can trade for money or reputation. +
  • + The minigames you play are randomly selected. +
    + It might take you few tries to get used to them. +
  • +
  • No game requires use of the mouse.
  • +
  • + Spacebar is the default action/confirm button. +
  • +
  • + The arrow keys and WASD can be used interchangeably. +
  • +
  • Sometimes the rest of the keyboard is used.
  • -
    - - The minigames you play are randomly selected. It might take you few tries to get used to them. - -
    - No game require use of the mouse. -
    - Spacebar is the default action/confirm button. -
    - Everything that uses arrow can also use WASD -
    - Sometimes the rest of the keyboard is used. - - +
+ + -
- - -
- + + + ); }