Files
Exiled-Exchange-2/ipc/widgets.ts
T
Alexander Drozdov 21f00172f0 Esbuild main process (#580)
* main is working

* make web compile too

* updating ci

* fix
2022-03-24 13:16:37 +02:00

77 lines
1.4 KiB
TypeScript

export interface Widget {
wmId: number
wmType: string
wmTitle: string
wmWants: 'show' | 'hide'
wmZorder: number | 'exclusive' | null
wmFlags: Array<WellKnownFlag | string>
}
export type WellKnownFlag =
'uninitialized' |
'skip-menu' |
'has-browser' |
'invisible-on-blur' |
'hide-on-blur' |
'hide-on-focus' |
'ignore-ui-visibility'
export interface Anchor {
pos: string
x: number
y: number
}
export interface WidgetMenu extends Widget {
anchor: Anchor
alwaysShow: boolean
}
export interface PriceCheckWidget extends Widget {
hotkey: string | null
hotkeyHold: string
hotkeyLocked: string | null
showSeller: false | 'account' | 'ign'
searchStatRange: number
chaosPriceThreshold: number
showRateLimitState: boolean
apiLatencySeconds: number
collapseListings: 'api' | 'app'
smartInitialSearch: boolean
lockedInitialSearch: boolean
activateStockFilter: boolean
showCursor: boolean
requestPricePrediction: boolean
}
export interface ItemCheckWidget extends Widget {
maps: {
showNewStats: boolean
selectedStats: Array<{
matcher: string
decision: string
}>
}
}
export interface StopwatchWidget extends Widget {
anchor: Anchor
}
export interface StashSearchWidget extends Widget {
anchor: Anchor
entries: Array<{
id: number
text: string
}>
}
export interface ImageStripWidget extends Widget {
anchor: Anchor
images: Array<{
id: number
url: string
}>
}