I want to create a command window, with at least 8 choices represented by pictures 544*90. So you guess it should be scrollable.
Pictures must be one after the other, no space inbetween whatsoever. Would be perfect with the "currently overing this choice" glow animation in the original window command style over the whole picture selected.
Here's my 2 scripts related if someone can help or something.
Spoiler
Code:
#==============================================================================# ** Window_ChooseFloor#==============================================================================class Window_ChooseFloor < Window_Command #-------------------------------------------------------------------------- # * Initialize Command Selection Position (Class Method) #-------------------------------------------------------------------------- @@last_command_symbol = nil #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0) select_last end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 544 end #-------------------------------------------------------------------------- # * Get Number of Lines to Show #-------------------------------------------------------------------------- def visible_line_number item_max end #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- def make_command_list add_main_commands end #-------------------------------------------------------------------------- # * Add Main Commands to List #-------------------------------------------------------------------------- def add_main_commands add_command("Floor01", :floor01, floor01_enabled) add_command("Floor02", :floor02, floor02_enabled) add_command("Floor03", :floor03, floor03_enabled) add_command("Floor04", :floor04, floor04_enabled) add_command("Floor05", :floor05, floor05_enabled) add_command("Floor06", :floor06, floor06_enabled) add_command("Floor07", :floor07, floor07_enabled) add_command("Floor08", :floor08, floor08_enabled) end #-------------------------------------------------------------------------- # * Get Activation State of floors #-------------------------------------------------------------------------- def floor01_enabled #if end def floor02_enabled #if end def floor03_enabled #if end def floor04_enabled #if end def floor05_enabled #if end def floor06_enabled #if end def floor07_enabled #if end def floor08_enabled #if end #-------------------------------------------------------------------------- # * Processing When OK Button Is Pressed #-------------------------------------------------------------------------- def process_ok @@last_command_symbol = current_symbol super end #-------------------------------------------------------------------------- # * Restore Previous Selection Position #-------------------------------------------------------------------------- def select_last select_symbol(@@last_command_symbol) end #--------------------------------------------------------------------------end Spoiler
Code:
#==============================================================================# ** Scene_Choosefloor#==============================================================================class Scene_ChooseFloor < Scene_Base #-------------------------------------------------------------------------- # * Start Processing #-------------------------------------------------------------------------- def start super #create_command_window @choipeaumagique = Window_ChooseFloor.new end #-------------------------------------------------------------------------- # * Create Command Window #-------------------------------------------------------------------------- def create_command_window @command_window = Window_MenuCommand.new @command_window.set_handler(:floor01, method(:command_floor01)) @command_window.set_handler(:floor02, method(:command_floor02)) @command_window.set_handler(:floor03, method(:command_floor03)) @command_window.set_handler(:floor04, method(:command_floor04)) @command_window.set_handler(:floor05, method(:command_floor05)) @command_window.set_handler(:floor06, method(:command_floor06)) @command_window.set_handler(:floor07, method(:command_floor07)) @command_window.set_handler(:floor08, method(:command_floor08)) end #-------------------------------------------------------------------------- # * [floor01] Command #-------------------------------------------------------------------------- def command_floor01 SceneManager.call(Scene_floor01) end #-------------------------------------------------------------------------- # * [floor02] Command #-------------------------------------------------------------------------- def command_floor02 SceneManager.call(Scene_floor02) end #-------------------------------------------------------------------------- # * [floor03] Command #-------------------------------------------------------------------------- def command_floor03 SceneManager.call(Scene_floor03) end #-------------------------------------------------------------------------- # * [floor04] Command #-------------------------------------------------------------------------- def command_floor04 SceneManager.call(Scene_floor04) end #-------------------------------------------------------------------------- # * [floor05] Command #-------------------------------------------------------------------------- def command_floor05 SceneManager.call(Scene_floor05) end #-------------------------------------------------------------------------- # * [floor06] Command #-------------------------------------------------------------------------- def command_floor06 SceneManager.call(Scene_floor06) end #-------------------------------------------------------------------------- # * [floor07] Command #-------------------------------------------------------------------------- def command_floor07 SceneManager.call(Scene_floor07) end #-------------------------------------------------------------------------- # * [floor08] Command #-------------------------------------------------------------------------- def command_floor08 SceneManager.call(Scene_floor08) end #--------------------------------------------------------------------------end