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

Method constructor

renderer/renderJS/mini_ui.js:33–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 flasherCounter = 0
32
33 constructor() {
34 MA.byId('active_button').addEventListener('click', () => { this.action.collectActive() })
35 MA.byId('launch_button').addEventListener('click', () => { this.action.launchGame() } )
36 MA.byId('gameLogButton').addEventListener('click', () => { window.mini_IPC.dispatchLog() } )
37 MA.byId('window-pin-button').addEventListener('click', () => { window.mini_IPC.togglePin() })
38 window.mini_IPC.receive('status:all', () => this.updateState() )
39 }
40
41 async updateFromData(data) {
42 this.track.lastPayload = data

Callers

nothing calls this directly

Calls 3

updateStateMethod · 0.95
launchGameMethod · 0.80
addEventListenerMethod · 0.45

Tested by

no test coverage detected