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

Method updateUI

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

Source from the content-addressed store, hash-verified

313
314 // MARK: update UI
315 updateUI() {
316 const todayIS = new Date()
317 if ( this.flag.debugMode ) {
318 MA.byId('background_target', 'fsg-back-3')
319 } else if ( todayIS.getMonth() === 3 && todayIS.getDate() === 1 ) {
320 MA.byId('background_target', 'fsg-back-2')
321 }
322
323 MA.queryF('[data-key="game_icon_lg"]').setAttribute('refresh', 'true')
324 MA.queryF('[data-key="game_icon"]').setAttribute('refresh', 'true')
325
326 document.body.setAttribute('data-version', this.flag.currentVersion)
327
328 MA.byId('topBar-mini').clsOrGate(this.flag.miniMode, 'text-info', null)
329 MA.byId('topBar-update').clsShow(this.flag.updateReady)
330 MA.byId('dirty_folders').clsShow(this.flag.folderDirty)
331 MA.byId('moveButton_ver').clsOrGate(this.flag.versionTool, 'btn-danger', 'btn-success')
332 MA.byId('folderEditButton').clsOrGate(this.flag.folderEdit, 'btn-primary', 'btn-outline-primary')
333
334 const optList = []
335 for (const [value, text] of this.mapCollectionDropdown) {
336 optList.push(DATA.optionFromArray([value, text], this.flag.activeCollect))
337 }
338 MA.byIdHTML('collectionSelect', optList.join(''))
339
340 this.updateI18NDrops()
341 }
342
343 // MARK: translated UI selects
344 async updateI18NDrops() {

Callers 1

updateFromDataMethod · 0.95

Calls 1

updateI18NDropsMethod · 0.95

Tested by

no test coverage detected