美文网首页
【汉化】Options Creator

【汉化】Options Creator

作者: 沧笙 | 来源:发表于2018-06-23 00:44 被阅读284次

    Options Creator

    SumRndmDde
    You need the Game Upgrade plugin:You also need the Options Upgrade plugin:
    您还需要game-upgrade插件,这个插件需要Options Upgrade插件

    This plugin provides developers with the ability to add “options” to the Options Menu.
    这个插件为开发人员提供了在选项菜单中添加“选项”的功能。

    Option Explanations

    To add an option, one must add to the “Options” list parameter. Each piece of the list has the following properties:
    要添加选项,必须添加到“选项”列表参数。列表中的每一部分都具有以下属性:

    Name
    The name of the option that will appear in the option menu.
    将出现在选项菜单中的选项的名称。

    Category
    The category the option will fall into for the Options Upgrade plugin.
    将出现在选项菜单中的选项的分类

    Description
    The description used for this option in the Options Upgrade set up.
    将出现在选项菜单中的选项的描述

    Position
    The position of the option on the options menu.
    将出现在选项菜单中的选项的位置。

    Above – Above all the default options
    Middle – Between the general and volume options
    Below – Below all the default options

    Condition
    This JavaScript evaluation that must be true for this option to appear in the menu. If you wish to not use any condition, you can simply set this to “true”. Keep in mind this condition is only checked and applied upon initialization.
    这个JavaScript必须是正确的,这个选项才会出现在菜单中。如果你不想使用任何条件,你可以简单地将其设置为“true”。请记住,此条件仅在初始化时进行检查和应用。

    Variable ID
    The variable that stores the result of the option.
    This variable will persist through all save files!
    存储选项结果的变量。这个变量将通过所有保存文件保留!

    Default Value
    The default value used for the option if none is specified.
    如果没有指定任何选项,则使用默认值。

    On Change Eval
    The JavaScript code that is run when this option is changed.The option’s current value is stored in “value”.
    这个选项改变时运行的JavaScript代码。该选项的当前值存储在“值”中。

    This means if you change the option to its second option, then the eval will run and “value” will be 2.
    这意味着如果将选项更改为第二个选项,则eval将运行,“值”将为2。

    Options
    These are all the option names.
    Each option name corresponds to the index listed on the left.For example, if the player choose the first option, then the value 1 will be stored in the variable. The second option would result in the value of 2, the third would be 3, etc..
    这些都是选项名称。每个选项名称对应于左侧列出的索引。例如,如果玩家选择第一个选项,则值1将被存储在变量中。第二个选项将导致值2,第三个将是3,等等。

    相关文章

      网友评论

          本文标题:【汉化】Options Creator

          本文链接:https://www.haomeiwen.com/subject/ihzlyftx.html