AboutCustomJs - cwtickle/danoniplus-docs GitHub Wiki

English | Japanese

| < Pseudo-frame processing specification | Interrupt processing by custom js (skin js) | Custom functions specification > |

Interrupt processing by custom js (skin js)

In the Dancing☆Onigiri(CW Edition) source, you can change the information of objects in the screen without directly modifying danoni_main.js by interrupting the process with a custom js file or skin js file.
Please refer to the pages of ID List for more information about accessible objects.

The functions for skins are intended for use when font size, color change, etc. cannot be controlled by CSS, but can be used in the same way as custom js.

Some changes have been made to the definition of custom functions since ver25.3.0. See also Defining Custom Functions.
The following diagram assumes that the following settings have been made. The skin Js names are for convenience only. The actual skin Js name should be in the format "danoni_skin_(skin name).js".

Example of specifying a function on the custom Js side

function preTitle1 () {
    // processing
}
g_customJsObj.pretitle.push(preTitle1);

Example of specifying a function on the skin Js side

function skinTitle1 () {
    // processing
}
g_skinJsObj.title.push(skinTitle1);

Interrupt processing flow by screen

  • The names listed in the squares represent function names.
  • The function names listed in custom1, custom2, skin1, skin2 do not exist from the beginning and must be defined according to the configuration example above.

Title screen (titleInit)

Setup screen (optionInit)

Display screen (settingsDisplayInit)

Key configuration screen (keyConfigInit)

読込画面 (loadingScoreInit)

Play screen (mainInit)

Result screen (resultInit)

Restrictions on interrupt functions

  • Basically, within the same screen, the IDs defined in ID List can be used as long as they are within the same screen.
    However, buttons that move to other screens cannot be accessed.
  • The IDs defined in the Object List, the outer functions (not intra-function functions) can be used.

Related pages

| < Pseudo-frame processing specification | Interrupt processing by custom js (skin js) | Custom functions specification > |