RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[Resolved] Spacing out Commands

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 88
Menu & Battle System Guru
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!

« Last Edit: February 25, 2007, 07:56:45 AM by blazinhandle »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Most Mature Member2011 Favourite Staff Member2011 Best Use of Avatar and Signature Space2011 Best Veteran2011 Best RPG Maker User (Scripting)2010 Best RPG Maker User (Scripting)2010 Most Mature Member
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?

***
Rep:
Level 88
Menu & Battle System Guru
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.

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
Wow, the battle menu looks great. ;8

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

Quote
self.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:

Code: [Select]
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:

Code: [Select]
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!

*****
Ancient Mummy
Rep:
Level 90
Hey i like that battle menu alot !
Nice job

***
Rep:
Level 88
Menu & Battle System Guru
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;)

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
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!