Project1
标题:
如何在菜单和战斗中显示头像?
[打印本页]
作者:
wangzhu1996
时间:
2008-11-10 17:40
提示:
作者被禁止或删除 内容自动屏蔽
作者:
莳衍灵儿
时间:
2008-11-10 17:47
菜单显示头像~
http://rpg.blue/web/shownews.asp?id=124
http://rpg.blue/web/shownews.asp?id=125
战斗显示头像~
http://rpg.blue/web/htm/news131.htm
Window_BattleStatus 的 def refresh 名下加入
head_name("图片名"x,y)
main前插入一个全局显示图片脚本定义一下
def head_name(head_name,x,y)
@bitmap = bitmap.new("Grapics/Pictures/"+head_name)
@rect = Rect.new(0,0,@bimap.width,@bitmap.height)
self.contents.blt(x, y, @bitmap, @rect)
end
后面那个准确度不确定~好吧~最近问题有点难~ [LINE]1,#dddddd[/LINE]
系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~
作者:
clap_pl
时间:
2008-11-10 17:50
在相应的窗口的类种的 refresh 里加入一句
def refresh
self.contents.clear
testname = @actor.battler_name+"_h.png"
bitmap=Bitmap.new("Graphics/battlers/#{testname}")
src_rect = Rect.new(0, 0, bitmap.width, bitmap.height) #——可自己调整大小
self.contents.blt(0, y, bitmap, src_rect)
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1