Choice List Options [1.42]

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:
ossra ChoiceList set section property value retain
ossra ChoiceList set section property,property value,value retain,retain

|--------------------------------------------------------------------------|
| Sets one or more properties of the choice list.
|--------------------------------------------------------------------------|
| < Name >        < Type >        < Note >
| section         String          See list below for options.
| property        String          See list below for options.
| value           Any             See list below for values.
| retain          Boolean         Temporarily sets the value as default.
|--------------------------------------------------------------------------|

|--------------------------------------------------------------------------|
| Section | Window
|--------------------------------------------------------------------------|
| < Name >        < Type >        < Note >
| x               Number          X coordinate of the choice window.
| y               Number          Y coordinate of the choice window.
| ax              Number          X anchor of the choice window.
| ay              Number          Y anchor of the choice window.
| rows            Number          Number of rows to be displayed.
| columns         Number          Number of columns to be displayed.
|--------------------------------------------------------------------------|

|--------------------------------------------------------------------------|
| Section | Item
|--------------------------------------------------------------------------|
| < Name >        < Type >        < Note >
| align           String          Text alignment of items. Value must be
|                                 in quotations. (e.g. - "center")
| spacing         Varies          Spacing between items. If value is
|                                 numerical, both horizontal and vertical
|                                 spacing is linked. If value is an
|                                 array (e.g. - [15,25]), then the
|                                 horizontal value is the first entry and
|                                 the vertical value is the second entry.
| width           Number          Maximum width of items.
|--------------------------------------------------------------------------|

|--------------------------------------------------------------------------|
| Section | Trim
|--------------------------------------------------------------------------|
| < Name >        < Type >        < Note >
| rows            Boolean         Trim rows to fit number of list items.
| columns         Boolean         Trim columns to fit number of list items.
|--------------------------------------------------------------------------|

// Example(s)
ossra ChoiceList set window x,y 50,50
ossra ChoiceList set window width 500
ossra ChoiceList set window x,y,rows,columns 50,50,2,2 true
ossra ChoiceList set trim rows,columns true
ossra ChoiceList set item width,spacing,align 120,[25,100],"center" true

• Clear
Code:
ossra ChoiceList clear section
ossra ChoiceList clear section property
ossra ChoiceList clear section property,property

|--------------------------------------------------------------------------|
| Clears the specified properties of the choice list.
|--------------------------------------------------------------------------|

// Example(s)
ossra ChoiceList clear window
ossra ChoiceList clear item
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
I've tried quite a few plugins that modify Choice Lists. This is the best one by far. High compatibility, many features, and great dev support. Thanks Ossra!
If the number of options does not reach the maximum number of lines, there will be a large blank area. Can you add a function? If the option does not reach the maximum number of lines, hide the empty area.
@Summer夏 Updated to 1.42 to add 'trim' options. By default excess rows and columns will now be removed. Default actions can be changed within the plugin parameters and by plugin commands.
Thanks! That would be great. d(`・∀・)b
@Summer夏 The trim options have been added.
hi, it's me again, I found a small problem, setting "spacing" and "width" cannot adapt the number of lines, there will be a blank area at the bottom
@Summer夏 Can you show the plugin commands that you are using to trigger the problem?
1.png2.png3.png4.png
@Summer夏 Ok, I'll check it out!
Doesn't seem to be working for me regardless of the plugins' placement.
Am I doing something wrong?
@Ossra: great plugin! I'm not sure how to set up a plugin command to change the y position, could you share a quick example?

Edit: found working examples in this thread: https://forums.rpgmakerweb.com/index.php?threads/choice-list-position.113142/page-3
When i try to set the window's y position it doesn't take into consideration the column setting anymore, but if i leave only the column setting without y position then it works.

ossra ChoiceList set window columns 1
ossra ChoiceList set window y 400
edit: and now that i wanted to test without the window y setting,the columns setting doesn't even work by itself..wonderful.
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:
ossra ChoiceList set section property value retain
ossra ChoiceList set section property,property value,value retain,retain

|--------------------------------------------------------------------------|
| Sets one or more properties of the choice list.
|--------------------------------------------------------------------------|
| < Name >        < Type >        < Note >
| section         String          See list below for options.
| property        String          See list below for options.
| value           Any             See list below for values.
| retain          Boolean         Temporarily sets the value as default.
|--------------------------------------------------------------------------|

|--------------------------------------------------------------------------|
| Section | Window
|--------------------------------------------------------------------------|
| < Name >        < Type >        < Note >
| x               Number          X coordinate of the choice window.
| y               Number          Y coordinate of the choice window.
| ax              Number          X anchor of the choice window.
| ay              Number          Y anchor of the choice window.
| rows            Number          Number of rows to be displayed.
| columns         Number          Number of columns to be displayed.
|--------------------------------------------------------------------------|

|--------------------------------------------------------------------------|
| Section | Item
|--------------------------------------------------------------------------|
| < Name >        < Type >        < Note >
| align           String          Text alignment of items. Value must be
|                                 in quotations. (e.g. - "center")
| spacing         Varies          Spacing between items. If value is
|                                 numerical, both horizontal and vertical
|                                 spacing is linked. If value is an
|                                 array (e.g. - [15,25]), then the
|                                 horizontal value is the first entry and
|                                 the vertical value is the second entry.
| width           Number          Maximum width of items.
|--------------------------------------------------------------------------|

|--------------------------------------------------------------------------|
| Section | Trim
|--------------------------------------------------------------------------|
| < Name >        < Type >        < Note >
| rows            Boolean         Trim rows to fit number of list items.
| columns         Boolean         Trim columns to fit number of list items.
|--------------------------------------------------------------------------|

// Example(s)
ossra ChoiceList set window x,y 50,50
ossra ChoiceList set window width 500
ossra ChoiceList set window x,y,rows,columns 50,50,2,2 true
ossra ChoiceList set trim rows,columns true
ossra ChoiceList set item width,spacing,align 120,[25,100],"center" true

• Clear
Code:
ossra ChoiceList clear section
ossra ChoiceList clear section property
ossra ChoiceList clear section property,property

|--------------------------------------------------------------------------|
| Clears the specified properties of the choice list.
|--------------------------------------------------------------------------|

// Example(s)
ossra ChoiceList clear window
ossra ChoiceList clear item
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
I know this was all done like 6 years ago but here i am needing help. im new to plug ins and the only one have done is just plug and play. this looks like a lot. when i hit download it just shows me alot of script. can u help explain it to a 10 year old lol. i have a main menu that a picture of my map i have using another plug in but if i use the default choices to move it its in the way. i would like to move it down abit and maybe change the font if possible.

Original thread: https://forums.rpgmakerweb.com/threads/choice-list-options-1-42.117369/