SonolusHaniwa
  • 1. 概述
  • 2. ハニプレ
  • 3. ユメステ
  • 4. Stellarity
  • 5. Phigros
  • 首页

    • 1. 概述
  • 玩家

    • 2. 安装服务
    • 3. 配置文件标准
    • 4. 服务使用方法
  • 开发者

    • 5. 自定义搜索函数
    • 6. 自定义资源创建接口
    • 7. 插件开发标准
  • 其他

    • 8. 更新日志
    • 9. 关于 srp 资源包
  • 1. 搭建开发环境
  • 2. Sonolus 基础
  • 3. 配置项目信息
  • 4. 基本数据类型
  • 5. 函数与语句块
  • 6. 注意事项
  • 1. 游玩模式基础
  • Index

    • 1. Introduce
  • Basics

    • 1. Index
    • 2. Types
    • 3. Statements
    • 4. Resources
    • 5. Projects
    • 6. Commands
  • API

    • Index
    • Macros
    • Builtins
    • Engine Options
    • Engine UI
    • Play Mode
    • Tutorial Mode
    • Preview Mode
    • Watch Mode
  • 1. 概述
  • 2. ハニプレ
  • 3. ユメステ
  • 4. Stellarity
  • 5. Phigros
  • 首页

    • 1. 概述
  • 玩家

    • 2. 安装服务
    • 3. 配置文件标准
    • 4. 服务使用方法
  • 开发者

    • 5. 自定义搜索函数
    • 6. 自定义资源创建接口
    • 7. 插件开发标准
  • 其他

    • 8. 更新日志
    • 9. 关于 srp 资源包
  • 1. 搭建开发环境
  • 2. Sonolus 基础
  • 3. 配置项目信息
  • 4. 基本数据类型
  • 5. 函数与语句块
  • 6. 注意事项
  • 1. 游玩模式基础
  • Index

    • 1. Introduce
  • Basics

    • 1. Index
    • 2. Types
    • 3. Statements
    • 4. Resources
    • 5. Projects
    • 6. Commands
  • API

    • Index
    • Macros
    • Builtins
    • Engine Options
    • Engine UI
    • Play Mode
    • Tutorial Mode
    • Preview Mode
    • Watch Mode
  • Index

    • 1. Introduce
  • Basics

    • 1. Index
    • 2. Types
    • 3. Statements
    • 4. Resources
    • 5. Projects
    • 6. Commands
  • API

    • Index
    • Macros
    • Builtins
    • Engine Options
    • Engine UI
    • Play Mode
    • Tutorial Mode
    • Preview Mode
    • Watch Mode

Engine UI

class Visibility

constructor Visibility

Description: Constructs a new Visibility object to define the visibility properties of an item in terms of scale and alpha.

Parameters:

ParameterTypeDefaultDescription
scaledouble1The scale size of the item. Must be between 0.5 and 2.
alphadouble0The alpha value of the item. Must be between 0 and 1.

method toJsonObject

Description: Converts the Visibility object into a JSON object.

Returns:

TypeDescription
Json::ValueA JSON representation of the Visibility.

class AnimationTween

constructor AnimationTween

Description: Constructs a new AnimationTween object to define the animation properties of an item, including the start and end values, duration, and easing type.

Parameters:

ParameterTypeDefaultDescription
fromdouble0Start value of the animation. Must be between 0 and 1.
todouble1End value of the animation. Must be between 0 and 1.
durationdouble1Duration of the animation. Must be greater than or equal to 0.
easestringEngineConfigurationAnimationTweenEase.NoneEasing type of the animation. Only members of EngineConfigurationAnimationTweenEase are accepted.

method toJsonObject

Description: Converts the AnimationTween object into a JSON object.

Returns:

TypeDescription
Json::ValueA JSON representation of the AnimationTween.

class Animation

constructor Animation

Description: Constructs a new Animation object to define scale and alpha animation properties using AnimationTween objects.

Parameters:

ParameterTypeDefaultDescription
scaleAnimationTweenAnimationTween()The scale animation of the item.
alphaAnimationTweenAnimationTween()The alpha animation of the item.

method toJsonObject

Description: Converts the Animation object into a JSON object.

Returns:

TypeDescription
Json::ValueA JSON representation of the Animation.

class UI

method SetScope

Description: Sets the scope of the UI configuration. Values are saved and shared between engines.

Parameters:

ParameterTypeDefaultDescription
scopestring""The scope of the UI configuration. When a saved value matching the scope exists, it will be recalled.

method SetMetric

Description: Sets the primary and secondary metrics to be displayed in the UI along with their visibility settings.

Parameters:

ParameterTypeDefaultDescription
primarystringEngineConfigurationMetric.ArcadeThe primary metric to show. Only members of EngineConfigurationMetric are accepted.
primaryVisibilityVisibilityVisibility()The visibility property of the primary metric.
secondarystringEngineConfigurationMetric.LifeThe secondary metric to show. Only members of EngineConfigurationMetric are accepted.
secondaryVisibilityVisibilityVisibility()The visibility property of the secondary metric.

method SetMenu

Description: Sets the visibility properties of the menu in the UI.

Parameters:

ParameterTypeDefaultDescription
visibilityVisibilityVisibility()The visibility property of the menu.

method SetJudgment

Description: Sets the visibility, animation, error style, error placement, and minimum error value for the judgment in the UI.

Parameters:

ParameterTypeDefaultDescription
visibilityVisibilityVisibility()The visibility property of the judgment.
animationAnimationAnimation()The animation of the judgment.
errorStylestringEngineConfigurationJudgmentErrorStyle.NoneThe style of the judgment error. Only members of EngineConfigurationJudgmentErrorStyle are accepted.
errorPlacementstringEngineConfigurationJudgmentErrorPlacement.LeftRightThe placement of the judgment error. Only members of EngineConfigurationJudgmentErrorPlacement are accepted.
errorMindouble0The minimum judgment error to be displayed. Must be greater than or equal to 0.

method SetCombo

Description: Sets the visibility and animation properties of the combo in the UI.

Parameters:

ParameterTypeDefaultDescription
visibilityVisibilityVisibility()The visibility property of the combo.
animationAnimationAnimation()The animation of the combo.

method SetProgress

Description: Sets the visibility properties of the progress in the UI.

Parameters:

ParameterTypeDefaultDescription
visibilityVisibilityVisibility()The visibility property of the progress.

method SetTutorial

Description: Sets the visibility properties of the tutorial navigation and instruction in the UI.

Parameters:

ParameterTypeDefaultDescription
navigationVisibilityVisibility()The visibility property of the tutorial navigation.
instructionVisibilityVisibility()The visibility property of the tutorial instruction.

method toJsonObject

Description: Converts the UI object into a JSON object.

Returns:

TypeDescription
Json::ValueA JSON representation of the UI.

function BuildConfiguration

Description: Builds and outputs the engine configuration as a compressed GZIP JSON file to the specified path.

最近更新: 2025/8/2 12:40
Contributors: LittleYang0531
Prev
Engine Options
Next
Play Mode