diff --git a/src/ui/components/mods/ModList.tsx b/src/ui/components/mods/ModList.tsx index 497f702..e6bd2ae 100644 --- a/src/ui/components/mods/ModList.tsx +++ b/src/ui/components/mods/ModList.tsx @@ -1,4 +1,5 @@ import React from 'react' +import { getConfigOption } from '../../../utils/configuration' import { getInstalledMods, getMods, ModData, PartialModData } from '../../../utils/gamebanana' import { LoadingCircle } from './LoadingCircle' @@ -11,6 +12,7 @@ interface IProps { } interface IState { + horny: boolean modList: ModData[] | null installedList: | { @@ -25,6 +27,7 @@ export class ModList extends React.Component { super(props) this.state = { + horny: false, modList: null, installedList: null, } @@ -60,8 +63,10 @@ export class ModList extends React.Component { } const mods = await getMods(this.props.mode) + const horny = await getConfigOption('horny_mode') this.setState({ + horny, modList: mods, }) } @@ -81,7 +86,7 @@ export class ModList extends React.Component { )) : this.state.modList?.map((mod: ModData) => ( - + ))} ) : ( diff --git a/src/ui/components/mods/ModTile.tsx b/src/ui/components/mods/ModTile.tsx index 0dec366..2b80983 100644 --- a/src/ui/components/mods/ModTile.tsx +++ b/src/ui/components/mods/ModTile.tsx @@ -12,6 +12,7 @@ import { disableMod, enableMod, modIsEnabled } from '../../../utils/mods' interface IProps { mod: ModData | PartialModData + horny?: boolean path?: string onClick: (mod: ModData) => void } @@ -107,7 +108,9 @@ export class ModTile extends React.Component { ))}