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

Method constructor

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

Source from the content-addressed store, hash-verified

64
65 // MARK: constructor
66 constructor() {
67 this.dragDrop = new DragDropLib()
68 this.loader = new LoaderLib()
69 this.files = new FileLib()
70 this.prefs = new PrefLib()
71 this.modal.mismatch = new ModalOverlay('#open_game_modal')
72 this.modal.modInfo = new ModalOverlay('#open_mod_info_modal')
73
74 window.main_IPC.receive('status:all', () => this.updateState() )
75 window.main_IPC.receive('files:deleteTrigger', () => {
76 if ( this.track.selected.size !== 0 ) {
77 this.startFile('delete')
78 } else if ( this.track.openCollection !== null ) {
79 window.main_IPC.folder.remove(this.track.openCollection)
80 }
81 })
82 }
83
84 #updateTracking(data) {
85 const lastColSet = this.track.lastPayload?.set_Collections || null

Callers

nothing calls this directly

Calls 3

updateStateMethod · 0.95
startFileMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected