All the scripts I've found require the addition of images and other complicated animations to the game to be able to use a simple horizontal command line in the title screen when all I want to do is have the text horizontally-aligned, not vertically-aligned.
Like:
New Game - Continue - Exit Game
instead of:
New Game
Continue
Exit Game
If a simple one could be made (Personally I'll be using it in the 2014 contest) or found, I'd greatly appreciate it!
Thanks.
It's actually pretty easy to adjust. I know, I've figured that one out. If you go into scripts and find Window_TitleCommand. In the first line change it to
class Window_TitleCommand < Window_HorzCommand
You may have to play around to adjust the width of the menu (just a bit lower than that line), but it should work.
just put
def col_max ; return item_max end
somewhere inside the script
and then change window width to whatever it needs to be.
Edit: Ninja'd by mlogan =P
This centers it
def alignment ; return 1 end
if the window width isn't changing the size then do this
def item_width ; return (contents.width / 3) - standard_padding * 2 end
that would definatly work.
they are already pre made defs so just put it inside the script somewhere, but don't put it in another def lol
First doesn't do anything, and second brings up an error that mentions a disposed bitmap?
The first one centers the commands to what the real window would be. Are you using a custom script or is this for the default one? I'll write a new script up when I get home if you would like. I just need to know if your using a special title screen already
You'll need to get the item_rect method which draws the rectangle to select the items which is drawn from the Window_Selectable. For example, adding this on your code:
#-------------------------------------------------------------------------- # * Get Rectangle for Drawing Items #-------------------------------------------------------------------------- def item_rect(index) rect = Rect.new rect.width = item_width - 10 rect.height = item_height rect.x = index % col_max * (item_width + spacing) rect.y = index / col_max * item_height rect end you can play around the dimensions (width and height) and location (x and y) of the rect class on your code. This on any means will only change its measurements on the Window_TitleCommand where you placed the code. It would revert back to the usual item_rect once you get out from there.
Because the cursor and the item_rect follows the commands, you can not make the cursor off the commands, not unless the commands is moved or that the item_rect is changed. The best way you can do for this to remove the excess lines in the rectangle is to decrease its width to 45, that way, all other items on the command are selected properly.
Sorry for late reply (no RM since the post above) but it's all sorted now, thanks 🙂