mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
Merge pull request #3682 from nickofolas/fix/unavailable-augs-color
AUGMENTATIONS: Use disabled text color for non-buyable augs
This commit is contained in:
commit
b10f11b390
@ -219,7 +219,10 @@ export function PurchasableAugmentation(props: IPurchasableAugProps): React.Reac
|
|||||||
textOverflow: "ellipsis",
|
textOverflow: "ellipsis",
|
||||||
whiteSpace: "nowrap",
|
whiteSpace: "nowrap",
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
color: props.owned ? Settings.theme.disabled : Settings.theme.primary,
|
color:
|
||||||
|
props.owned || !props.parent.canPurchase(props.parent.player, aug)
|
||||||
|
? Settings.theme.disabled
|
||||||
|
: Settings.theme.primary,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{aug.name}
|
{aug.name}
|
||||||
|
Loading…
Reference in New Issue
Block a user