图1是冲突导致出现一个大窗口,图2是正常显示。 由于涉及脚本代码太多,贴出来碍事,就直接上个范例。
class Window_BattleEnemy < Window_Selectable def show select(0) super self.back_opacity = 0 self.opacity = 0 self.cursor_rect =Rect.new(0, 0, 0, 0) setup_remain if @info_viewport self.visible = true open return self end def select(index) index = 0 if $game_troop.exist_members.size <= index super return if self.index < 0 refresh call_method(:select_enemy, index) endend
class Window_BattleEnemy < Window_Selectable def show select(0) super self.back_opacity = 0 self.opacity = 0 self.cursor_rect =Rect.new(0, 0, 0, 0) setup_remain if @info_viewport self.visible = true open return self end def select(index) index = 0 if $game_troop.exist_members.size <= index super return if self.index < 0 refresh call_method(:select_enemy, index) end end
查看全部评分
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-11-1 10:26
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.