CODE
#==============================================================================
# ** Window_KataStatus
#------------------------------------------------------------------------------
# This window displays the user's kata status on the skill screen.
#==============================================================================
class Window_KataStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
# actor : actor
#--------------------------------------------------------------------------
def initialize(actor)
super(0, 128, 640, 64)
self.index = 0
@item_max = 5
self.contents = Bitmap.new(width - 32, height - 32)
@actor = actor
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.draw_text(0,0,100,32,"Lightning")
self.contents.draw_text(128,0,100,32,"Fire")
self.contents.draw_text(256,0,100,32,"Water")
self.contents.draw_text(384,0,100,32,"Earth")
self.contents.draw_text(512,0,100,32,"Wind")
end
#--------------------------------------------------------------------------
# * Check_Input
#--------------------------------------------------------------------------
def check_input
if Input.trigger?(Input::C)
$window.dispose
if self.index == 0
#skill window for lightning
elsif self.index == 1
#skill window for fire
elsif self.index == 2
#skill window for water
elsif self.index == 3
#skill window for earth
elsif self.index == 4
#skill window for wind
end
end
end
end
# ** Window_KataStatus
#------------------------------------------------------------------------------
# This window displays the user's kata status on the skill screen.
#==============================================================================
class Window_KataStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
# actor : actor
#--------------------------------------------------------------------------
def initialize(actor)
super(0, 128, 640, 64)
self.index = 0
@item_max = 5
self.contents = Bitmap.new(width - 32, height - 32)
@actor = actor
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.draw_text(0,0,100,32,"Lightning")
self.contents.draw_text(128,0,100,32,"Fire")
self.contents.draw_text(256,0,100,32,"Water")
self.contents.draw_text(384,0,100,32,"Earth")
self.contents.draw_text(512,0,100,32,"Wind")
end
#--------------------------------------------------------------------------
# * Check_Input
#--------------------------------------------------------------------------
def check_input
if Input.trigger?(Input::C)
$window.dispose
if self.index == 0
#skill window for lightning
elsif self.index == 1
#skill window for fire
elsif self.index == 2
#skill window for water
elsif self.index == 3
#skill window for earth
elsif self.index == 4
#skill window for wind
end
end
end
end
The problem I am having is that I can't select the other options. It's like the first option is the entire line of lightning,fire,water,earth, and wind and I have four other blank options going down. How can I make it so that I can select the other options horizontally instead of vertically? Also, if you have any idea how I can have the option greyed out until a switch is on, that would be great. Thanks for the help in advance!
