From ad643836f0df3c9e761a24751213a03154d839c0 Mon Sep 17 00:00:00 2001 From: Travis Lane <63308171+Tormak9970@users.noreply.github.com> Date: Thu, 22 Sep 2022 16:50:07 -0500 Subject: [PATCH] updated DialogButton props and added nav pref enum (#25) --- src/deck-components/Button.tsx | 3 ++- src/deck-components/FooterLegend.ts | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/deck-components/Button.tsx b/src/deck-components/Button.tsx index 93f3323..11cf75e 100644 --- a/src/deck-components/Button.tsx +++ b/src/deck-components/Button.tsx @@ -1,8 +1,9 @@ import { CSSProperties, FC, RefAttributes } from 'react'; import { CommonUIModule } from '../webpack'; +import { FooterLegendProps } from './FooterLegend'; -export interface DialogButtonProps extends RefAttributes { +export interface DialogButtonProps extends RefAttributes, FooterLegendProps { label?: string; style?: CSSProperties; className?: string; diff --git a/src/deck-components/FooterLegend.ts b/src/deck-components/FooterLegend.ts index cd53197..2519f33 100644 --- a/src/deck-components/FooterLegend.ts +++ b/src/deck-components/FooterLegend.ts @@ -30,6 +30,14 @@ export enum GamepadButton { STEAM_QUICK_MENU } +export enum NavEntryPositionPreferences { + FIRST, + LAST, + MAINTAIN_X, + MAINTAIN_Y, + PREFERRED_CHILD +} + export interface GamepadEventDetail { button: number; is_repeat?: boolean;