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

[转载发布] Choice List Options [1.42]

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

    连续签到: 2 天

    [LV.7]常住居民III

    7948

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 昨天 14:50 | 显示全部楼层 |阅读模式
    Choice List Options
    Ossra


    Summary
    The plugin allows the game developer to set positioning and layout options of the choice list window.

    Options

    • Window

      • X Position
      • Y Position
      • X Anchor
      • Y Anchor
      • Number of Rows
      • Number of Columns

    • Item

      • Text Alignment
      • Width
      • Spacing

    • Trim

      • Number of Excess Rows
      • Number of Excess Columns

    Manual
    Spoiler: Plugin Parameters
    • Window Properties
    The default properties of the choice list window. Properties that are set here can be temporarily overwritten using plugin commands.​

    X Position
    The x coordinate of the choice window on the screen. Negative values are accepted.​

    Y Position
    The y coordinate of the choice window on the screen. Negative values are accepted.​

    X Anchor
    The x anchor of the choice window.​

    • Y Anchor
    The y anchor of the choice window.​

    • Rows​
    The number of rows the choice window will display.​

    • Columns​
    The number of columns the choice window will display.​

    • Item Properties
    The default item properties of the choice list window. Properties that are set here can be temporarily overwritten using plugin commands.​

    Text Align
    The text alignment of each choice option (left, center, right).​

    Width
    The maximum width of each choice option. Value is in pixels.​

    Spacing
    The spacing between each choice option. Value is in pixels.​

    • Trim Properties
    The default trim actions for the choice list window. Properties that are set here can be temporarily overwritten using plugin commands.​

    Rows
    Enable or disable trimming the number of rows to fit the number of list items.​

    Columns
    Enable or disable trimming the number of columns to fit the number of list items.​
    Spoiler: Plugin Commands
    • Set
                    Code:       
    1. ossra ChoiceList set section property value retain
    2. ossra ChoiceList set section property,property value,value retain,retain
    3. |--------------------------------------------------------------------------|
    4. | Sets one or more properties of the choice list.
    5. |--------------------------------------------------------------------------|
    6. | < Name >        < Type >        < Note >
    7. | section         String          See list below for options.
    8. | property        String          See list below for options.
    9. | value           Any             See list below for values.
    10. | retain          Boolean         Temporarily sets the value as default.
    11. |--------------------------------------------------------------------------|
    12. |--------------------------------------------------------------------------|
    13. | Section | Window
    14. |--------------------------------------------------------------------------|
    15. | < Name >        < Type >        < Note >
    16. | x               Number          X coordinate of the choice window.
    17. | y               Number          Y coordinate of the choice window.
    18. | ax              Number          X anchor of the choice window.
    19. | ay              Number          Y anchor of the choice window.
    20. | rows            Number          Number of rows to be displayed.
    21. | columns         Number          Number of columns to be displayed.
    22. |--------------------------------------------------------------------------|
    23. |--------------------------------------------------------------------------|
    24. | Section | Item
    25. |--------------------------------------------------------------------------|
    26. | < Name >        < Type >        < Note >
    27. | align           String          Text alignment of items. Value must be
    28. |                                 in quotations. (e.g. - "center")
    29. | spacing         Varies          Spacing between items. If value is
    30. |                                 numerical, both horizontal and vertical
    31. |                                 spacing is linked. If value is an
    32. |                                 array (e.g. - [15,25]), then the
    33. |                                 horizontal value is the first entry and
    34. |                                 the vertical value is the second entry.
    35. | width           Number          Maximum width of items.
    36. |--------------------------------------------------------------------------|
    37. |--------------------------------------------------------------------------|
    38. | Section | Trim
    39. |--------------------------------------------------------------------------|
    40. | < Name >        < Type >        < Note >
    41. | rows            Boolean         Trim rows to fit number of list items.
    42. | columns         Boolean         Trim columns to fit number of list items.
    43. |--------------------------------------------------------------------------|
    44. // Example(s)
    45. ossra ChoiceList set window x,y 50,50
    46. ossra ChoiceList set window width 500
    47. ossra ChoiceList set window x,y,rows,columns 50,50,2,2 true
    48. ossra ChoiceList set trim rows,columns true
    49. ossra ChoiceList set item width,spacing,align 120,[25,100],"center" true
    复制代码


    • Clear
                    Code:       
    1. ossra ChoiceList clear section
    2. ossra ChoiceList clear section property
    3. ossra ChoiceList clear section property,property
    4. |--------------------------------------------------------------------------|
    5. | Clears the specified properties of the choice list.
    6. |--------------------------------------------------------------------------|
    7. // Example(s)
    8. ossra ChoiceList clear window
    9. ossra ChoiceList clear item
    10. ossra ChoiceList clear window y,rows,columns
    复制代码

    Plugin Version
    1.42

    RPG Maker Version
    1.6.2

    Download
    via GitHub

    Terms of Use
    Free for Commercial and Non-Commercial Usage

    License
    MIT License


    本贴来自国际rpgmaker官方论坛作者:Ossra处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/choice-list-options-1-42.117369/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-31 22:37 , Processed in 0.127167 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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