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

Class StateManager

renderer/renderJS/main_ui_lib.js:12–1155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11// eslint-disable-next-line no-unused-vars
12class StateManager {
13 selectClass = 'bg-mod-selected'
14 malwareSkip = []
15 malwareSuppress = []
16
17 flag = {
18 activeCollect : null,
19 currentLocale : 'en',
20 currentVersion : 22,
21 debugMode : false,
22 folderDirty : false,
23 folderEdit : false,
24 gameRunning : false,
25 launchEnable : false,
26 miniMode : false,
27 updateReady : false,
28 versionTool : false,
29 }
30 track = {
31 altClick : null,
32 filter_must : new Set(),
33 filter_not : new Set(),
34 lastID : null,
35 lastIndex : null,
36 lastPayload : null,
37 newFolder : null,
38 openCollection : null,
39 scrollPosition : 0,
40 searchString : '',
41 searchType : 'find_all',
42 selected : new Set(),
43 selectedOnly : false,
44 sortOrder : 'sort_name',
45 }
46 orderMap = { keys : [], keyToNum : {}, max : 0, numToKey : {} }
47
48 collections = {}
49 mods = {}
50 verList = {}
51 extSites = {}
52
53 loader = null
54
55 modal = {
56 mismatch : null,
57 modInfo : null,
58 }
59
60 searchTagList = new Set()
61
62 mapCollectionDropdown = new Map()
63 mapCollectionFiles = new Map()
64
65 // MARK: constructor
66 constructor() {
67 this.dragDrop = new DragDropLib()
68 this.loader = new LoaderLib()
69 this.files = new FileLib()

Callers

nothing calls this directly

Calls 15

doDisplayMethod · 0.95
refreshSelectedMethod · 0.95
doSideBarMethod · 0.95
clearMethod · 0.80
hasMethod · 0.80
keysMethod · 0.80
prevMethod · 0.80
nextMethod · 0.80
setMethod · 0.80
activeMethod · 0.80
addMethod · 0.45
addEventListenerMethod · 0.45

Tested by

no test coverage detected