FACTIONS: Add "Rumors" system for learning about faction join requirements (#888)

This commit is contained in:
Jesse Clark
2023-11-02 07:20:24 -07:00
committed by GitHub
parent 023f32bce3
commit fdcb8306d9
27 changed files with 1049 additions and 601 deletions
+27
View File
@@ -0,0 +1,27 @@
import { CheckBox, CheckBoxOutlineBlank } from "@mui/icons-material";
import { Typography } from "@mui/material";
import React from "react";
import { Settings } from "../../Settings/Settings";
Settings.theme.primary;
export interface IReqProps {
value: string;
color?: string;
incompleteColor?: string;
fulfilled: boolean;
}
export const Requirement = (props: IReqProps): React.ReactElement => {
const completeColor = props.color || Settings.theme.primary;
const incompleteColor = props.incompleteColor || Settings.theme.primarydark;
return (
<Typography
sx={{ display: "flex", alignItems: "center", color: props.fulfilled ? completeColor : incompleteColor }}
>
{props.fulfilled ? <CheckBox sx={{ mr: 1 }} /> : <CheckBoxOutlineBlank sx={{ mr: 1 }} />}
{props.value}
</Typography>
);
};