* Open the loading window * @param {string} l10nKey localization key for text * @param {boolean} isDownload show download cancel button
( l10nKey, isDownload = false )
| 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 | /** |
no test coverage detected