[go: nahoru, domu]

Skip to content

Commit

Permalink
more buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Feb 27, 2024
1 parent 50c9f6b commit c1e5a04
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
11 changes: 9 additions & 2 deletions apps/WarriorHappy/src/app/match/Endgame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,17 @@ export default function Endgame({
<View className="mt-5">
<Text className="pl-3 text-lg">Scoring (Trap=🚪, Hanging=⛓️)</Text>
<ActionGrid
actions={["Miss 🚪", "Miss ⛓️", "Score 🚪", "Score ⛓️", "Park"]}
actions={[
"Miss 🚪",
"Miss ⛓️",
"Score 🚪",
"Score ⛓️",
"Park",
"Spotlight",
]}
history={ultimateHistory.log}
setHistory={setHistory}
themeOverrides={["red", "red", "green", "green", "gray"]}
themeOverrides={["red", "red", "green", "green", "gray", "blue"]}
/>
</View>
);
Expand Down
4 changes: 2 additions & 2 deletions apps/WarriorHappy/src/app/match/Teleop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default function Teleop({
} as UltimateHistory);
}
const intakeActions = [
"Human",
"Ground",
"Source",
"Floor",
// "Climb",
// "Shoot Amp",
// "Miss Speaker",
Expand Down
11 changes: 11 additions & 0 deletions apps/WarriorHappy/src/app/match/components/Dangerous.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default function Dangerous({
marginTop: "auto",
marginBottom: 30,
display: "flex",
flexWrap: "wrap",
flexDirection: "row",
justifyContent: "space-between",
}}
Expand All @@ -32,6 +33,16 @@ export default function Dangerous({
label="Disconnected"
theme={"red"}
/>
<ActionButton
action={() => {
setUltimateHistory({
...ultimateHistory,
log: [...ultimateHistory.log, "Reconnected"],
} as UltimateHistory);
}}
label="Reconnected"
theme={"green"}
/>
<ActionButton
action={() => {
setUltimateHistory({
Expand Down

0 comments on commit c1e5a04

Please sign in to comment.