Choice List Options [1.42]

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
857
First Language
English
Primarily Uses
RMMV
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
• 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.​
• 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
 
Last edited:

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
655
Reaction score
398
First Language
English
Primarily Uses
N/A
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!
 

Summer夏

Veteran
Veteran
Joined
Jun 29, 2017
Messages
52
Reaction score
12
First Language
中文
Primarily Uses
RMMV
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.
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
857
First Language
English
Primarily Uses
RMMV
@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.
 

Summer夏

Veteran
Veteran
Joined
Jun 29, 2017
Messages
52
Reaction score
12
First Language
中文
Primarily Uses
RMMV
Thanks! That would be great. d(`・∀・)b
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
857
First Language
English
Primarily Uses
RMMV

Summer夏

Veteran
Veteran
Joined
Jun 29, 2017
Messages
52
Reaction score
12
First Language
中文
Primarily Uses
RMMV
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
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
857
First Language
English
Primarily Uses
RMMV
@Summer夏 Can you show the plugin commands that you are using to trigger the problem?
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
208
Reaction score
18
First Language
Spanish
Primarily Uses
RMMV
Doesn't seem to be working for me regardless the plugins' placement.
Am I doing something wrong?

1607245900813.png
 

Latest Threads

Latest Profile Posts

Who would have thought making interesting birds would be so difficult/fun?

Randomly spawning anywhere on map (sometimes even flying), having a chance of landing on a different spot on map when flying. Also chance of flying off screen if spooked/sees the player

I think I got it!
Since I started in this world of make games, It's hard for me to enjoy playing a game. It's like, coding and make it work, sounds like I'm playing and have fun o_O
Not sure if it's true (and I won't judge or blame anyone if it is, really), but I heard from confident sources that you guys (and girls) really really like to
How is this new year for everyone? Hope you are well. Still deep in Covid in the US. Its like a vampire and refuses to die with even more strains. I need some holy water to kill it with.
in my game, what's known as HeadSpace is combining with the real world...

Forum statistics

Threads
107,670
Messages
1,031,314
Members
139,790
Latest member
xuantrung3120
Top