|
| [ask]menghapus beberapa bagian menu window | |
| | Pengirim | Message |
---|
scorpion1d3x Novice
Posts : 149 Thanked : 1 Engine : Multi-Engine User Skill : Very Beginner Type : Writer
| Subyek: [ask]menghapus beberapa bagian menu window 2012-04-04, 11:30 | |
| Minta bantuannya lagi senio skripter Wa pengen menghapus beberapa window pada menu. yaitu window yang diberi tanda panah. Caranya gimana? Lalu wa pengen menghapus menu yang kosong (lingkaran merah). Caranya gimana? Terus untuk menu evidence (lingkaran kuning), gimana caranya supaya kalau itemnya dipiih maka akan muncul window baru yang berisi gambar dan penjelasan barangnya? EDIT(by F#) sepertinya masalah sudah terselesaikan, dan tread ini saya lock demi keamaan, untuk TS kalau ada yang ingin ditanyakan lagi mengenai masalah ini silahkan tanya di CB atau pm saya/ staff lain nya untuk membuka tread ini kembali. | |
| | | ashm Veteran
Posts : 1131 Thanked : 8 Engine : RMVX Ace Skill : Intermediate Type : Event Designer
Trophies
Awards:
| Subyek: Re: [ask]menghapus beberapa bagian menu window 2012-04-04, 13:40 | |
| Itu scriptnya minta, kayaknya cuman mengubah window ama ngapus index aja. | |
| | | scorpion1d3x Novice
Posts : 149 Thanked : 1 Engine : Multi-Engine User Skill : Very Beginner Type : Writer
| Subyek: Re: [ask]menghapus beberapa bagian menu window 2012-04-04, 14:41 | |
| makanya wa mau nanya, apanya yang dihapus? | |
| | | baszto Advance
Posts : 317 Thanked : 2
| Subyek: Re: [ask]menghapus beberapa bagian menu window 2012-04-04, 15:35 | |
| ini kk silakan dicoba - 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_menu_background create_command_window
end #-------------------------------------------------------------------------- # * Termination Processing #-------------------------------------------------------------------------- def terminate super dispose_menu_background @command_window.dispose end #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update super update_menu_background @command_window.update if @command_window.active update_command_selection end end #-------------------------------------------------------------------------- # * Create Command Window #-------------------------------------------------------------------------- def create_command_window s1 = 'evidence' s2 = 'save' s3 = 'quit' @command_window = Window_Command.new(160, [s1, s2, s3]) #@command_window.index = @menu_index if $game_system.save_disabled # If save is forbidden @command_window.draw_item(1, 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 # taro scene pemanggil evidence disini $scene = Scene_Item.new when 1 $scene = Scene_File.new(true, false, false) when 2 # End Game $scene = Scene_End.new end end end #-------------------------------------------------------------------------- # * Start Actor Selection #-------------------------------------------------------------------------- def start_actor_selection @command_window.active = false @status_window.active = true if $game_party.last_actor_index < @status_window.item_max @status_window.index = $game_party.last_actor_index else @status_window.index = 0 end end #-------------------------------------------------------------------------- # * End Actor Selection #-------------------------------------------------------------------------- def end_actor_selection @command_window.active = true @status_window.active = false @status_window.index = -1 end #-------------------------------------------------------------------------- # * Update Actor Selection #-------------------------------------------------------------------------- def update_actor_selection if Input.trigger?(Input::B) Sound.play_cancel end_actor_selection elsif Input.trigger?(Input::C) $game_party.last_actor_index = @status_window.index Sound.play_decision case @command_window.index when 1 # skill $scene = Scene_Skill.new(@status_window.index) when 2 # equipment $scene = Scene_Equip.new(@status_window.index) when 3 # status $scene = Scene_Status.new(@status_window.index) end end end end
| |
| | | Lukas Senior
Posts : 618 Thanked : 22
| | | | scorpion1d3x Novice
Posts : 149 Thanked : 1 Engine : Multi-Engine User Skill : Very Beginner Type : Writer
| Subyek: Re: [ask]menghapus beberapa bagian menu window 2012-04-04, 16:15 | |
| - wannabeGAMEMAKER wrote:
- taunya cara buat di XP, gak tau sama apa engga.
maaf sbelumnya, cuman coba bantu.
ilangin gold window di scene_menu cari :
@gold_window = Window_Gold.new @gold_window.x = 0 @gold_window.y = 416
@gold_window.dispose
@gold_window.update
delete aja semua
ilangin status window cari : @status_window = Window_MenuStatus.new @status_window.x = 160 @status_window.y = 0 @status_window.dispose @status_window.update
delete smua.
hapus menu kosong lingkaran merah : di scene_menu : s1 = $data_system.words.item s2 = $data_system.words.skill s3 = $data_system.words.equip @command_window = Window_Command.new(80, [s1, s2, s3]) @command_window.index = @menu_index
tadinya kan ada 6 index, ubah jadi 3 + pendekin windownya.
di def update
ada " if @status_window.active update_status return end "
delete aja
def update_status << delete juga sampe "end"
di update_command juga ubah jadi 3 menu aja, yg lain delete.
trus, bukanya biasanya menu paling atas itu buat "item" ya. bratikan otomatis nampiling window_item ?
maap klo salah..
waa.. maap koneksi lemot. udah ada yg jawab. ga apa2. lgian penjelasannya lebih mudah dimengerti. Makasih :d^^b: | |
| | | Sponsored content
| Subyek: Re: [ask]menghapus beberapa bagian menu window | |
| |
| | | | [ask]menghapus beberapa bagian menu window | |
|
Similar topics | |
|
| Permissions in this forum: | Anda tidak dapat menjawab topik
| |
| |
| Latest topics | » [Web Novel] Gloria Infidelis by LightNightKnight 2016-11-17, 21:27
» [Announcement] Forum baru untuk RMID by TheoAllen 2016-08-25, 16:39
» Where I'm Wrong ? by ReydVires 2016-07-24, 16:10
» flakeheartnet's Resources part III by flakeheartnet 2016-07-08, 14:30
» Keira's Art Warehouse by KeiraBlaze 2016-06-28, 19:27
» Theo Core Time System + Bingung by Lockin 2016-06-27, 16:24
» Error Script, Maybe ? by Lockin 2016-06-27, 16:20
» Nusaimoe @ RMID Lounge by Jihad Bagas 2016-06-21, 05:02
» Call Random Battle by Lockin 2016-06-15, 17:04
» Flakeheartnet Resources Part II [come back gift] by flakeheartnet 2016-06-07, 15:51
|
Statistics
|
Members: [ 4947 ]
Topics: [ 8258 ]
Posts: [ 112606 ]
Newest member: [ https://rmid.forumotion.net/u4968 ]
|
|
|
|