加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 ninesound 于 2014-1-15 01:47 编辑
这是脚本,可以在战斗中显示回合数的
#============================================================================== # ** Window_MapStatus #============================================================================== class Window_MapStatus< Window_Base #---------------------------------------------------------------------------- # * 初始化 #---------------------------------------------------------------------------- def initialize super(420, 350, 105, 50) refresh end #---------------------------------------------------------------------------- # * 刷新画面 #---------------------------------------------------------------------------- def update super refresh end #---------------------------------------------------------------------------- # * 更新内容 #---------------------------------------------------------------------------- def refresh self.contents.clear self.contents.font.bold = true self.contents.font.color = Color.new(16, 108,143) count ="第" + "#{$game_troop.turn_count}" + "回合" #count = "#{$game_troop.turn_count}" self.contents.font.bold = false # draw_text(0,0,20,30,count) draw_text(0,0,100,30,count) end end
#==============================================================================
# ** Window_MapStatus
#==============================================================================
class Window_MapStatus< Window_Base
#----------------------------------------------------------------------------
# * 初始化
#----------------------------------------------------------------------------
def initialize
super(420, 350, 105, 50)
refresh
end
#----------------------------------------------------------------------------
# * 刷新画面
#----------------------------------------------------------------------------
def update
super
refresh
end
#----------------------------------------------------------------------------
# * 更新内容
#----------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.bold = true
self.contents.font.color = Color.new(16, 108,143)
count ="第" + "#{$game_troop.turn_count}" + "回合"
#count = "#{$game_troop.turn_count}"
self.contents.font.bold = false
# draw_text(0,0,20,30,count)
draw_text(0,0,100,30,count)
end
end
我想在回合数下面插入一张图片
请问要怎么修改呢? |