samanoskue
Member
A friend made me this menu script, but I need to remove the black background. Also I was wondering how I could move the command_window Menu to the bottom screen.
Code:
Â
#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
# This class performs the menu screen processing.
#==============================================================================
class Scene_Menu < Scene_Base
#--------------------------------------------------------------------------
# * Object Initialization
# menu_index : command cursor's initial position
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
end
#--------------------------------------------------------------------------
# * Start processing
#--------------------------------------------------------------------------
def start
super
create_command_window
@gold_window = Window_Gold.new(0, 360)
end
#--------------------------------------------------------------------------
# * Termination Processing
#--------------------------------------------------------------------------
def terminate
super
@command_window.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
@command_window.update
update_command_selection
end
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
s1 = Vocab::item
s2 = "Missions"
s3 = Vocab::save
s4 = "Exit"
@command_window = Window_Command.new(160, [s1, s2, s3, s4])
@command_window.index = @menu_index
if $game_system.save_disabled # If save is forbidden
@command_window.draw_item(2, false) # Disable save
end
end
#--------------------------------------------------------------------------
# * Update Command Selection
#--------------------------------------------------------------------------
def update_command_selection
if Input.trigger?(Input::B)
Sound.play_cancel
$scene = Scene_Map.new
elsif Input.trigger?(Input::C)
if $game_party.members.size == 0 and @command_window.index < 4
Sound.play_buzzer
return
elsif $game_system.save_disabled and @command_window.index == 4
Sound.play_buzzer
return
end
Sound.play_decision
case @command_window.index
when 0 # Item
$scene = Scene_Item.new
when 1 #Missions
#$scene = Omegas_Achievements_Scene.new
when 2 # Save
$scene = Scene_File.new(true, false, false)
when 3 # Exit
$scene = Scene_Map.new
end
end
end
end
Â