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

Method launchGame

renderer/renderJS/main_ui_lib.js:1114–1127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1112 return window.main_IPC.folder.active(null)
1113 },
1114 launchGame() {
1115 const currentList = MA.byIdValue('collectionSelect')
1116 if ( currentList === window.state.flag.activeCollect ) {
1117 // Selected is active, no confirm
1118 LEDLib.spinLED()
1119 window.main_IPC.dispatch('game')
1120 } else {
1121 // Different, ask confirmation
1122 MA.byIdHTML('no_match_game_list', window.state.mapCollectionDropdown.get(window.state.flag.activeCollect))
1123 MA.byIdHTML('no_match_ma_list', window.state.mapCollectionDropdown.get(currentList))
1124 LEDLib.fastBlinkLED()
1125 window.state.modal.mismatch.show()
1126 }
1127 },
1128 launchGame_FIX : () => {
1129 window.state.modal.mismatch.hide()
1130 window.state.action.collectActive().then(() => {

Callers 2

topBarHandlersFunction · 0.80
constructorMethod · 0.80

Calls 2

getMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected