mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: green penetration mode
This commit is contained in:
1 parent
e37b91c2e3
commit
f5ac301c7e
4 files changed
+28
-1
No files matched your search
@@ -16,6 +16,9 @@ interface OptionsProps {
|
||||
|
||||
export function Options({ isFullScreen, canvas }: OptionsProps) {
|
||||
const showGrid = useTankopedia((state) => state.model.visual.showGrid);
|
||||
const greenPenetration = useTankopedia(
|
||||
(state) => state.model.visual.greenPenetration,
|
||||
);
|
||||
|
||||
return (
|
||||
<Flex
|
||||
@@ -44,6 +47,17 @@ export function Options({ isFullScreen, canvas }: OptionsProps) {
|
||||
>
|
||||
Show grid
|
||||
</DropdownMenu.CheckboxItem>
|
||||
|
||||
<DropdownMenu.CheckboxItem
|
||||
checked={greenPenetration}
|
||||
onCheckedChange={(checked) => {
|
||||
mutateTankopedia((draft) => {
|
||||
draft.model.visual.greenPenetration = checked;
|
||||
});
|
||||
}}
|
||||
>
|
||||
Greene penetration
|
||||
</DropdownMenu.CheckboxItem>
|
||||
</DropdownMenu.Content>
|
||||
</DropdownMenu.Root>
|
||||
|
||||
|
||||
Reference in new issue
Block a user