dos s0005 defaultDesign - cwtickle/danoniplus-docs GitHub Wiki
English | Japanese
^ Return to Common setting file specification
< Freeze arrow settings | Default design and image settings | Option Enable >
Default design and image settings
g_presetObj.customDesignUse - Default design usage settings
-> Priority chart settings if specified : customTitleUse, customTitleArrowUse, customTitleAnimationUse, customBackUse, customBackMainUse, customReadyUse
- Specifies whether to use the music title, background arrows, background, etc. displayed in the title.
Set to
trueto not use them and use your own. The default isfalsefor both.
g_presetObj.customDesignUse = {
title: false, // Music title
titleArrow: false, // Title background arrow
titleAnimation: false, // Title animation
back: false, // Background (except for play screen)
backMain: false, // Background (play screen)
ready: false, // Play Direction at start
}
g_presetObj.imageSets - Setting the default image set
-> Priority chart settings if specified : imgType
- Use this function if you want to change the basic images such as arrows, freeze arrows, etc. specified by default.
Create a subdirectory in the [img] directory and store a set of images there before use.
Specify
subdirectory name, extension, image rotation (true or false), and step interval at Flatin this order. *Please also see imgType for details.
g_presetObj.imageSets = [`classic,png`, `classic-thin,png`, `note,svg,true,10`];
// First: A set of basic images in the "classic" directory with the "png" extension.
// Second: A set of basic images in the "classic-thin" directory, with the "png" extension
// Third: A set of basic images in the "notes" directory, with the "svg" extension.
| No | Example | Description |
|---|---|---|
| 1 | classic | The subdirectory name of the image set to use. Default is blank (use images directly under img directory). |
| 2 | png | Extension of the image set to be used. Default is svg format. |
| 3 | true | Rotate image or not. Default is true (rotate). This option is present because rotation is not necessary for objects that have no orientation relationship, such as arrows. |
| 4 | 10 | Step spacing when Flat. Default is 50 (arrow size). When Scroll is Flat, two bars are provided instead of a step zone, and the spacing between the two bars can be set in px. |
g_presetObj.overrideExtension - Default image extension setting
-> Priority chart settings if specified : None
- Use
svgimages or other extensions (e.g. png images) for default images such as arrows, Onigiris, etc. (except for images added by the user). - If unspecified, the default is
svgimages. If you are using your own default image and it is not insvgformat, set the extension in the setting below.
g_presetObj.overrideExtension = `svg`;
g_presetObj.customImageList - List of images to be additionally specified
-> Priority chart settings if specified : None
- The image set here can be used for the name set in stepRtnX_Y by storing it in the img directory with the specified name (i.e., available as a character).
For instance, if you specify ball, you need to prepare the following images.
- ball.svg, ballShadow.svg, ballStepHit.svg (can be changed to png by setting g_presetOverrideExtension to png)
g_presetObj.customImageList = [`ball`, `square`];
g_presetObj.animationFillMode - Default value of "animationFillMode" used for background and mask motion
-> Priority chart settings if specified : None
- Sets the initial value of the setting corresponding to the "animation-fill-mode" css style.
- none: Return to initial image
- forwards : Apply "100%(to)" style of the last @keyframes at the end of the animation
- backwards : Apply the style of the first @keyframes "0%(from)" after the animation is completed
g_presetObj.animationFillMode = `forwards`;
Changelog
| Version | Change details |
|---|---|
| v30.1.1 | - Added "Animation-Fill-Mode" default settings for background and mask motions. |
| v27.4.0 | - Rotation support for the list of images to be added (g_presetCustomImageList). |
| v26.3.1 | << Variable name change >> - g_presetCustomDesignUse -> g_presetObj.customDesignUse - g_presetImageSets -> g_presetObj.imageSets - g_presetOverrideExtension -> g_presetObj.overrideExtension - g_presetCustomImageList -> g_presetObj.customImageList |
| v23.1.0 | - Added third and fourth items to default image set settings (g_presetImageSets) |
| v23.0.0 | - Change default image set setting name and definition method (g_presetImageSet -> g_presetImageSets) |
| v22.5.1 | - Implemented the setting of the default image set (g_presetImageSet) and the list of images to be additionally specified (g_presetCustomImageList). |
| v18.5.0 | - Title character animation setting (g_presetCustomDesignUse.titleAnimation) is implemented |
| v15.1.0 | - Implemented default image extension setting (g_presetOverrideExtension) |
| v3.6.0 | - Implemented default design use setting (g_presetCustomDesignUse) |
< Freeze arrow settings | Default design and image settings | Option Enable >