MCPcopy Create free account

hub / github.com/chrismaltby/gb-studio / functions

Functions3,761 in github.com/chrismaltby/gb-studio

↓ 3,390 callersFunctionl10n
(key: L10NKey, params?: L10NParams)
src/shared/lib/lang/l10n.ts:43
↓ 184 callersFunctiononChange
(dialogueLine: DialogueLine)
src/components/script/DialogueReviewScene.tsx:184
↓ 112 callersMethodstop
()
appData/webTemplates/binjgb/js/script.js:176
↓ 103 callersFunctionoptimiseScriptValue
( input: ScriptValue, )
src/shared/lib/scriptValue/helpers.ts:28
↓ 90 callersFunctiontestAllHandlers
( name: string, fn: ( handlerLoader: typeof loadScriptEventHandlerFromTrustedString, ) => Pr
test/scriptEventHandlers/handlers.test.ts:33
↓ 71 callersFunctiongetTestScriptHandlers
()
test/getTestScriptHandlers.ts:4
↓ 59 callersFunctionnotifyListeners
(event: MenuListenerKey, value?: unknown)
src/apps/gb-studio/menu.ts:64
↓ 59 callersFunctionprecompileScriptValue
( input: ScriptValue, localsLabel = "", rpnOperations: PrecompiledValueRPNOperation[] = [], fetchOpera
src/shared/lib/scriptValue/helpers.ts:517
↓ 58 callersFunctionsendToProjectWindow
(channel: string, ...args: unknown[])
src/apps/gb-studio/main.ts:595
↓ 52 callersFunctionargValue
(arg: unknown)
src/components/script/ScriptEventFormInput.tsx:110
↓ 52 callersFunctionisScriptValue
(value: unknown)
src/shared/lib/scriptValue/types.ts:210
↓ 47 callersFunctioncreateDescription
(shortDesc: string, features: string[])
src/lib/project/ejectEngineChangelog.ts:11
↓ 47 callersFunctioncreatePattern
()
src/shared/lib/uge/song.ts:30
↓ 44 callersFunction_deprecated
({ oldFn, newFn, msg, }: { oldFn: string; newFn?: string; msg?: string; })
src/lib/compiler/scriptBuilder/deprecatedAPI.ts:31
↓ 44 callersFunctionaddUint32
(value: number)
src/shared/lib/uge/ugeHelper.ts:430
↓ 43 callersFunctionwarnings
(message: string)
src/lib/compiler/buildWorker.ts:120
↓ 40 callersMethoddispose
* Cleans up VM resources
src/lib/scriptEventsHandlers/untrustedHandler.ts:808
↓ 39 callersFunctioncreateTestScriptBuilder
( sceneOverrides: Record<string, unknown> = {}, optionsOverrides: Partial<ScriptBuilderOptions> = {}, )
test/compiler/scriptBuilder.test.ts:17
↓ 39 callersFunctiongetROMFileStem
( overrideName: string, projectName: string, )
src/shared/lib/helpers/filePaths.ts:3
↓ 38 callersFunctionfitSizesToTotal
( currentSizes: number[], totalHeight: number, minSizes: number[], maxSizes: number[], collapsedSize
src/components/ui/hooks/use-vertical-split-pane.ts:248
↓ 37 callersFunctionhexDec
(hex: string)
src/shared/lib/helpers/8bit.ts:38
↓ 37 callersFunctionsrcPath
(...subdirs)
src/apps/shared/webpack.paths.js:7
↓ 35 callersFunctioncreateSubscribeAPI
( channel: string, )
src/renderer/lib/api/setup.ts:92
↓ 35 callersFunctionsaveUGIInstrument
(instrument: UGIInstrument)
src/shared/lib/uge/ugiHelper.ts:19
↓ 35 callersFunctionscriptValueToString
( value: ScriptValue | undefined, options: ScriptValueToStringOptions, )
src/shared/lib/scriptValue/format.ts:15
↓ 35 callersFunctiontrimlines
( string: string, maxCharsPerLine = CHARS_PER_LINE, maxLines = LINE_MAX, maxTotal = CHARS_MAX_TOTAL, )
src/shared/lib/helpers/trimlines.ts:28
↓ 33 callersFunctionloadUGIInstrument
(buffer: Buffer)
src/shared/lib/uge/ugiHelper.ts:118
↓ 31 callersFunctionaddUint32
(value: number)
src/shared/lib/uge/ugiHelper.ts:28
↓ 31 callersFunctionmakePattern
(note: number, instrument: number | null = null)
test/shared/lib/uge/ugeHelper.test.ts:17
↓ 31 callersFunctionmapScript
( script: ScriptEvent[] = [], callback: (e: ScriptEvent) => ScriptEvent, )
src/shared/lib/scripts/walk.ts:52
↓ 30 callersFunctionexpressionToScriptValue
(expression: string)
src/shared/lib/scriptValue/helpers.ts:211
↓ 29 callersFunctiongetSettings
(state: RootState)
src/store/features/settings/settingsState.ts:210
↓ 29 callersFunctionpxToSubpx
(x: number)
src/shared/lib/helpers/subpixels.ts:9
↓ 28 callersFunctioncreateSong
()
src/shared/lib/uge/song.ts:69
↓ 28 callersFunctiondecHex
(v: number, fmt?: CompileOutputFmt)
src/lib/compiler/sounds/compileWav.ts:18
↓ 28 callersFunctionrender
()
src/components/ui/splash/credits/Credits.tsx:162
↓ 28 callersFunctionsceneName
(scene: NamedEntity, sceneIndex: number)
src/shared/lib/entities/entitiesHelpers.ts:803
↓ 26 callersFunctioncastEventToInt
( event: React.ChangeEvent<HTMLInputElement>, fallbackValue: number, )
src/renderer/lib/helpers/castEventValue.ts:1
↓ 26 callersFunctioncloseMenu
()
src/components/forms/PaletteSelectButton.tsx:139
↓ 26 callersFunctiongenerateMigrateMeta
(event: T)
src/lib/project/migration/legacy/migrateLegacyProjectVersions.ts:84
↓ 26 callersFunctionprogress
(message: string)
src/lib/compiler/buildWorker.ts:110
↓ 25 callersFunctionactorName
(actor: NamedEntity, actorIndex: number)
src/shared/lib/entities/entitiesHelpers.ts:789
↓ 25 callersMethodapply
(compiler)
src/apps/gbs-music-web/webpack.music.web.config.js:59
↓ 25 callersFunctioncopy
(src: string, dest: string, options: CopyOptions = {})
src/lib/helpers/fsCopy.ts:72
↓ 25 callersFunctionmapScenesScript
( scenes: T[], options: ScriptMapOptions, callback: (e: ScriptEvent) => ScriptEvent, )
src/shared/lib/scripts/walk.ts:209
↓ 25 callersFunctiontoValidSymbol
(inputSymbol: string)
src/shared/lib/helpers/symbols.ts:6
↓ 24 callersFunctionclamp
(value: number, min: number, max: number)
src/components/ui/form/SliderField.tsx:42
↓ 24 callersFunctiongetROMFilename
( overrideName: string, projectName: string, isColorOnly: boolean, buildType: "rom" | "pocket" | "web"
src/shared/lib/helpers/filePaths.ts:23
↓ 23 callersFunctiondecOct
(dec: number)
src/shared/lib/helpers/8bit.ts:35
↓ 23 callersFunctionguardAssetWithinProject
( assetPath: string, projectRoot: string, )
src/lib/helpers/assets.ts:17
↓ 23 callersFunctionlexText
(inputText: string)
src/shared/lib/compiler/lexText.ts:54
↓ 23 callersFunctionlocalSceneSelectById
(state: EntitiesState, id: string)
src/store/features/entities/helpers.ts:12
↓ 22 callersFunctioncreateSubPatternCell
()
src/shared/lib/uge/song.ts:52
↓ 22 callersFunctiongetRamAddress
(sym: string)
src/components/music/helpers/player.ts:94
↓ 22 callersFunctionparseAssetPath
( filename: string, projectRoot: string, assetFolder: string, )
src/shared/lib/assets/parseAssetPath.ts:22
↓ 21 callersFunctionwrap8Bit
(val: number)
src/shared/lib/helpers/8bit.ts:4
↓ 20 callersFunctiongetDummyCompiledFont
()
test/dummydata.ts:843
↓ 20 callersFunctiongetSizesFromLayout
( layout: SplitPaneLayout[], count: number, totalHeight: number, )
src/components/ui/hooks/use-vertical-split-pane.ts:65
↓ 20 callersFunctionnormalizePath
(path: string)
src/shared/lib/helpers/virtualFilesystem.ts:1
↓ 20 callersFunctionpathToPosix
(filepath: string)
src/shared/lib/helpers/path.ts:3
↓ 20 callersFunctionplayPreview
(song: Song, length: number)
src/components/music/helpers/player.ts:341
↓ 20 callersFunctionsubpxShiftForUnits
(units: DistanceUnitType)
src/shared/lib/helpers/subpixels.ts:17
↓ 20 callersFunctiontoFarPtr
(ref: string)
src/lib/compiler/generateGBVMData.ts:190
↓ 20 callersFunctionwriteResource
( filename: string, resourceType: string, resource: T, )
src/shared/lib/resources/save.ts:130
↓ 19 callersFunctionassetPath
(assetType: AssetType, asset: Asset)
src/shared/lib/helpers/assets.ts:20
↓ 19 callersFunctionclamp
(value: number, min: number, max: number)
src/components/music/form/subpattern/InstrumentSubpatternTracker.tsx:178
↓ 19 callersFunctiondecBin
(dec: number)
src/shared/lib/helpers/8bit.ts:17
↓ 19 callersFunctionfromSigned8Bit
(num: number)
src/shared/lib/helpers/8bit.ts:44
↓ 19 callersFunctioninsertAfterElement
( arr: T[], insertElement: T, afterElement: T, )
src/shared/lib/helpers/array.ts:77
↓ 19 callersFunctionsetMenuItemChecked
(id: string, checkedValue: boolean)
src/apps/gb-studio/menu.ts:827
↓ 18 callersFunctionassertUnreachable
(_x: never)
src/shared/lib/helpers/assert.ts:1
↓ 18 callersFunctionassetURL
(assetType: AssetType, asset: Asset)
src/shared/lib/helpers/assets.ts:36
↓ 18 callersFunctioncast
( schema: T, arr: ResourceWithPath<Static<T>>[], )
src/lib/project/loadProjectResources.ts:138
↓ 18 callersFunctionclampToCType
( value: number, cType: EngineFieldCType, )
src/shared/lib/engineFields/engineFieldToCType.ts:31
↓ 18 callersFunctioncreateSubPattern
()
src/shared/lib/uge/song.ts:62
↓ 18 callersFunctioncreateSubpatternPreset
( name: string, pitch: number[], jump: SubpatternJump[] = [], effects: SubpatternEffect[] = [], )
src/components/music/sidebar/InstrumentEditor.tsx:102
↓ 18 callersFunctiondivisibleBy8
(n: number)
src/shared/lib/helpers/8bit.ts:53
↓ 18 callersFunctionentityToResource
(resourceType: R)
src/shared/lib/entities/entitiesHelpers.ts:447
↓ 18 callersFunctionexpectTileMatchAscii
( data: ArrayLike<number> | undefined, ascii: string, )
test/compiler/sprites/compileSprites.test.ts:404
↓ 18 callersFunctionjoinPath
(...segments: string[])
src/shared/lib/helpers/virtualFilesystem.ts:11
↓ 18 callersFunctionmakeDutyInstrument
( overrides?: Partial<DutyInstrument>, )
test/uge/ugiHelper.test.ts:16
↓ 18 callersFunctionreadUint32
()
src/shared/lib/uge/ugeHelper.ts:57
↓ 17 callersFunctionapplyReparentEntityToCollection
( collection: Record<string, T | undefined>, id: string, toPath: string, )
src/shared/lib/entities/entitiesHelpers.ts:1374
↓ 17 callersFunctionapplyReparentFolderToCollection
( collection: Record<string, T | undefined>, fromPath: string, toPath: string, )
src/shared/lib/entities/entitiesHelpers.ts:1354
↓ 17 callersFunctioncreatePromise
(value: T, delay: number)
test/helpers/promiseLimit.test.ts:4
↓ 17 callersFunctionencodeResource
(castAs: T)
src/lib/project/migration/legacy/migrateLegacyProject.ts:51
↓ 17 callersFunctionencodeString
( inStr: string, mapping?: Record<string, number | number[]>, )
src/shared/lib/helpers/fonts.ts:40
↓ 17 callersFunctionensureEntitySymbolsUnique
( entities: EntityState<T, string>, seenSymbols: Set<string>, generateDefaultSymbol: (entity: T) => stri
src/shared/lib/entities/entitiesHelpers.ts:923
↓ 17 callersFunctionfillVariablePalette
( palette: VariableLengthHexPalette, )
src/shared/lib/tiles/autoColor.ts:532
↓ 17 callersFunctiongetParentPath
(path: string)
src/shared/lib/helpers/virtualFilesystem.ts:22
↓ 17 callersFunctionkebabCase
(string: string)
src/shared/lib/helpers/filePaths.ts:39
↓ 17 callersFunctionmatchIncludes
(substring: string)
test/scriptEventHandlers/handler-compare.test.ts:31
↓ 17 callersFunctionresizeTiles
( tiles: number[], initialWidth: number, initialHeight: number, outputWidth: number, outputHeight: n
src/shared/lib/helpers/tiles.ts:1
↓ 17 callersFunctiontriggerName
(trigger: NamedEntity, triggerIndex: number)
src/shared/lib/entities/entitiesHelpers.ts:796
↓ 17 callersMethodwriteMem
(addr, value)
appData/webTemplates/binjgb/js/debugger.js:372
↓ 16 callersFunctionassetFilename
( projectRoot: string, assetType: AssetType, asset: Asset, )
src/shared/lib/helpers/assets.ts:28
↓ 16 callersFunctioncreatePatternCell
()
src/shared/lib/uge/song.ts:20
↓ 16 callersFunctionduplicateScript
( state: EntitiesState, scriptEventIds: string[], overrides?: Record<string, ScriptEventArgsOverride>, )
src/store/features/entities/helpers.ts:92
↓ 16 callersMethodgetModuleProperty
* Gets a property from module exports
src/lib/scriptEventsHandlers/untrustedHandler.ts:776
↓ 16 callersFunctiongetSpritePalette
(id: string, fallbackId: string)
src/lib/compiler/compileData.ts:415
next →1–100 of 3,761, ranked by callers