Croix Bartel Newbie
Posts : 6 Thanked : 0 Engine : Multi-Engine User Skill : Skilled Type : Event Designer
| Subyek: [ASK][SOLVED]Custom menu script help 2014-01-03, 09:02 | |
| Script ini bikin menunya cuma ada 3 option dan ada dibawah. Script asli: - Spoiler:
- Code:
-
# ----------------------------------------------------------------------- # Compact Menu by HungrySnake # as requested by Croix Bartel # # Instructions are stated below # -----------------------------------------------------------------------
module CMENU module CONFIG # ----------------- # Start Config # ----------------- # Commands for the menu MENU_COMMANDS = ["Item","Load","Exit"] # ----------------- # End Config # ----------------- end end
class Scene_Menu < Scene_Base def start super create_menu_background create_base_window create_command_window end def create_base_window actor = $game_party.members[0] @window_base = Window_Base.new(0,Graphics.height-128,Graphics.width,128) @window_base.draw_actor_face(actor,Graphics.width-150,0) @window_base.draw_actor_name(actor,Graphics.width-250,0) end def create_command_window @command_window = Window_Command.new(120,CMENU::CONFIG::MENU_COMMANDS) @command_window.y = Graphics.height-130 @command_window.opacity = 0 @command_window.refresh @command_window.index = 0 end def update_command_window @command_window.update if Input.trigger?(Input::C) Sound.play_decision case @command_window.index when 0 $scene = Scene_Item.new when 1 $scene = Scene_File.new(false, false, true) when 2 $scene = Scene_End.new end elsif Input.trigger?(Input::B) Sound.play_cancel $scene = Scene_Map.new end end def update super update_menu_background update_command_window end def terminate super dispose_menu_background @window_base.dispose @command_window.dispose end end
pengen ane ubah jadi ada di sebelah kiri, tapi graphic muka actor sama namanya jadi ilang, ni editan ane: - Spoiler:
- Code:
-
# ----------------------------------------------------------------------- # Compact Menu by HungrySnake # as requested by Croix Bartel # # Instructions are stated below # -----------------------------------------------------------------------
module CMENU module CONFIG # ----------------- # Start Config # ----------------- # Commands for the menu MENU_COMMANDS = ["Item","Load","Exit"] # ----------------- # End Config # ----------------- end end
class Scene_Menu < Scene_Base def start super create_menu_background create_base_window create_command_window end def create_base_window actor = $game_party.members[0] @window_base = Window_Base.new(0,Graphics.height-416,128,Graphics.width-128) @window_base.draw_actor_face(actor,Graphics.width-150,0) @window_base.draw_actor_name(actor,Graphics.width-250,0) end def create_command_window @command_window = Window_Command.new(120,CMENU::CONFIG::MENU_COMMANDS) @command_window.y = Graphics.height-418 @command_window.opacity = 0 @command_window.refresh @command_window.index = 0 end def update_command_window @command_window.update if Input.trigger?(Input::C) Sound.play_decision case @command_window.index when 0 $scene = Scene_Item.new when 1 $scene = Scene_File.new(false, false, true) when 2 $scene = Scene_End.new end elsif Input.trigger?(Input::B) Sound.play_cancel $scene = Scene_Map.new end end def update super update_menu_background update_command_window end def terminate super dispose_menu_background @window_base.dispose @command_window.dispose end end
Terakhir diubah oleh Croix Bartel tanggal 2014-01-03, 09:48, total 1 kali diubah | |
|
SaltLover Newbie
Posts : 47 Thanked : 0 Engine : RMVX Skill : Very Beginner Type : Artist
| Subyek: Re: [ASK][SOLVED]Custom menu script help 2014-01-03, 09:25 | |
| Try This..
http://pastebin.com/29qBcBwa | |
|
Croix Bartel Newbie
Posts : 6 Thanked : 0 Engine : Multi-Engine User Skill : Skilled Type : Event Designer
| Subyek: Re: [ASK][SOLVED]Custom menu script help 2014-01-03, 09:37 | |
| Woooh, yang diganti actor face toh bukan window-nya.. Sip, works like a charm, cuma kurang kiri dikit actor face-nya, solved sih, x nya diganti jadi -8 Thanks om | |
|
Sponsored content
| Subyek: Re: [ASK][SOLVED]Custom menu script help | |
| |
|