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

Method open

lib/modAssist_window_lib.js:1243–1252  ·  view source on GitHub ↗

* Open the loading window * @param {string} l10nKey localization key for text * @param {boolean} isDownload show download cancel button

( l10nKey, isDownload = false )

Source from the content-addressed store, hash-verified

1241 * @param {boolean} isDownload show download cancel button
1242 */
1243 open ( l10nKey, isDownload = false ) {
1244 const winTitle = this.#win.l10n.syncStringLookup((l10nKey) !== 'launch' ? `loading_${l10nKey}_title` : 'app_name')
1245 const winSubTitle = this.#win.l10n.syncStringLookup((l10nKey) !== 'launch' ? `loading_${l10nKey}_subtitle` : 'launch_game')
1246 const dlCancel = this.#win.l10n.syncStringLookup('cancel_download')
1247
1248 this.#win.sendToValidWindow(this.#parent, 'loading:titles', winTitle, winSubTitle, dlCancel)
1249 if ( isDownload ) {
1250 this.#win.sendToValidWindow(this.#parent, 'loading:download')
1251 }
1252 }
1253}
1254
1255/**

Callers 2

gameLauncherFunction · 0.45

Calls 2

syncStringLookupMethod · 0.80
sendToValidWindowMethod · 0.80

Tested by

no test coverage detected