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.

Requesting command window edit

KAIRE

Member

instead of the normal command window where it's;

item
skill
equip
ect.

or

attack
skill
defend
item

i want it to go straight horizontal. as in;

item skill equip status save exit

or

attack skill defend item

get what im saying?
changing the command window or rather window_command will also change the one in battle mode right?
 

KAIRE

Member

yeah a horizontal command is what i want... sorry drawing it out and upload it is troublesome. haha but if you want i can do it.

but yeah. i want horizontal command. and i want it in battle menu by the way...
 
Hmm? After put Tsunokiette's script, find this:
Code:
@actor_command_window = Window_Command.new(160, [s1, s2, s3, s4])

Simply edit it to:
Code:
@actor_command_window = Window_Command.new(160, [s1, s2, s3, s4], 1)

Read his instruction carefully. It's not that hard.
 

KAIRE

Member

this is what i don't get...

Code:
a = 200 #Width - REQUIRED
b = ['Command','Command','Command'] #Commands - REQUIRED
c = nil #Type (0 = Vertical, 1 = Horizontal) - OPTIONAL
d = nil #Text Alignment (0 = Left, 1 = Center, 2 = Right) - OPTIONAL
e = nil #Commands When Selected (EX: N E W  G A M E) - OPTIONAL
f = nil #Color of Selected Command - OPTIONAL
g = nil #Icon names (EX: ['Icon1','Icon2','Icon3'] - OPTIONAL
@command_window = Window_Command.new(a,b,c,d,e,f,g)

and he didn't go into detial about it at all. thanks, but now my text are all crunched up together. how to fix it?
 
It acts like default Window_Command, unless you give optional features(vertical/horizontal? Text alignment, Icons, blahblah....).

for example, if you make your command window like this:
Code:
@command_window = Window_Command.new(640,[array of commands],1,1)
You'll get horizontal command window, with center-aligned commands.(Just make a new project and test it, it won't bite you)

And about the text, find this line:
Code:
rect = Rect.new(x, 32 * index, self.contents.width - 36, 32)

change to this:
Code:
rect = Rect.new(x, 32 * index, self.contents.width - 8, 32)
 

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