AboutObjectViewing - cwtickle/danoniplus-docs GitHub Wiki

English | Japanese

| < Object hierarchy | Object viewing specification | Pseudo-frame processing specification > |

Object viewing specification

  • This is the specification of the object display (formatObject function) that is displayed on the precondition screen and data management screen.
  • Basically, it is formatted and displayed in JSON format, but decorated when displayed on the screen.

Common

  • The list of objects to be displayed on the preconditions screen is managed in g_settings.preconditions.
  • The list as of ver40.6.0 is as follows. You can also add your own custom JS.
g_settings.preconditions = [
    `g_rootObj`, `g_headerObj`, `g_keyObj`, `g_scoreObj`, `g_workObj`,
    `g_detailObj`, `g_stateObj`, `g_attrObj`, `g_editorTmp`,
];

Objects

  • Display in the form "property name": {content}.
  • If there are objects in the property, they are nested.

Arrays

  • Arrays are specified to be formatted only once when there are two or more arrays of two dimensions.

Color code (when decoration is enabled)

  • Detects color codes (6 or 8 digits) and writes actual colors together.

Bool value (when decoration is enabled)

  • Detects true/false and ON values for decoration.

Display assigned keys (when decoration is enabled, limited to properties)

  • Target properties: keyCtrlX, keyRetryX, keyTitleBackX
  • Converts internally stored key codes into actual assigned keys and displays them.
  • It is switched according to the language setting.

Show scroll direction (when decoration is enabled, limited to properties)

  • Target property: scrollDirX
  • Scroll direction is indicated with a color.

Array set display (when decoration is enabled, limited to properties)

  • Target properties: colorData, scrollchData, etc. (Defined by g_dataSetObj)
  • Display a pair of arrays, such as one set of three, divided into rows.
  • Number of frames: display1, display2` format.
  • The target is defined in g_dataSetObj and as of ver40.6.0 is as follows. Specify the number per set in the property name.
const g_dataSetObj = {
    2: [`speedData`, `boostData`],
    4: [`colorData`, `arrowCssMotionData`, `frzCssMotionData`,
        `dummyArrowCssMotionData`, `dummyFrzCssMotionData`],
    5: [`ncolorData`, `scrollchData`],
}

Arrays of 100 or more (when decorations are enabled)

  • If the array length is 100 or more, it is displayed in the format array number: contents.

Custom key type definitions for Dancing☆Onigiri editor (CW Edition compatible)

  • The g_editorTmp object automatically generates a definition format that can be used with the Dancing☆Onigiri editor (CW Edition compatible).

Basic Specifications

  • In the editor, up, down, left, right, "B" and "Space" are reserved, so they are substituted by other keys.
  • It does not look to see if there is the same one at the substitution destination. If so, please adjust them individually.
  • As for the id value, it is defined as keyCtrlX number of lists x 100 + (random number from 0 to 99). We cannot check if this is also the same as the existing editor's id value, so please change it if necessary.
Original key Alternate key
ArrowLeft KeyU
ArrowDown KeyI
ArrowUp Digit8
ArrowRight KeyO
Space KeyG
KeyB KeyH
Enter BackSlash
ShiftLeft KeyZ
ShiftRight Slash
Tab KeyQ

If there is a keyGroup definition (mainly transkey type)

  • If there is a keyGroupX definition, split the definition by keyGroup.
  • Property names are displayed as keytype_1, keytype_2, ... .

Custom key type definitions for Dan-Oni chart editor ver3

  • The g_editorTmp2 object automatically generates a definition format that can be used in Dan-Oni chart editor ver3.

Basic Specifications

  • If there are multiple custom key types, the output will be for multiple keys, so it is assumed that they will be cut out and used.
Items Auto-generated specifications
$key Key name in the custom key type definition, not the name set in keyNameX.
$map Color for each lane. Up to 7 can be specified, so if more than 7 are specified, the number is reassigned from 0. Also, unlike CW Edition, rice balls are equivalent to 0 (2 for CW Editon), so only 0 to 2 are assigned in the order 1, 2, 0.
$pos Column width. Defaults to 24, set to 28 if non-arrow is specified.* Determined by reference to the value of stepRtnX.
$txt The text to display at the top of the column. Displays the name of the assigned key; even if there are multiple keys for one key, only one type is displayed. Also, commas are removed because commas cannot be used due to delimiters.
$conv1 Routine for performing in-range note position transformations. Only mirror placement is automatically generated. Use existing shuffle groups to set up mirrors between shuffle groups. If there is more than one, it will be auto-generated for more than one.

Changelog

Version Change details
v40.7.0 - Added the ability to automatically generate custom key type definitions for Dan-Oni Chart Editor ver3.- Supported for automatic generation of orderGroups for custom key type definitions for Dancing☆Onigiri Editor (CW Edition compatible).
v40.6.0 - Added setting to display actual assigned keys for keyRetryX and keyTitleBackX.- Added a setting that detects when the value is "ON" and decorates it.
v40.3.1 - Added settings for array set display.
v40.3.0 - Added the ability to automatically generate custom key definitions for Dancing☆Onigiri Editor (CW Edition compatible).
v40.2.0 - Added setting to detect and decorate Boolean values.- Added scroll direction display decoration setting.
v40.0.0 - Added a setting to display each array element when the array length is 100 or greater.
v39.7.0 - Added setting to display actual color in the color code section.- Added setting to display actual assigned keys in key code.
v39.5.0 - Initial implementation

| < Object hierarchy | Object Viewing Specification | Pseudo-frame processing specification > |