Main Menu
  • Welcome to The RPG Maker Resource Kit.

[Resolved] Spacing out Commands

Started by blazinhandle, February 24, 2007, 01:29:45 AM

0 Members and 1 Guest are viewing this topic.

blazinhandle

I'm trying to space out the commands so that they match my commandwindowbackground that I made. Anyboyd know how to space of the commands? Thanks!


modern algebra

Nice: Fire Emblem pics and a ToS battler, I like this game already  :P

Anyway, I'm not exactly sure what you're asking: they look spaced out already. Do you want to move them or what exactly? I like the battle system by the way: did you make it?

blazinhandle

i'm trying to space out the commands more so that they are lined up perfectly with the background (they are a bit off and i want it to be exact ;))

yeah i designed the CBS, i'll point out that i've inputed blizzard's amazingly useful  SR/SL system as well as a few of my own. i'm glad u like it.

btw, i'm planning on replacing both the battlers and the faces before the final demo is released. i'm trying to use custom everything as i hate borrowing graphics.

Blizzard

Wow, the battle menu looks great. ;8

You can check how much width a drawn string will take by using this command:

Quoteself.contents.text_size(YOUR_STRING).width

This method will return to needed width for the string called YOUR_STRING. BTW, you should always add 4 or 8 pixels, since sometimes it's not 100% accurate. Also note that italic letters are not being considered.

Find the def draw_item(i) method in Window_Selectable, copy it into the code of your window and mess around with this command:

self.contents.draw_text(4, 32*i, 128, 32, @commands[i])

or very similar to this one. You need to work with the 32*i, try changing it to 36*i and look if it fits. Also, don't forget to change the height of the window and the height of the Bitmap. Best is you don't use the default Window_Command, but make another class with the Window_Command as superclass like:

Window_BattleCommand < Window_Command

Or just read the e-mail and after you've sent me the files, I'll do it for you. :P
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Snailer

Hey i like that battle menu alot !
Nice job

blazinhandle

bliiiiizzz you machine! that worked, i messed around with the draw item in the window_battle_command i made (now now i may have trouble sometimes but im not stupid ;)), i was messing around with it before but i was wasted and didnt realize that another script was interferring with it til i read ur post this morning.

thanks snails, it's coming along nicely. i'm planning on using custom gfx all around tho;)

Blizzard

Lol, no problem. xD It's not interference. The thing is that Window_Command acts like Window_Selectable (but with some extra stuff) which acts again like Window_Base (again, with some extra stuff).

That's what superclasses are used for. If you have two different classes, but they have stuff in common, just make a superclass for them and include their common variables/methods. =)
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!