设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 53|回复: 0

[转载发布] DreamX Options

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    7927

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    29861
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    38682

    灌水之王

    发表于 10 小时前 | 显示全部楼层 |阅读模式
    Features


            Ability to use switches or variables as options


            Ability to change resolution (requires restart)


            Ability to change fullscreen persistently


            Ability to optionally have a help window with text to help explain your options


            Ability to change the size position of the options menu and help window


            Ability to change the text for "ON" and "OFF" in the options menu


            Ability to have switch and variable persistence for specified ones


    [/url]


            Resolution and help text options are defined in a json file. By default, it should be located in your data folder, but you can change the filename and location in the parameters. [url=https://raw.githubusercontent.com/DreamXRMMV/Rpg-Maker-MV/master/DreamX_Options.json]Here is a sample json file to help you that you can use and edit.



    Future Updates


    • Add image options to help facilitate things like color blind accessibility



    * ============================================================================
    * Json Help - General
    * ============================================================================
    * The json file is used to customize extra things for this plugin.
    * You can take a look at the sample provided by me to find out how to
    * structure it. Take a close look at the names, values and commas. The commas
    * are especially important because they can make a json file unusable if
    * placed improperly. A comma needs to placed for every entry in a list
    * aside from the last one. The last one must not have a comma.
    *
    * ============================================================================
    * Json Help - Variables
    * ============================================================================
    * A "step" for the variable is the interval that is increased or decreased
    * when changing the value.
    *
    * If a variable option's value is less than the mininimum, greater than the
    * maximum or not a multiple of the step value, then it will get reinitialized
    * to the minimum.
    * ============================================================================
    * Json Help - Locks
    * ============================================================================
    * You can use the json file to lock options. See the example json file.
    *
    * You will use the symbol (for example, "commandRemember" in the example
    * json file). User-defined switches and variables use the same symbol style as
    * in the HELP_TEXT section of the example json file.
    *
    * The "condition" attribute decides whether to lock the option or not.
    * You will enter javascript there. If you need to use more than one line,
    * I suggest putting a function call in there.
    * If the condition evaluates as true, the option will be locked.
    *
    * "reset" decides whether to change the value of the option after resetting.
    * You will enter javascript there. A simple true or false will probably
    * suffice.
    *
    * "resetValue" only applies if the option is set to reset upon locking, so
    * don't worry about this if you're not resetting the value. This attribute
    * is what the value of the option is changed to upon resetting. In most cases,
    * a number, true, or false will suffice.
    *
    * If you need to use quotes, make sure to escape them. For example, if you
    * want to reset the resolution to 816 x 624, you would use
    * "\"816 624\""
    * as the reset value.
    * ============================================================================
    * Json Help - Help Text
    * ============================================================================
    * Use the symbol for the option in the help text section, to set help text.
    * Switches will be switch_x with x as the id, variables will be variable_x
    * with x as the id.
    * You can do this with options from other plugins, too.
    *
    * For other plugins that add options, you should first ask the plugin author
    * what the symbols for the options are. If this is convenient for you, you can
    * search for "this.addCommand" (without quotes) In the plugin file. The one(s)
    * you are looking for will probably be within the Window_Options class.
    *
    * For example, if I do that in Yanfly's Keyboard Config file, I'll find this
    * in a function in the Window_Options class:
    *
    * this.addCommand(Yanfly.Param.KeyConfigName, 'keyConfig', true);
    *
    * So, the symbol is 'keyConfig'
    * I will add an entry under HELP_TEXT in the json file using this symbol.
    * For example, I would add this:
    *  
    * "keyConfig": "This will allow you to configure the keys",
    *  
    * You're going to do it the same way as the other help text examples, so make
    * sure that if its the last entry, it does NOT have a comma at the end,
    * otherwise it should.
    * ============================================================================
    * Switches Parameter Help
    * ============================================================================
    * Enter switch ids for the parameter Switches. You can include ranges.
    * Example:
    * 1-4 9 11-13
    * Will include the numbers 1, 2, 3, 4, 9, 11, 12, 13
    *
    * In the options menu, the name you use for these switches will appear.
    * ============================================================================
    * Persistency Help
    * ============================================================================
    * Switches and variables made persistent will be the same for every
    * playthrough of your game. If whenever a persistent switch/variable is
    * changed in one playthrough, it will also be changed in another playthrough,
    * including when loading saves.
    *
    * To reset this and the game options, delete config.rpgsave from the
    * save folder. When sending your game to your players, don't send them this
    * file, so they don't have your playthrough data and option choices
    * affecting their playthrough.
    * ============================================================================
    * Tips & Tricks
    * ============================================================================
    * Resolution and fullscreen options require YEP Core Engine.
    *
    * Any option change meant to persist between all saves (like the always dash
    * option) is only saved when you close out of the options menu, which is how
    * the default program and most other games in general work.
    *
    * Make sure that your game's default resolution (whatever the resolution is
    * when you haven't set any in-game options is put into the json file somewhere,
    * before enabling the resolution option. The sample json are provide already
    * includes the default 816 x 624 resolution that occurs in RPG Maker MV
    * without any plugins.
    *
    * If you made a mistake with your options, you can delete the config.rpgsave
    * file in the save folder to reset them.
    *
    * When choosing resolutions, you should generally use a width and height that
    * is a multiple of the tile size you are using. Not doing so will result in
    * black borders on the sides of the screen while on the map.
    *
    * If you find that your game is too blurry looking when changing resolution or
    * becoming fullscreen, you can try adding
    * <style type="text/css"> CANVAS{image-rendering: pixelated;}</style>
    * within the html tags of index.html of your project.
    *
    * Note that depending on which resolution you chose and/or the sizes of the  
    * sprites, this make the game look quite pixelated. Experiment to choose
    * what is best for your game.
    *
    * When writing help text, you can use \n to do a line break.
    *
    * To make a window the size of game window, use:
    *  Graphics.boxWidth for width
    *  Graphics.boxHeight for height
    *  You can also use those for calculations.
    * ============================================================================
    * Terms Of Use
    * ============================================================================
    * Free to use and modify for commercial and noncommercial games, with credit.
    * ============================================================================
    * Credits
    * ============================================================================
    * DreamX
    * Thanks to Yanfly for resolution changing snippet from YEP Core Engine.


    Script


    Json File


    本贴来自国际rpgmaker官方论坛作者:DreamX处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/dreamx-options.64663/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-31 21:40 , Processed in 0.067477 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表