From 658d4667356a0f71632fb3d97a151a8f7d752509 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Tue, 22 Jul 2025 15:45:31 -0400 Subject: l and r plus minus fps buttons initial --- src/components/ConfigurationSection.tsx | 96 +++++++++++++++++++++++++++------ 1 file changed, 80 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx index eb036ae..c1554f3 100644 --- a/src/components/ConfigurationSection.tsx +++ b/src/components/ConfigurationSection.tsx @@ -1,4 +1,4 @@ -import { PanelSectionRow, ToggleField, SliderField, DropdownItem } from "@decky/ui"; +import { PanelSectionRow, ToggleField, SliderField, DropdownItem, ButtonItem, Field, DialogButton, Focusable } from "@decky/ui"; import { ConfigurationData } from "../config/configSchema"; import { MULTIPLIER, FLOW_SCALE, PERFORMANCE_MODE, HDR_MODE, @@ -34,21 +34,85 @@ export function ConfigurationSection({ - onConfigChange(MULTIPLIER, value.data)} - rgOptions={[ - { data: 1, label: "OFF" }, - { data: 2, label: "2X" }, - { data: 3, label: "3X" }, - { data: 4, label: "4X" }, - { data: 5, label: "5X" }, - { data: 6, label: "6X" }, - ]} - /> +
+ FPS Multiplier +
+
+ Traditional FPS multiplier value +
+ + onConfigChange(MULTIPLIER, Math.max(1, config.multiplier - 1))} + disabled={config.multiplier <= 1} + > + − + +
+ {config.multiplier < 2 ? "OFF" : `${config.multiplier}X`} +
+ onConfigChange(MULTIPLIER, Math.min(6, config.multiplier + 1))} + disabled={config.multiplier >= 6} + > + + + +
-- cgit v1.2.3