MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / topBarHandlers

Function topBarHandlers

renderer/renderJS/main_ui.js:62–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61//MARK: top bar event
62function topBarHandlers() {
63 MA.byIdEventIfExists('bottomBar-debug', () => { window.main_IPC.dispatch('debug') })
64 MA.byIdEventIfExists('topBar-basegame', () => { window.main_IPC.dispatch('basegame') })
65 MA.byIdEventIfExists('topBar-find', () => { window.main_IPC.dispatch('find') })
66 MA.byIdEventIfExists('topBar-gamelog', () => { window.main_IPC.dispatch('gamelog') })
67 MA.byIdEventIfExists('topBar-help', () => { window.main_IPC.dispatch('help') })
68 MA.byIdEventIfExists('topBar-input', () => { window.main_IPC.dispatch('input') })
69 MA.byIdEventIfExists('topBar-launch', () => { window.state.action.launchGame() })
70 MA.byIdEventIfExists('topBar-mini', () => { window.main_IPC.dispatch('mini') })
71 MA.byIdEventIfExists('topBar-preferences', () => { window.state.prefs.open() })
72 MA.byIdEventIfExists('topBar-savemanage', () => { window.main_IPC.dispatch('savemanage') })
73 MA.byIdEventIfExists('topBar-savetrack', () => { window.main_IPC.dispatch('savetrack') })
74 MA.byIdEventIfExists('topBar-tray', () => { window.main_IPC.minimizeToTray() })
75 MA.byIdEventIfExists('topBar-update', () => { window.main_IPC.updateApplication() })
76}
77//MARK: side bar event
78function sideBarHandlers() {
79 MA.byIdEventIfExists('moveButton_ver', () => { window.main_IPC.dispatch('version') })

Callers 1

main_ui.jsFile · 0.85

Calls 2

launchGameMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected