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 # Item
$scene = Scene_Item.new
when 1,2,3 # Skill, equipment, status
start_actor_selection
when 4 # Save
$scene = Scene_File.new(true, false, false)
when 5 # End Game
$scene = Scene_End.new
when 6 # Orologio
end
end
end
ora io vorrei mettere sotto when 6 # Orologio, un sotto menù per metterci altre 2 Opzioni per abilitare o disabilitare l'orologio... dato che ho un richiamo che però devi inserire o true (per abilitarlo) o false (per disabilitarlo)
$scene.show_time_hud(true/false)
non so se sono riuscito a far capire ciò che voglio fare..
Question
Astro86
salve...
vorrei fare una piccola modifica allo Scene_menu di VX..
Io uso il Time System e volevo fare uno spazio nel menu che facesse decidere a chi ci giocherà se attivare o meno la visualizzazione del tempo.
quindi o aggiunto questo
s1 = Vocab::item
s2 = Vocab::skill
s3 = Vocab::equip
s4 = Vocab::status
s5 = Vocab::save
s6 = Vocab::game_end
s7 = "Orologio"
@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s7,])
@command_window.index = @menu_index
if $game_party.members.size == 0 # If number of party members is 0
@command_window.draw_item(0, false) # Disable item
@command_window.draw_item(1, false) # Disable skill
@command_window.draw_item(2, false) # Disable equipment
@command_window.draw_item(3, false) # Disable status
end
if $game_system.save_disabled # If save is forbidden
@command_window.draw_item(4, 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 # Item
$scene = Scene_Item.new
when 1,2,3 # Skill, equipment, status
start_actor_selection
when 4 # Save
$scene = Scene_File.new(true, false, false)
when 5 # End Game
$scene = Scene_End.new
when 6 # Orologio
end
end
end
ora io vorrei mettere sotto when 6 # Orologio, un sotto menù per metterci altre 2 Opzioni per abilitare o disabilitare l'orologio... dato che ho un richiamo che però devi inserire o true (per abilitarlo) o false (per disabilitarlo)
non so se sono riuscito a far capire ciò che voglio fare..
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now