Overlay stash-search names and hotkeys (#586)

* Add names for stash-search widgets

* Add hotkeys to overlay stash search widgets

* Fix update delay by manual save on hotkey change

* Add config save on entry.text blur

* misc

Co-authored-by: Alexander Drozdov <snosme@gmail.com>
This commit is contained in:
Inch4Tk
2022-05-04 14:34:26 +02:00
committed by GitHub
parent 2711a91bf7
commit fef9aab468
5 changed files with 50 additions and 17 deletions

View File

@@ -198,10 +198,10 @@ export const defaultConfig = (): Config => ({
y: 46
},
entries: [
{ id: 1, text: '"Pack Size: +3"' },
{ id: 2, text: 'Reflect' },
{ id: 3, text: '"Cannot Leech Life"' },
{ id: 4, text: '"Cannot Leech Mana"' }
{ id: 1, name: '', text: '"Pack Size: +3"', hotkey: null },
{ id: 2, name: '', text: 'Reflect', hotkey: null },
{ id: 3, name: '', text: '"Cannot Leech Life"', hotkey: null },
{ id: 4, name: '', text: '"Cannot Leech Mana"', hotkey: null }
]
} as widget.StashSearchWidget,
{
@@ -217,12 +217,12 @@ export const defaultConfig = (): Config => ({
y: 56
},
entries: [
{ id: 1, text: 'Currency' },
{ id: 2, text: '"Divination Card"' },
{ id: 3, text: 'Fossil' },
{ id: 4, text: '"Map Tier"' },
{ id: 5, text: '"Map Device" "Rarity: Normal"' },
{ id: 6, text: 'Tane Laboratory' }
{ id: 1, name: '', text: 'Currency', hotkey: null },
{ id: 2, name: '', text: '"Divination Card"', hotkey: null },
{ id: 3, name: '', text: 'Fossil', hotkey: null },
{ id: 4, name: '', text: '"Map Tier"', hotkey: null },
{ id: 5, name: '', text: '"Map Device" "Rarity: Normal"', hotkey: null },
{ id: 6, name: '', text: 'Tane Laboratory', hotkey: null }
]
} as widget.StashSearchWidget,
{

View File

@@ -63,7 +63,9 @@ export interface StashSearchWidget extends Widget {
anchor: Anchor
entries: Array<{
id: number
name: string
text: string
hotkey: string | null
}>
}