私下解决了N*10的问题……包括这个。 楼上的应该用Sprite精灵才可以。窗口太小了。 |
##################### # Window_Status_Map # ##################### class Window_Sthero < Window_Base def initialize super(0, 0, 380, 120) self.contents = Bitmap.new(width - 32, height - 32) self.windowskin = RPG::Cache.windowskin(MOG::STMAPSKIN) self.contents.font.bold = true self.contents.font.size = 20 self.contents.font.name = "Georgia" self.opacity = MOG::STMAPOPA refresh end def refresh self.contents.clear actor = $game_party.actors[0] #self.contents.font.name = "黑体" #self.contents.font.size = 24 #self.contents.draw_text(34, 4, 120, 32, actor.name) #draw_actor_graphic(actor, 13, 45) #self.contents.font.size = 22 #self.contents.font.name = "Georgia" draw_maphp2(actor, 15, - 10) draw_mapsp2(actor, 15, 10) draw_heroface(actor, 15, 40) draw_actor_statemap(actor, 200, 60, 70) draw_actor_levelmap(actor, 200, 33) draw_mexp(actor, 23, 27) end end ####################### 看了一下 应该 改这个部分 在 def refresh self.contents.clear 后面 加上 如下语句 bitmap=Bitmap.new("Graphics/pictures/XXXX") src_rect = Rect.new(0, 0, bitmap.width, bitmap.height) self.contents.blt(x, y, bitmap, src_rect) 其中("Graphics/pictures/XXXX")是你的图片路径 x,y是图片的坐标 试一试吧 |
##################### # Window_Status_Map # ##################### class Window_Sthero < Window_Base def initialize super(0, 0, 380, 120) self.contents = Bitmap.new(width - 32, height - 32) self.windowskin = RPG::Cache.windowskin(MOG::STMAPSKIN) self.contents.font.bold = true self.contents.font.size = 20 self.contents.font.name = "Georgia" self.opacity = MOG::STMAPOPA refresh end def refresh self.contents.clear actor = $game_party.actors[0] #self.contents.font.name = "黑体" #self.contents.font.size = 24 #self.contents.draw_text(34, 4, 120, 32, actor.name) #draw_actor_graphic(actor, 13, 45) #self.contents.font.size = 22 #self.contents.font.name = "Georgia" draw_maphp2(actor, 15, - 10) draw_mapsp2(actor, 15, 10) draw_heroface(actor, 15, 40) draw_actor_statemap(actor, 200, 60, 70) draw_actor_levelmap(actor, 200, 33) draw_mexp(actor, 23, 27) end end ####################### 看了一下 应该 改这个部分 在 def refresh self.contents.clear 后面 加上 如下语句 bitmap=Bitmap.new("Graphics/pictures/XXXX") src_rect = Rect.new(0, 0, bitmap.width, bitmap.height) self.contents.blt(x, y, bitmap, src_rect) 其中("Graphics/pictures/XXXX")是你的图片路径 x,y是图片的坐标 试一试吧 |
图片看不到 |
{:3_50:}没有人吗? |
也没有人会啊????????????? |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-1-10 17:20
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.