Skip to content

Commit

Permalink
Add extraInfo to Score (Hidden by default)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coow committed Oct 19, 2023
1 parent 52f9122 commit 36a024c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/graphics/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export function Index() {
const [betweenText, set_betweenText] = useReplicant<string>('betweenText', '')
const [flipScore, set_flipScore] = useReplicant<boolean>('flipScore', false);

const [extraInfo1, set_extraInfo1] = useReplicant<string>('extraInfo1', '')
const [extraInfo2, set_extraInfo2] = useReplicant<string>('extraInfo2', '')

const [theme, set_theme] = useReplicant<{ value: string; label: string; }>('theme', { value: '../../../assets/nodecg-themer/themes/default.css', label: 'default' }, { namespace: 'nodecg-themer' });

const [themeDiv, set_themeDiv] = useState(<></>)
Expand Down Expand Up @@ -42,6 +45,8 @@ export function Index() {

<h1 className='score-betweenText'>{betweenText}</h1> </div> : <> </>}
{showSpoilerOverlay ? <img src={SpoilerCover} className={'score-spoilerCover'} /> : <> </>}
<h1 className='score-extraInfo score-extraInfo1 hidden absolute'>{extraInfo1}</h1>
<h1 className='score-extraInfo score-extraInfo2 hidden absolute'>{extraInfo2}</h1>
</>
);
}
Binary file added src/graphics/NormalViewCover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 36a024c

Please sign in to comment.