One Actor Menu (compact)
One Actor Compact Menu RMVXOriginal Script By Rubymatt over at rmrk.net
Edited By Me (made For My Game Nutopia : The Kings Sword)
can edit and repost
Terms Of Use : Credit Me And Rubymatt Can Be Used For Both Commercial And Non Commercial Projects
Can Also Be Ridistributed So Long As Me And Ruby Matt Are Credited
Spoiler: Screen
Spoiler: Script Code:
#==============================================================================#Compact One Actor Menu# RMVX# Version 1# bystulee1# Edited from rubymatts compact menu script RMRK.NET#==============================================================================#==============================================================================# **Window_MenuStatus#==============================================================================class Window_NewMenuStatus < Window_Selectabledef initialize(x, y) super(0, 0, 64, $game_party.members.size * 36 + 32) self.contents = Bitmap.new(width - 32, height - 32) refresh self.active = false self.index = -1enddef refresh self.contents.clear @item_max = $game_party.members.size for actor in $game_party.members x = 66 y = actor.index * 36 draw_actor_graphic(actor, x - 51, y + 32) endenddef update_cursor if @index < 0 self.cursor_rect.empty else self.cursor_rect.set(-2, @index * 36 - 2, 36, 36) endendend#==============================================================================# **Scene_Menu#==============================================================================class Scene_Menu < Scene_Basedef initialize(menu_index = 0) @menu_index = menu_indexenddef start super create_menu_background create_command_window @status_window = Window_NewMenuStatus.new(160, 0) @status_window.x = 220 if $game_party.members.size == 1 @status_window.y = 52 endenddef terminate super dispose_menu_background @command_window.dispose @status_window.disposeenddef update super update_menu_background @command_window.update @status_window.update if @command_window.active update_command_selection elsif @status_window.active update_actor_selection endenddef create_command_window s1 = Vocab::item s2 = Vocab::skill s3 = Vocab::equip s4 = Vocab::status s5 = Vocab::save s6 = Vocab::game_end @command_window = Window_Command.new(160, ) @command_window.x = 170 @command_window.y = 120 @command_window.height = 176 @command_window.index = @menu_index if $game_party.members.size == 0 @command_window.draw_item(0, false) @command_window.draw_item(1, false) @command_window.draw_item(2, false) @command_window.draw_item(3, false) end if $game_system.save_disabled @command_window.draw_item(4, false) endenddef 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 $scene = Scene_Item.new when 1,2,3 start_actor_selection when 4 $scene = Scene_File.new(true, false, false) when 5 $scene = Scene_End.new end endenddef 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 endenddef end_actor_selection @command_window.active = true @status_window.active = false @status_window.index = -1enddef 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 $scene = Scene_Skill.new(@status_window.index) when 2 $scene = Scene_Equip.new(@status_window.index) when 3 $scene = Scene_Status.new(@status_window.index) end endendend
Spoiler: Rubymatts Original scriptCompact Menu System
Compact Menu System
rmrk.net
Edit*
i realised i used caps again every first letter of each word sorry for that
Added rubymatts original script
本贴来自国际rpgmaker官方论坛作者:stulee1处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/one-actor-menu-compact.141382/
页:
[1]