Choice List Position

Discussion in 'JS Plugin Requests' started by Symbol_, Sep 11, 2019.

  1. Symbol_

    Symbol_ Veteran Veteran

    Messages:
    97
    Likes Received:
    14
    First Language:
    English
    Primarily Uses:
    RMMV
    If I could now pay you for it, do you think you could make this plugin also make it so you can have sideways rows / columns instead of the default list downwards?
     
    #21
  2. Ossra

    Ossra Formerly Exhydra Veteran

    Messages:
    841
    Likes Received:
    602
    First Language:
    English
    Primarily Uses:
    RMMV
    @Symbol_ The plugin has now been updated with the ability to switch between vertical and horizontal styles.
     
    #22
  3. Symbol_

    Symbol_ Veteran Veteran

    Messages:
    97
    Likes Received:
    14
    First Language:
    English
    Primarily Uses:
    RMMV
    Can it do rows as well?
     
    #23
  4. Symbol_

    Symbol_ Veteran Veteran

    Messages:
    97
    Likes Received:
    14
    First Language:
    English
    Primarily Uses:
    RMMV
    You know what I'm already asking too much, thank you already!

     
    #24
  5. Ossra

    Ossra Formerly Exhydra Veteran

    Messages:
    841
    Likes Received:
    602
    First Language:
    English
    Primarily Uses:
    RMMV
    @Symbol_ Rows for the vertical choice list, or?
     
    #25
  6. Symbol_

    Symbol_ Veteran Veteran

    Messages:
    97
    Likes Received:
    14
    First Language:
    English
    Primarily Uses:
    RMMV
    So for instance you could 3 columns display 2 rows for a total of 6 choices visable on screen at once
     
    #26
  7. Ossra

    Ossra Formerly Exhydra Veteran

    Messages:
    841
    Likes Received:
    602
    First Language:
    English
    Primarily Uses:
    RMMV
    @Symbol_ The plugin has been updated to allow custom rows, columns, and text alignment. Please note that the options for the layout plugin command have changed slightly. Choice List Position
     
    #27
    Almightypebble likes this.
  8. Almightypebble

    Almightypebble Veteran Veteran

    Messages:
    57
    Likes Received:
    1
    First Language:
    Bulgarian
    Primarily Uses:
    RMMV
    Hey, sorry for writing in this thread @Ossra if it's supposed to be locked.
    I wanted to say thank you for this plugin, It's exactly what I've been looking for!
    I'd just like to ask if it would be possible to also edit the spacing between choices, or rather the choice window width?

    Cheers anyway dude, keep up the great work!
     
    #28
  9. Ossra

    Ossra Formerly Exhydra Veteran

    Messages:
    841
    Likes Received:
    602
    First Language:
    English
    Primarily Uses:
    RMMV
    @Almightypebble What do you mean by the spacing between choices? Like, do you want to remove the extra, unused space within the selection rectangle of each option?
     
    #29
    Almightypebble likes this.
  10. Almightypebble

    Almightypebble Veteran Veteran

    Messages:
    57
    Likes Received:
    1
    First Language:
    Bulgarian
    Primarily Uses:
    RMMV
    @Ossra Hey, no I meant for example if I put 1 row and 4 columns, the choices are squished up together in the middle of the screen.
    I want to make it so that they are spread out further apart from each other and cover more of the screen.
    I kinda managed to circumvent it by putting a bunch of spaces before and after the choices text, but the highlighting looks stretched.
    Anyway it's just a minor annoyance, was just curious if it is possible.
     
    #30
  11. Ossra

    Ossra Formerly Exhydra Veteran

    Messages:
    841
    Likes Received:
    602
    First Language:
    English
    Primarily Uses:
    RMMV
    @Almightypebble Ok! I have updated the plugin to include an option to adjust the width of the items on the choice window. Let me know if that is what you were after. Choice List 1.10

    Code:
    ossra ChoiceList setItemStyle width retain
    ossra ChoiceList setItemStyle 120
    ossra ChoiceList setItemStyle 120 true
     
    #31
    Almightypebble likes this.
  12. Almightypebble

    Almightypebble Veteran Veteran

    Messages:
    57
    Likes Received:
    1
    First Language:
    Bulgarian
    Primarily Uses:
    RMMV
    @Ossra Hey, well it seems to work the same way as adding spaces behind and in front of the choice text, but still, it is a much better alternative.
    I guess this means the choices are always connected to each other and you can increase their width instead of their distance from each other.

    Cheers again man!
     
    #32
  13. Ossra

    Ossra Formerly Exhydra Veteran

    Messages:
    841
    Likes Received:
    602
    First Language:
    English
    Primarily Uses:
    RMMV
    @Almightypebble Updated to 1.12 and added in a 'spacing' option. Probably have to adjust the width option along with it. Might be a little funky, at the moment. I am going to do a little more adjusting to the code tomorrow to make changing specific options or a large number of options simpler. For now, here is the new command :

    Code:
    ossra ChoiceList setItemStyle option value retain
    
    // Example ...
    ossra ChoiceList setItemStyle width 150
    ossra ChoiceList setItemStyle width 150 true
    
    ossra ChoiceList setItemStyle spacing 60
     
    #33
    caethyril and Almightypebble like this.
  14. Almightypebble

    Almightypebble Veteran Veteran

    Messages:
    57
    Likes Received:
    1
    First Language:
    Bulgarian
    Primarily Uses:
    RMMV
    @Ossra Hey again dude. The plugin works great! I just forgot to ask last time, could you add a line height option to it?
    The style spacing is great for the width but would it also be possible to increase the height distance?

    Cheers again man!
     
    #34
  15. Ossra

    Ossra Formerly Exhydra Veteran

    Messages:
    841
    Likes Received:
    602
    First Language:
    English
    Primarily Uses:
    RMMV
    @Almightypebble Updated to 1.21 Kind of a large update. This version should be considered a bit of a beta, as code is not as clean as I would prefer. At the moment, the 'spacing' option will increase the vertical and horizontal space between each option.You can also set the default values for the choice list in the plugin configuration. For the next update I will make separate spacing options, and you will be able to set multiple properties in a single plugin command call.

    Please note that the plugin commands have also changed (for the last time, hopefully).

    Code:
    ossra ChoiceList set section property value retain
    
    // Window Options :
    ossra ChoiceList set window x value
    ossra ChoiceList set window y value
    ossra ChoiceList set window rows value
    ossra ChoiceList set window columns value
    
    // Item Options :
    ossra ChoiceList set item align value
    // NOTE: 'align' value MUST be lowercase and in quotations ("left", "center", "right")
    ossra ChoiceList set item width value
    ossra ChoiceList set item spacing value
    
    // Clear Options :
    ossra ChoiceList clear section
    ossra ChoiceList clear section property
    
    // Examples :
    ossra ChoiceList set item spacing 40 true
    ossra ChoiceList set window x 100
    
    // Clears all 'item' styles ...
    ossra ChoiceList clear item
    
    // Clears the 'width' style under the 'item section ...
    ossra ChoiceList clear item width
    
    // Cleared styles revert to the defaults set in the plugin configuration.
     
    Last edited: Sep 24, 2019
    #35
    Almightypebble likes this.
  16. Almightypebble

    Almightypebble Veteran Veteran

    Messages:
    57
    Likes Received:
    1
    First Language:
    Bulgarian
    Primarily Uses:
    RMMV
    Hey, again @Ossra ! :D
    The plugin works great, it has everything I would need for the choice window.
    Changing it so that each option is separated made it extremely flexible, so thank you very much for that!
    But I just noticed a conflict with Yanfly's Message Core.
    It seems to overwrite it completely when it comes to choice selection and I cant use any of the text codes anymore.
    If that can't be changed, would it be possible to add an option for font color to this plugin?
     
    #36
  17. Ossra

    Ossra Formerly Exhydra Veteran

    Messages:
    841
    Likes Received:
    602
    First Language:
    English
    Primarily Uses:
    RMMV
    @Almightypebble Updated to 1.25 Hopefully created a universal work-around for text code related plugins. Should be more compatible with YEP Message Core, at least.
     
    #37
    Almightypebble likes this.
  18. Almightypebble

    Almightypebble Veteran Veteran

    Messages:
    57
    Likes Received:
    1
    First Language:
    Bulgarian
    Primarily Uses:
    RMMV
    @Ossra This seems to have broken it, all of my choice texts are overlapping eachother on the same position if they are on the same row.
    Multiple rows are still okay, but they don't use the alignment anymore.
    Everything else, like the width, spacing, rows and columns is still working though, it's just the text that is bugging out.
     
    Last edited: Sep 24, 2019
    #38
  19. Ossra

    Ossra Formerly Exhydra Veteran

    Messages:
    841
    Likes Received:
    602
    First Language:
    English
    Primarily Uses:
    RMMV
    @Almightypebble Hmm, could you list the plugin commands you are using so I can try to re-create the problem?
     
    Last edited: Sep 24, 2019
    #39
    Almightypebble likes this.
  20. Almightypebble

    Almightypebble Veteran Veteran

    Messages:
    57
    Likes Received:
    1
    First Language:
    Bulgarian
    Primarily Uses:
    RMMV
    @Ossra Hey, I tried putting the plugin on top, but it's the same problem and if its on top it creates duplicates of the choices for some reason and the Y position also bugs out.
    The plugin commands I've used for one of my choice lists is:

    ossra ChoiceList set window x 143 false
    ossra Choicelist set window y 550 false
    ossra Choicelist set window rows 1 false
    ossra Choicelist set window columns 4 false
    ossra Choicelist set item width 400 false
    ossra Choicelist set item spacing 150 false
     
    #40

Share This Page