From a7d980c2dd09d84c1a02269465d00a023e06a742 Mon Sep 17 00:00:00 2001 From: nickofolas Date: Fri, 22 Apr 2022 19:48:40 -0500 Subject: [PATCH] Polish sleeve aug modal and faction aug page --- src/Faction/ui/AugmentationsPage.tsx | 69 +++++++++++-------- .../Sleeve/ui/SleeveAugmentationsModal.tsx | 35 +++++----- 2 files changed, 60 insertions(+), 44 deletions(-) diff --git a/src/Faction/ui/AugmentationsPage.tsx b/src/Faction/ui/AugmentationsPage.tsx index e45011c86..a8b0dda3e 100644 --- a/src/Faction/ui/AugmentationsPage.tsx +++ b/src/Faction/ui/AugmentationsPage.tsx @@ -1,7 +1,7 @@ /** * Root React Component for displaying a faction's "Purchase Augmentations" page */ -import { Box, Button, Tooltip, Typography } from "@mui/material"; +import { Box, Button, Tooltip, Typography, Paper, Container } from "@mui/material"; import React, { useState } from "react"; import { getGenericAugmentationPriceMultiplier } from "../../Augmentation/AugmentationHelpers"; import { Augmentations } from "../../Augmentation/Augmentations"; @@ -133,7 +133,7 @@ export function AugmentationsPage(props: IProps): React.ReactElement { const multiplierComponent = props.faction.name !== FactionNames.ShadowsOfAnarchy ? ( - Price multiplier: x {numeralWrapper.formatMultiplier(getGenericAugmentationPriceMultiplier())} + Price multiplier: x {numeralWrapper.formatMultiplier(getGenericAugmentationPriceMultiplier())} ) : ( <> @@ -141,34 +141,47 @@ export function AugmentationsPage(props: IProps): React.ReactElement { return ( <> - - Faction Augmentations - - These are all of the Augmentations that are available to purchase from {props.faction.name}. Augmentations are - powerful upgrades that will enhance your abilities. -
- Reputation: Favor:{" "} - -
- - + + Faction Augmentations + + + These are all of the Augmentations that are available to purchase from {props.faction.name}. + Augmentations are powerful upgrades that will enhance your abilities. +
+
+ + + The price of every Augmentation increases for every queued Augmentation and it is reset when you + install them. + + } + > + {multiplierComponent} + - The price of every Augmentation increases for every queued Augmentation and it is reset when you install - them. + Reputation: - } - > - {multiplierComponent} -
-
- - - - -
+ + Favor: + + + + + + + + + + - + You can purchase Augmentations for your Duplicate Sleeves. These Augmentations have the same effect as they would for you. You can only purchase Augmentations that you have unlocked through Factions. @@ -42,22 +42,25 @@ export function SleeveAugmentationsModal(props: IProps): React.ReactElement {
When purchasing an Augmentation for a Duplicate Sleeve, they are immediately installed. This means that the Duplicate Sleeve will immediately lose all of its stat experience. +
+
+ Augmentations will appear below as they become available.
- aug.name)} - ownedAugNames={ownedAugNames} - player={player} - canPurchase={(player, aug) => { - return player.money > aug.startingCost; - }} - purchaseAugmentation={(player, aug, _showModal) => { - props.sleeve.tryBuyAugmentation(player, aug); - rerender(); - }} - skipPreReqs - skipExclusiveIndicator - />
+ aug.name)} + ownedAugNames={ownedAugNames} + player={player} + canPurchase={(player, aug) => { + return player.money > aug.startingCost; + }} + purchaseAugmentation={(player, aug, _showModal) => { + props.sleeve.tryBuyAugmentation(player, aug); + rerender(); + }} + skipPreReqs + skipExclusiveIndicator + /> ); }