# Made by: Sixth
#
# This just adds a new button on the title screen to show an image if selected.
module CntrlImgButton
# :name = Name shown for the button.
# :index = Placement of the new command (2 means it will be the 3rd command!).
Command = {
:name => "Controls", :index => 2,
}
# :img = The image shown when the command is selected.
#

os = The X and Y position for the image shown.
# :z = The Z value for the image shown.
#

pa = The opacity value for the image shown.
Image = {
:img => "controls",

os => [0,0], :z => 2000,

pa => 255,
}
end
class Window_TitleCommand < Window_Command
alias add_img_controls7624 make_command_list
def make_command_list
add_img_controls7624
insert_img_ctrl_button
end
def insert_img_ctrl_button
ccmd = {
:name => CntrlImgButton::Command[:name],
:symbol => :control_img,
:enabled => true,
:ext => nil
}
ix = CntrlImgButton::Command[:index]
@list.insert(ix,ccmd)
end
end
class Scene_Title < Scene_Base
alias add_ctr_img_button8855 create_command_window
def create_command_window
add_ctr_img_button8855
@command_window.set_handler

control_img, method

command_control_img))
end
def command_control_img
img = Sprite.new
img.bitmap = Cache.picture(CntrlImgButton::Image[:img])
img.x = CntrlImgButton::Image[

os][0]
img.y = CntrlImgButton::Image[

os][1]
img.z = CntrlImgButton::Image[:z]
img.opacity = CntrlImgButton::Image[

pa]
until Input.trigger?

C) || Input.trigger?


Input.update
Graphics.update
end
Sound.play_ok
img.bitmap.dispose
img.dispose
@command_window.activate
end
end