Save-Point
Advanced Command Windows - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html)
+----- Thread: Advanced Command Windows (/thread-6876.html)



Advanced Command Windows - Tsunokiette - 07-07-2006

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


This is a script which allows you to make vertical or horizontal command windows with or without icons as well as have changing text and or text color depending on what's selected. You can also disable the cursor easily.

Keep in mind all of the original command windows in all of the scenes will still work correctly.

Replace Window_Command with this -

Code

You can make Command_Windows as normal, however if you wish to make an advanced command_window, ALWAYS use the following format to make things easier on yourself.

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)


The things that are required must obviously be filled out. The things that are optional you can leave as nil and it will work fine.

To disable the cursor, use -
Code:
@command_window.disable_cursor

What Next Version Will Include -
Icons changing based on selection (this feature will allow some awesome things), moving windows with ease, whatever you guys think I should add.