加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
如图,想去掉对话框的角色头像窗口的边框
试着加了以下的代码但没用T___________T
@name_win.back_opacity =0 @name_win.opacity = 0
@name_win.back_opacity =0
@name_win.opacity = 0
请问要怎么改呢?谢谢!
原代码:
#-------------------------------------------------------------------------- # ○ 设置角色名字窗口 #-------------------------------------------------------------------------- def set_namewindow # $mes_name为空时不显示角色名字窗口 if $mes_name == nil or $mes_name == "" return else # 设定变量 mes_name = $mes_name skin = FUKI::NAME_SKIN_NAME != "" ? FUKI::NAME_SKIN_NAME : $game_system.windowskin_name #判断名称是否有对应的图片"Graphics/heads/" + if $game_temp.namebmp[mes_name] == nil then sFile = "Graphics/heads/" + mes_name + ".png" else sFile = "Graphics/heads/" + $game_temp.namebmp[mes_name] + ".png" end if FileTest.exist?(sFile) == true then @face_pic_txt = 1 #名字窗口使用头像 # 生成头像 bmp = Bitmap.new(sFile) @pic_width = bmp.width @pic_height = bmp.height if self.x >= @pic_width + 5 # 默认头像显示在对话框左边 name_x = self.x-@pic_width-5 else # 对话框左边放不下时头像显示在右边 name_x = self.x + self.width end name_y = self.y+self.height/2 - (@pic_height + 5)/2 # 生成角色头像窗口 @name_win = Window_Base.new(name_x, name_y, @pic_width + 5, @pic_height + 5) @name_win.windowskin = RPG::Cache.windowskin(skin) @name_win.z = self.z + 1 @name_contents = Sprite.new @name_contents.x = name_x + 2 @name_contents.y = name_y + 2 @name_contents.bitmap = bmp
#--------------------------------------------------------------------------
# ○ 设置角色名字窗口
#--------------------------------------------------------------------------
def set_namewindow
# $mes_name为空时不显示角色名字窗口
if $mes_name == nil or $mes_name == ""
return
else
# 设定变量
mes_name = $mes_name
skin = FUKI::NAME_SKIN_NAME != "" ? FUKI::NAME_SKIN_NAME : $game_system.windowskin_name
#判断名称是否有对应的图片"Graphics/heads/" +
if $game_temp.namebmp[mes_name] == nil then
sFile = "Graphics/heads/" + mes_name + ".png"
else
sFile = "Graphics/heads/" + $game_temp.namebmp[mes_name] + ".png"
end
if FileTest.exist?(sFile) == true then
@face_pic_txt = 1 #名字窗口使用头像
# 生成头像
bmp = Bitmap.new(sFile)
@pic_width = bmp.width
@pic_height = bmp.height
if self.x >= @pic_width + 5
# 默认头像显示在对话框左边
name_x = self.x-@pic_width-5
else
# 对话框左边放不下时头像显示在右边
name_x = self.x + self.width
end
name_y = self.y+self.height/2 - (@pic_height + 5)/2
# 生成角色头像窗口
@name_win = Window_Base.new(name_x, name_y, @pic_width + 5, @pic_height + 5)
@name_win.windowskin = RPG::Cache.windowskin(skin)
@name_win.z = self.z + 1
@name_contents = Sprite.new
@name_contents.x = name_x + 2
@name_contents.y = name_y + 2
@name_contents.bitmap = bmp
|