Quantcast
Channel: RGSS3 Scripts (RMVX Ace) Latest Topics
Viewing all articles
Browse latest Browse all 416

How to get the options menu in a different position on screen

$
0
0

I adjusted the Options List script in VX Ace so it would appear in the middle of the screen rather than the right by combining the Title Screen Choices (which appear in the center of the screen) with the standard choices. I did this so it wouldn't conflict with the Yanfly "Improved Messages" script, where the options appear behind the name box.

 

Just replace the "Update Window Position" with the text below under the "Window_ChoiceList" script:

  #--------------------------------------------------------------------------
  # * Update Window Position
  #--------------------------------------------------------------------------
  def update_placement
    self.width = [max_choice_width + 12, 96].max + padding * 2
    self.width = [width, Graphics.width].min
    self.height = fitting_height($game_message.choices.size)
    self.x = (Graphics.width - width) / 2
    if @message_window.y >= Graphics.height / 2
      self.y = @message_window.y - height
    else
      self.y = @message_window.y + @message_window.height
    end
  end

It's just a simple script change, nothing truly spectacular. But I figured I'd share what I discovered anyway.

 

I believe it's also possible to get the choices on the left of the screen as well, but I have not tried to figure how to do so. I myself only needed it in the center of the screen.

EDIT: Mess with the 2 in the X value to get the proper box placement.

 

I've heard there are options to adjust the position in MV, but I don't have that, so I had to get creative. :)

 

Screenshots (Warning: Contains very early work in progress!)

CnOskKQ.png

uD2VBsR.png


Viewing all articles
Browse latest Browse all 416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>