Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- # NAVEST - SIMPLE ONE PERSON MENU v1.5
- # By Navest : http://navestrpg.blogspot.com
- # Contact me : evanandasatria@gmail.com
- # ---||--- at: http://rmvxpace.forumm.biz
- #===============================================================================
- # Perintah:
- # Taruh Script ini dibawah Material namun diatas Main
- #===============================================================================
- # Perkenalan:
- # Script ini sangat cocok untuk Game yang hanya membutuhkan 1
- # Actor saja.
- #===============================================================================
- # Konfigurasi:
- # Kamu dapat Mengganti Window pada Menu ini, dengan cara
- # mengcopy paste window lain ke Folder Graphics/System
- # dengan Nama MenuWindow(defaultnya)
- # dan kamu bisa mengganti nama window tsb.
- # dengan mengganti konfig dibawah.
- #===============================================================================
- # Kompatibilitas:
- # Dengan Moghunter - Wallpaper EX
- #===============================================================================
- # What's new:
- # dapat mengkonfig X dan Y pada command dan gold window
- #===============================================================================
- #===============================================================================
- # Mulai Konfigurasi
- #===============================================================================
- module NAVESTOPM
- WINDOW = "MenuWindow" #nama window pada menu
- CWX = 0 #Command Window X (semakin besar, semakin ke kanan)
- CWY = 20 #Command Window Y (Semakin besar, semakin ke bawah)
- GWX = 0 #Gold Window X
- GWY = 323 #Gold Window Y
- end
- #===============================================================================
- # Akhir Konfigurasi
- #===============================================================================
- class Window_MenuCommand < Window_Command
- def self.init_command_position
- @@last_command_symbol = nil
- end
- def initialize
- super(0, 0)
- select_last
- end
- def window_width
- return 150
- end
- def visible_line_number
- item_max
- end
- def make_command_list
- add_main_commands
- add_original_commands
- add_save_command
- add_game_end_command
- end
- def add_main_commands
- add_command(Vocab::item, :item, main_commands_enabled)
- add_command(Vocab::skill, :skill, main_commands_enabled)
- add_command(Vocab::equip, :equip, main_commands_enabled)
- add_command(Vocab::status, :status, main_commands_enabled)
- end
- def add_original_commands
- end
- def add_save_command
- add_command(Vocab::save, :save, save_enabled)
- end
- def add_game_end_command
- add_command(Vocab::game_end, :game_end)
- end
- def main_commands_enabled
- $game_party.exists
- end
- def formation_enabled
- $game_party.members.size >= 2 && !$game_system.formation_disabled
- end
- def save_enabled
- !$game_system.save_disabled
- end
- def process_ok
- @@last_command_symbol = current_symbol
- super
- end
- def select_last
- select_symbol(@@last_command_symbol)
- end
- end
- include NAVESTOPM
- class Scene_Menu < Scene_MenuBase
- def start
- super
- create_command_window
- create_gold_window
- end
- def create_command_window
- @command_window = Window_MenuCommand.new
- @command_window.set_handler(:item, method(:command_item))
- @command_window.set_handler(:skill, method(:command_skill))
- @command_window.set_handler(:equip, method(:command_equip))
- @command_window.set_handler(:status, method(:command_status))
- @command_window.set_handler(:save, method(:command_save))
- @command_window.set_handler(:game_end, method(:command_game_end))
- @command_window.set_handler(:cancel, method(:return_scene))
- @command_window.y = (NAVESTOPM::CWY)
- @command_window.x = (NAVESTOPM::CWX)
- @command_window.windowskin = Cache.system(NAVESTOPM::WINDOW)
- end
- def create_gold_window
- @gold_window = Window_Gold.new
- @gold_window.x = (NAVESTOPM::GWX)
- @gold_window.y = (NAVESTOPM::GWY)
- @gold_window.windowskin = Cache.system(NAVESTOPM::WINDOW)
- end
- def command_item
- SceneManager.call(Scene_Item)
- end
- def command_equip
- @actor = $game_party.members[0]
- SceneManager.call(Scene_Equip)
- end
- def command_status
- @actor = $game_party.members[0]
- SceneManager.call(Scene_Status)
- end
- def command_save
- SceneManager.call(Scene_Save)
- end
- def command_game_end
- SceneManager.call(Scene_End)
- end
- def command_skill
- @actor = $game_party.members[0]
- SceneManager.call(Scene_Skill)
- end
- end
- class Window_Gold < Window_Base
- def initialize
- super(0, 0, window_width, fitting_height(1))
- refresh
- end
- def window_width
- return 150
- end
- def refresh
- contents.clear
- draw_currency_value(value, currency_unit, 4, 0, contents.width - 8)
- end
- def value
- $game_party.gold
- end
- def currency_unit
- Vocab::currency_unit
- end
- def open
- refresh
- super
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement