赞 | 55 |
VIP | 73 |
好人卡 | 2 |
积分 | 55 |
经验 | 126356 |
最后登录 | 2024-10-8 |
在线时间 | 1565 小时 |
Lv4.逐梦者 猜
- 梦石
- 0
- 星屑
- 5484
- 在线时间
- 1565 小时
- 注册时间
- 2006-9-30
- 帖子
- 2039
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
- #==============================================================================
- # ■ Window_Status
- #------------------------------------------------------------------------------
- # 显示状态画面、完全规格的状态窗口。
- #==============================================================================
- class Window_Status < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化对像
- # actor : 角色
- #--------------------------------------------------------------------------
- def initialize(actor)
- super(0, 0, 640, 480)
- self.contents = Bitmap.new(width - 32, height - 32)
- @actor = actor
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- bitmap=Bitmap.new("Graphics/Pictures/#{@actor.battler_name}")
- src_rect = Rect.new(0, -10, bitmap.width, bitmap.height)
- self.contents.blt(10, 10, bitmap, src_rect)
- draw_actor_name(@actor, 210, 0)
- draw_actor_class(@actor, 210 + 160, 0)
- draw_actor_level(@actor, 210, 32)
- draw_actor_state(@actor, 210, 64)
- draw_actor_hp(@actor, 210, 112, 172)
- draw_actor_sp(@actor, 210, 144, 172)
- draw_actor_parameter(@actor, 210, 192, 0)
- draw_actor_parameter(@actor, 210, 224, 1)
- draw_actor_parameter(@actor, 210, 256, 2)
- draw_actor_parameter(@actor, 210, 304, 3)
- draw_actor_parameter(@actor, 210, 336, 4)
- draw_actor_parameter(@actor, 210, 368, 5)
- draw_actor_parameter(@actor, 210, 400, 6)
- self.contents.font.color = system_color
- self.contents.draw_text(430, 48, 80, 32, "EXP")
- self.contents.draw_text(430, 80, 80, 32, "NEXT")
- self.contents.font.color = normal_color
- self.contents.draw_text(410 + 80, 48, 84, 32, @actor.exp_s, 2)
- self.contents.draw_text(410 + 80, 80, 84, 32, @actor.next_rest_exp_s, 2)
- self.contents.font.color = system_color
- self.contents.draw_text(420, 160, 96, 32, "装备")
- draw_item_name($data_weapons[@actor.weapon_id], 400 + 16, 208)
- draw_item_name($data_armors[@actor.armor1_id], 400 + 16, 256)
- draw_item_name($data_armors[@actor.armor2_id], 400 + 16, 304)
- draw_item_name($data_armors[@actor.armor3_id], 400 + 16, 352)
- draw_item_name($data_armors[@actor.armor4_id], 400 + 16, 400)
- end
- def dummy
- self.contents.font.color = system_color
- self.contents.draw_text(460, 112, 96, 32, $data_system.words.weapon)
- self.contents.draw_text(460, 176, 96, 32, $data_system.words.armor1)
- self.contents.draw_text(460, 240, 96, 32, $data_system.words.armor2)
- self.contents.draw_text(460, 304, 96, 32, $data_system.words.armor3)
- self.contents.draw_text(460, 368, 96, 32, $data_system.words.armor4)
- draw_item_name($data_weapons[@actor.weapon_id], 430 + 24, 144)
- draw_item_name($data_armors[@actor.armor1_id], 430 + 24, 208)
- draw_item_name($data_armors[@actor.armor2_id], 430 + 24, 272)
- draw_item_name($data_armors[@actor.armor3_id], 430 + 24, 336)
- draw_item_name($data_armors[@actor.armor4_id], 430 + 24, 400)
- end
- end
复制代码 高手一看就知道,这是XP的 Window_Status
我只是把显示行走图改成显示战斗图名字的图片
我放了一张640x480 的图,想全部显示
但不知道怎么设置这个图片的位置.默认的位置偏右下了,还是默认原来显示
行走图的位置,这个位置应该怎么设置呢?? |
|