-
Notifications
You must be signed in to change notification settings - Fork 0
ObjectReferenceIndex
tickle edited this page Jun 17, 2026
·
6 revisions
English | Japanese
| < ID Reference | Object Reference | Object hierarchy > |
- Base Version: v48.5.1
This document covers the major objects and functions available via custom JS (through
g_customJsObj). In principle, internal-only processes are omitted.
- g_rootObj β Raw chart data (dos data)
- g_headerObj β Configuration values after parsing the chart header
- g_keyObj β Key definitions (patterns, placements, colors, shuffle groups, etc.)
- g_stateObj β Various states during gameplay (speed, gauge, options, etc.)
- g_scoreObj β Chart placement data (arrows, freeze arrows, motions, etc.)
- g_detailObj β Detailed chart information (density, speed data, etc.)
- g_wordObj β Lyrics display state management
- g_attrObj β Attributes for individual arrows and freeze arrows (position, color, counters, etc.)
- g_workObj β Dynamic work variables for the main screen (step zone position, scroll direction, etc.)
- g_resultObj β Result data including judgment counters, score, and combo
-
g_presetObj β Configuration values from the common settings file (
danoni_setting.js) - g_loadObj β File loading state management
- g_settings β Management of various lists and cursor positions on the settings screen
- g_gaugeOptionObj β Gauge configuration options
- g_rankObj β Rank conditions and color definitions
- g_judgObj β Configuration values for judgment windows
- g_lblNameObj / g_lang_lblNameObj β Label string definitions (multilingual support)
- g_msgObj / g_lang_msgObj β Mouse-over and confirmation message definitions
- g_msgInfoObj β Warning and information message definitions
- g_errMsgObj β Error message management by screen
- g_cssObj β CSS class name constants
- g_hidSudObj / g_hidSudFunc β State and display management for Hidden+ / Sudden+
- g_graphColorObj β Color definitions for graphs and gauges
- g_emojiObj β Emoji constants
- g_shortcutObj β Shortcut key definitions by screen
- g_btnWaitFrame β Timing validation for enabling buttons and shortcuts
- g_btnPatterns β Major button lists by screen
- g_btnAddFunc / g_cxtAddFunc β Adding logic/processes to buttons
- g_btnDeleteFlg / g_cxtDeleteFlg β Disable flags for button logic
- g_customJsObj β Insertion points for Custom JS (Title, Main, Results, etc.)
- g_skinJsObj β Insertion points for Skin JS
- g_animationData β Animation type lists (
back,mask,style) - g_animationFunc β Animation creation and drawing functions (
.make,.draw,.drawMain) - g_shuffleFunc β Map of shuffle processing functions (
Mirror,Random, etc.) - g_motionFunc β Map of motion option processing functions
- g_playWindowFunc β Map of PlayWindow option processing functions
- g_stepAreaFunc β Map of StepArea option processing functions
- g_shakingFunc β Map of Shaking option processing functions
- g_effectFunc β Map of Effect option processing functions
- g_frzReturnFunc β Map of FrzReturn option processing functions
- g_escapeStr β Definition collection of string replacement pairs
- g_kCd β KeyCode to display name mapping
- g_kCdN β KeyCode to
KeyboardEvent.codemapping - g_posObj β Step zone position and travel distance
- g_diffObj β Correction values for judgment positions and shortcut display locations
- g_imgObj β Image path management
- g_typeLists β Constants for arrow types, color changes, etc.
- g_limitObj β Constants for sizes and font sizes
- g_templateObj β Default definitions for result formats
- g_pointAllocation β Score point allocation definitions
-
$id (_id) β Returns
document.getElementById(_id).style - multiAppend (_baseObj, ...rest) β Appends multiple child elements at once
- setAttrs (_baseObj, { ...rest }) β Sets multiple attributes at once
- convertStrToVal (_str) β Expands
{variableName}within strings - wUnit (_val, _unitName=
px) β Returns a string appended with the specified unit
-
hasVal (_data, ...strs) β Checks if a value exists (excluding
undefinedand empty strings) -
hasValN (_data, ...strs) β Checks existence while also excluding
null - setVal (_checkStr, _default, _type) β Gets a value with type conversion applied
- setBoolVal (_val, _defaultVal) β Converts to a boolean type
- setIntVal (_val, _defaultVal) β Converts to an integer
- boolToSwitch (_condition) β Converts
true/falseto"ON"/"OFF" - toCapitalize (_str) β Capitalizes only the first letter
-
roundZero (_num, _init) β Rounds values less than 0 up to
_init - nextPos (_basePos, _num, _length) β Calculates a circular index
- sumData (_array) β Returns the sum total of an array
- fillArray (_length, _val=0) β Creates an array filled with the specified value
- makeDedupliArray (_array1, ..._arrays) β Creates a deduplicated array
- checkDuplicatedObjects (_obj) β Creates a nested array if it doesn't exist; prevents duplicates if it does
- makeBaseArray (_array, _minLength, _defaultVal) β Creates an array ensuring a minimum length
- listMatching (_str, _list, { prefix, suffix }) β Partial match search
- fuzzyListMatching (_str, _headerList, _footerList) β Combined prefix and suffix match search
- replaceStr (_str, _pairs) β Performs batch string replacement
- escapeHtml (_str, _escapeList) β Escapes HTML characters
- escapeHtmlForEnabledTag (_str) β Escapes HTML while allowing specific tags
- unEscapeHtml (_str) β Unescapes escaped HTML strings
- splitLF (_str) β Converts a string into an array split by line feeds
- splitLF2 (_str, _delim) β Converts line feeds into delimiters and outputs an array
- getCurrentNo (_list, _target) β Returns the position within an array (returns 0 if not found)
- openLink (_url) β Opens an external link in a new tab
- loadScript2 (_url, _requiredFlg, _charset) β Asynchronously loads a JavaScript file
- importCssFile2 (_href) β Loads a CSS file
- preloadFile (_as, _href, _type, _crossOrigin) β Preloads resources
- getFilePath (_fileName, _directory) β Deconstructs a string into file paths and directories
- checkImage (_str) β Checks image file extensions
- makeColorGradation (_colorStr, { _defaultColorgrd, _colorCdPaddingUse, _objType, _shadowFlg }) β Generates gradient CSS/strings
- colorToHex (_color) β Converts color names to color codes
- colorNameToCode (_color) β Converts color names via Canvas
- checkLightOrDark (_colorStr) β Determines if a color is light or dark
- isColorCd (_str) β Validates whether a string is a hex color code (starting with
#)
- getBasicFont (_priorityFont) β Generates the basic game font string
- getFontSize2 (_str, _maxWidth, { font, maxSiz, minSiz }) β Returns the maximum font size that fits the width
- getStrWidth (_str, _fontsize, _font) β Gets the rendering width of a string
- getStrHeight (_str, _fontsize, _font) β Gets the rendering height of a string
- createDivCss2Label (_id, _text, { x, y, w, h, siz, align, ...rest }, ..._classes) β Creates a div element with text
- createColorObject2 (_id, { x, y, w, h, rotate, styleName, ...rest }, ..._classes) β Creates a div element with arrows or mask images
- createEmptySprite (_parentObj, _newObjId, { x, y, w, h, title, ...rest }, ..._classes) β Creates an empty sprite (div)
- createCss2Button (_id, _text, _func, { x, y, w, h, siz, align, title, resetFunc, cxtFunc, ...rest }, ..._classes) β Creates a button element
- changeStyle (_id, { x, y, w, h, siz, align, title, ...rest }) β Mass updates styles of an existing element
- deleteChildspriteAll (_parentObjName) β Deletes all child elements (and clears event listeners)
- deleteDiv (_parentId, _idName) β Deletes a specified element
- createImg (_id, _imgPath, _x, _y, _width, _height) β Creates a div containing an img element
- createColorPicker (_parentObj, _id, _func, { x, y }) β Generates a color picker
- getTitleDivLabel (_id, _titlename, _x, _y) β Generates a title text label
- createDescDiv (_id, _str, { altId, siz }) β Generates a supplemental description label
- makePlayButton (_func) β Generates the PLAY button
- clearWindow (_redrawFlg, _customDisplayName) β Clears screens and redraws backgrounds
- createMultipleSprite (_baseName, _num) β Generates layered sprites (e.g., back/maskSprite)
- makeBgCanvas (_ctx, { w, h }) β Draws the Canvas background
- addTransform (_id, _transformId, _transform, _priority) β Adds or modifies an element's transform
- delTransform (_id, _transformId) β Deletes a specified transform
- getTransform (_id, _transformId) β Gets the value of a specified transform
- addX (_id, _typeId, _x, { overwrite, priority }) β Adds coordinates in the X direction
- addY (_id, _typeId, _y, { overwrite, priority }) β Adds coordinates in the Y direction
- addXY (_id, _typeId, _x, _y, { overwrite, priority }) β Adds coordinates in both X and Y directions
- delX / delY / delXY (_id, _typeId) β Deletes added coordinates
- rotateXY (_x, _y, _angleDeg) β Rotates coordinate positions
- setShortcutEvent (_displayName, _func, { displayFlg, dfEvtFlg }) β Enables a shortcut key
- createScText (_obj, _settingLabel, { displayName, dfLabel, targetLabel, x, y, w, siz }) β Creates a shortcut key display label
- commonKeyDown (_evt, _displayName, _func, _dfEvtFlg) β Generic processing on keydown events
- keyIsDown (_keyCode) β Checks the pressed state of a key
- keyIsShift () β Checks if the Shift key is pressed
- makeWarningWindow (_text, { resetFlg, backBtnUse }) β Displays a warning window
- makeInfoWindow (_text, _animationName, { _backColor, _textColor, _pointerEvents }) β Displays an info/notice window
- copyTextToClipboard (_textVal, _msg) β Copies text to the clipboard
-
transFrameToTimer (_frame) β Converts frames to a
"MM:SS"string - transTimerToFrame (_str) β Converts a timer string to a frame count
- getQueryParamVal (_name) β Fetches URL query parameters
- g_moveSettingWindow (_changePageFlg, _direction) β Navigates between setting screens
- setDifficulty (_initFlg) β Reconfigures settings when a chart is selected
- setSetting (_scrollNum, _settingName, { func, unitName, roundNum }) β Updates configuration values
- setGauge (_scrollNum, _gaugeInitFlg) β Switches gauge configurations
- gaugeFormat (_mode, _border, _rcv, _dmg, _init, _lifeValFlg) β Formats detailed gauge text
- getStgDetailName (_name) β Converts settings names for display (references
g_lblNameObj.u_*) - getKeyName (_key) β Gets the display name for a key label
- getKeyUnitName (_key) β Gets the key unit name (e.g.,
"key") - makeHighScore (_scoreId) β Updates the high score display
- changeAppearanceFilter (_num) β Redraws the Appearance filter
- drawSpeedGraph (_scoreId) β Renders the speed change graph
- drawDensityGraph (_scoreId) β Renders the density graph
- makeDifInfo (_scoreId) β Updates the difficulty information label
- getScoreBaseData (_scoreId) β Fetches base chart data (arrow count, APM, etc.)
- updateSettingSummary () β Updates the configuration summary display
- judgeArrow (_j) β Processes arrow hit judgments
- lifeRecovery () β Increases the gauge life
- lifeDamage (_excessive) β Decreases the gauge life from damage
- changeLifeColor (_state) β Updates the gauge bar's color and numeric value
- displayDiff (_difFrame, _fjdg, _justFrames) β Displays Fast/Slow indicators
- quickRetry (_retryCondition) β Evaluates automatic retry conditions
- judgeIi / judgeShakin / judgeMatari / judgeShobon / judgeUwan (_difFrame, _j) β Processes individual criteria judgments
- judgeKita / judgeIknai (_difFrame, _j) β Processes freeze arrow judgments
- changeHitFrz (_j, _k, _name, _difFrame) β Updates graphics when hitting a freeze arrow
- changeFailedFrz (_j, _k) β Updates graphics when failing a freeze arrow
- makeFinishView (_text) β Displays Full Combo / Perfect animations
- finishViewing () β Checks state when all arrows have reached the target
- makeArrow (_attrs, _arrowCnt, _name, _color, _shadowColor) β Generates arrows
- makeFrzArrow (_attrs, _arrowCnt, _name, _normalColor, _barColor, _shadowColor) β Generates freeze arrows
- makeStepZone (_j, _keyCtrlPtn) β Generates the step zone
- appearStepZone (_j, _display, _alpha) β Toggles step zone visibility
- appearKeyTypes (_j, _targets, _alphas) β Controls partial key step zone visibility
- changeColors (_mkColor, _mkColorCd, _header, _name) β Applies individual or global color changes
- changeAppearanceBar (_num, _dirPlus) β Updates the appearance filter bar display
- safeExecuteCustomHooks (_hookName, _funcArray, ...args) β Safely executes custom function hooks
- makeResultText (_format, { hashTag, musicTitle, ... }) β Formats result text output
- getSelectedSettingList (_orgShuffleFlg) β Fetches information on currently selected options
-
safeExecuteCustomHooks (_hookName, _funcArray, ...args) β Safely executes functions within
g_customJsObjsequentially - getHeader (_obj, ..._params) β Fetches header values with priority given to locales
- getShadowColor (_colorPos, _arrowColor) β Fetches the shadow color for arrows
- getKeyInfo () β Gets basic configuration info for the current key pattern (
keyCtrlPtn,keyNum, etc.) - setPlayingShortcut () β Updates shortcut keys active during gameplay
- getShuffleName () β Gets the active shuffle display name
- getOrgShuffleFlg () β Checks if shuffle options are set to default
- getTransKeyName (_spaceFlg) β Gets the display name for alternative key modes
- getStorageKeyName (_key, _transName, _assistFlg, _mirrorName, _scoreId) β Gets the storage key name for high scores
- parseStorageData (_keyName, _default) β Parses LocalStorage data
- getQueryParamVal (_name) β Fetches URL query parameters
| < ID Reference | Object Reference | Object hierarchy > |
English | Japanese
- About game system π
- Shortcuts π
- Types and Functions of Keymodes π
- How to set up and play on a local server π
- How to make chart overview π
- How to publish your work data on the Web π
- Source hierarchy π
- Participation Guidelines for Online Events (Festivals) π
- How to upgrade π
- Migration Guide π
- Update Info π
- Defect information for unsupported versions π
- Security Policy π
- Changelog π
- Structure of Release Information π
- Chart settings specification π
- Chart body specification π
- Screen effects specification π
- Gradation specification π
- Common setting file specification π
- CSS skin specification π
- Base directory specification π
- Query parameter specification for work URL π
- Special characters specification π
- Key type's specification π
- Key code used in "KeyCtrl" attribute π
- Runtime Error List π
- ID Reference π
- Object Reference π
- Object hierarchy π
- Object viewing specification π
- Pseudo-frame processing specification π
- Colored objects specification π
- Local storage specification π
- Interrupt processing by custom js (skin js) π
- Custom functions specification π
- Audio Specification π
- Velocity change & Motions π
- Judgment specification π
- Tips Index π
- Custom key types template π
- How to create a custom key type π
- Overwrite key pattern of regular key types π
- How to display background π
- Example of implementation of a key types change work π
- Set your own Reverse with custom key types π
- Abbreviated notation for custom key type's definitions π