Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

RMXP:Want Menu Commands to Display Horizontal--not Vertical?

Hey! I'm customizing the ESC menu for my game, and I want to make a simple change but can't figure it out. I have no non-default scripts installed and am using all default ones. I want the menu commands (Items, Save, Etc) to display and be selectable horizontally rather than vertically. So rather than using the up and down arrow keys to select the desired command, you use the left and right keys (and then Enter).

I cannot figure out how to make this happen. I'm not sure if I need to make adjustments to Window_Command or Scene_Menu or what. I'm using RPG Maker XP and am not a programmer at all but am figuring out the scripts to make small tweaks.

I'm sure this is simple and I missed it. Any ideas?
 
It's simple once you know how everything's set up within Window_Command. For figuring that out, take Window_PartyCommand as an example, which is a horizontal command window and therefore holds everything you need. Pay attention to every 2 (the number) in the script, because that might refer to the number of columns the script uses.

I think leaving you by yourself with that hint is a good learning step, considering you asked for support and want to learn scripting... but of course, if you have further questions, come back and I'll be less word-sparing ;)

Good luck.
 
Thanks! I figured it out! But it's weird...I have four horizontal menu options and all show up onscreen, but there is a little triangle at the bottom of the box in the middle, which seems to indicate you are supposed to scroll to more options even though there aren't any. Is there an easy way to get rid of that annoying triangle?
 
The 'triangle' (it's an arrow :p ) indicates your window's contents container (the one you define by using self.contents.whatever) has bigger dimensions (bigger rect, aka rectangular) than your window has room for. In other words, you didn't set up your command window properly, because you still got options vertically (remember, you don't have to EITHER have horizontal or vertical command windows - two-dimensional is just as well functional).

Shove your coding in here if you're a lazy bum, or find the error yourself if you're a man of honor! :tongue:
 
Thanks! I figured it out. I changed the Y value for "items max" after the super dimensions in Window_Command (actually I named mine Window_VertCommand). Pretty sweet! That arrow triangle thing was annoying!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top