Skip to content

Commit

Permalink
more tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlee337 committed Oct 23, 2023
1 parent 5595a9b commit 149b49d
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 47 deletions.
53 changes: 37 additions & 16 deletions src/renderer/CopyControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,23 +263,44 @@ export default function CopyControls({
</Stack>
<Stack direction="row" justifyContent="right">
<Stack>
<LabeledCheckbox
checked={writeDisplayNames}
label="Overwrite Display Names"
set={setWriteDisplayNames}
/>
<LabeledCheckbox
checked={writeFileNames}
label="Overwrite File Names"
set={setWriteFileNames}
/>
<Tooltip
arrow
title="Player tags will appear in the in-game HUD (like Slippi Broadcast/Online) depending on playback settings"
>
<div>
<LabeledCheckbox
checked={writeDisplayNames}
label="Overwrite Display Names"
set={setWriteDisplayNames}
/>
</div>
</Tooltip>
<Tooltip
arrow
title="New file names will indicate game start time, player tags, and characters"
>
<div>
<LabeledCheckbox
checked={writeFileNames}
label="Overwrite File Names"
set={setWriteFileNames}
/>
</div>
</Tooltip>
</Stack>
<Stack>
<LabeledCheckbox
checked={writeStartTimes}
label="Overwrite Start Times"
set={setWriteStartTimes}
/>
<Tooltip
arrow
title="Game start times will be shifted to have the set end exactly now. Useful if your Wii clocks aren't accurate"
>
<div>
<LabeledCheckbox
checked={writeStartTimes}
label="Overwrite Start Times"
set={setWriteStartTimes}
/>
</div>
</Tooltip>
<TextField
label="Output"
onChange={(event) =>
Expand All @@ -291,7 +312,7 @@ export default function CopyControls({
>
<MenuItem value={Output.FILES}>Separate Files</MenuItem>
<MenuItem value={Output.FOLDER}>Make Subfolder</MenuItem>
<MenuItem value={Output.ZIP}>As ZIP file</MenuItem>
<MenuItem value={Output.ZIP}>Make ZIP folder</MenuItem>
</TextField>
</Stack>
</Stack>
Expand Down
66 changes: 35 additions & 31 deletions src/renderer/TournamentView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
Collapse,
IconButton,
ListItemButton,
Tooltip,
Typography,
} from '@mui/material';
import {
Expand Down Expand Up @@ -116,17 +117,18 @@ function PhaseGroupView({
{open ? <KeyboardArrowDown /> : <KeyboardArrowRight />}
<Name>{phaseGroup.name}</Name>
{'\u00A0'}({phaseGroup.id})
<IconButton
aria-label="restore phase"
disabled={getting}
onClick={(event) => {
event.stopPropagation();
get();
}}
size="small"
>
{getting ? <CircularProgress size="24px" /> : <Refresh />}
</IconButton>
<Tooltip arrow title="Refresh phase group">
<IconButton
disabled={getting}
onClick={(event) => {
event.stopPropagation();
get();
}}
size="small"
>
{getting ? <CircularProgress size="24px" /> : <Refresh />}
</IconButton>
</Tooltip>
</ListItemButton>
<Collapse in={open}>
<Block>
Expand Down Expand Up @@ -223,16 +225,17 @@ function PhaseView({
{open ? <KeyboardArrowDown /> : <KeyboardArrowRight />}
<Name>{phase.name}</Name>
{'\u00A0'}({phase.id})
<IconButton
aria-label="restore phase"
onClick={(event) => {
event.stopPropagation();
get();
}}
size="small"
>
{getting ? <CircularProgress size="24px" /> : <Refresh />}
</IconButton>
<Tooltip arrow title="Refresh phase">
<IconButton
onClick={(event) => {
event.stopPropagation();
get();
}}
size="small"
>
{getting ? <CircularProgress size="24px" /> : <Refresh />}
</IconButton>
</Tooltip>
</ListItemButton>
<Collapse in={open}>
<Block>
Expand Down Expand Up @@ -298,16 +301,17 @@ function EventView({
{open ? <KeyboardArrowDown /> : <KeyboardArrowRight />}
<Name>{event.name}</Name>
{'\u00A0'}({event.id})
<IconButton
aria-label="restore event"
onClick={(ev) => {
ev.stopPropagation();
get();
}}
size="small"
>
{getting ? <CircularProgress size="24px" /> : <Refresh />}
</IconButton>
<Tooltip arrow title="Refresh event">
<IconButton
onClick={(ev) => {
ev.stopPropagation();
get();
}}
size="small"
>
{getting ? <CircularProgress size="24px" /> : <Refresh />}
</IconButton>
</Tooltip>
</ListItemButton>
<Collapse in={open}>
<Block>
Expand Down

0 comments on commit 149b49d

Please sign in to comment.