Sideways Command Windows
This is a request for Sideways Command Windows.
Sideways Command Windows
RMXP or RMVX:
select either the VX or XP topic icon. No other topic icons are acceptable here.
Detailed Description:
I need a Command window in my CMS, that instead of up and down, the cursor moves from left to right. I will also use icons in the window, using a script below
Screen shots:
Not a picture, but...
[```````````````````````````````````````````````````````````````````````````````````````````]
| Items Skills Stats Save End Game |
L___________________________________________________________________________________________|
Other Scripts I am using (in order):
CMS, UMS, SDK, CBS, and this:
Thanks.
-Lonelyelf
This is a request for Sideways Command Windows.
Sideways Command Windows
RMXP or RMVX:
select either the VX or XP topic icon. No other topic icons are acceptable here.
Detailed Description:
I need a Command window in my CMS, that instead of up and down, the cursor moves from left to right. I will also use icons in the window, using a script below
Screen shots:
Not a picture, but...
[```````````````````````````````````````````````````````````````````````````````````````````]
| Items Skills Stats Save End Game |
L___________________________________________________________________________________________|
Other Scripts I am using (in order):
CMS, UMS, SDK, CBS, and this:
Code:
#----------------------------------------------------------------------------
class Window_Command_WcW < Window_Selectable
#--------------------------------------------------------------------------
# * Initialize
#--------------------------------------------------------------------------
def initialize(x, y, width, commands)
# Calls original initialize method
super(x, y, width, commands.size * 32 + 32)
# Sets maximum items and commands variables
@item_max = commands.size
@commands = commands
# Initializes the @disabled array, which is used for drawing disabled items
@disabled = []; @commands.size.times { @disabled.push false }
# Creates a new bitmap for the contents
self.contents = Bitmap.new(width-32, commands.size * 32)
# Sets the index to 0
self.index = 0
# Draws contents
refresh
end
#--------------------------------------------------------------------------
# * Refreshes Contents
#--------------------------------------------------------------------------
def refresh
# Clears bitmap
self.contents.clear
# For each command in the @commands array....
@commands.size.times {|i|
# Get the icon from RPG::Cache
self.contents.blt(4, 32 * i + 4, RPG::Cache.icon(@commands[i][0]),
Rect.new(0, 0, 24, 24))
# If the disabled array has this down for this disabled, draw it as
# disabled, if not, draw it normal
self.contents.font.color = @disabled[i] ? disabled_color : normal_color
# Draw the command
self.contents.draw_text(34, 32 * i, self.contents.width - 34, 32,
@commands[i][1], 0)
}
end
#--------------------------------------------------------------------------
# * Disable Items
#--------------------------------------------------------------------------
def disable_items(*indexes)
# For each index in the given argument array,
indexes.each {|index|
# Set that index to disabled in the @disabled array
@disabled[index] = true
}
# Re-draw contents
refresh
end
#--------------------------------------------------------------------------
# * Enable Items
#--------------------------------------------------------------------------
def enable_items(*indexes)
# For each index in the given argument array,
indexes.each {|index|
# Set that index to enabled in the @disabled array
@disable[index] = false
}
# Red-draw contents
refresh
end
end
Thanks.
-Lonelyelf