赞 | 6 |
VIP | 20 |
好人卡 | 126 |
积分 | 27 |
经验 | 33282 |
最后登录 | 2024-11-14 |
在线时间 | 1600 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 2728
- 在线时间
- 1600 小时
- 注册时间
- 2010-10-22
- 帖子
- 1058
|
#==============================================================================
# ■ 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
draw_actor_graphic(@actor, 40, 112)
draw_actor_name(@actor, 4, 0)
draw_actor_class(@actor, 4 + 144, 0)
draw_actor_level(@actor, 96, 32)
draw_actor_state(@actor, 96, 64)
draw_actor_hp(@actor, 96, 112, 172)
draw_actor_sp(@actor, 96, 144, 172)
draw_actor_parameter(@actor, 96, 192, 0)
draw_actor_parameter(@actor, 96, 224, 1)
draw_actor_parameter(@actor, 96, 256, 2)
draw_actor_parameter(@actor, 96, 304, 3)
draw_actor_parameter(@actor, 96, 336, 4)
draw_actor_parameter(@actor, 96, 368, 5)
draw_actor_parameter(@actor, 96, 400, 6)
self.contents.font.color = system_color
self.contents.draw_text(320, 48, 80, 32, "EXP")
self.contents.draw_text(320, 80, 80, 32, "NEXT")
self.contents.font.color = normal_color
self.contents.draw_text(320 + 80, 48, 84, 32, @actor.exp_s, 2)
self.contents.draw_text(320 + 80, 80, 84, 32, @actor.next_rest_exp_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(320, 160, 96, 32, "装备")
draw_item_name($data_weapons[@actor.hand1_id], 320 + 16, 208)
draw_item_name($data_armors[@actor.hand2_id], 320 + 16, 229)
draw_item_name($data_armors[@actor.upbody_id], 320 + 16, 250)
draw_item_name($data_armors[@actor.downbody_id], 320 + 16, 271)
draw_item_name($data_armors[@actor.head_id], 320 + 16, 292)
draw_item_name($data_armors[@actor.shoe_id], 320 + 16, 313)
draw_item_name($data_armors[@actor.jewel1_id], 320 + 16, 334)
draw_item_name($data_armors[@actor.jewel2_id], 320 + 16, 355)
draw_item_name($data_armors[@actor.jewel3_id], 320 + 16, 376)
draw_item_name($data_armors[@actor.name_id], 320 + 16, 397)
end
def dummy
self.contents.font.color = system_color
self.contents.draw_text(320, 112, 96, 32, $data_system.words.hand)
self.contents.draw_text(320, 140, 96, 32, $data_system.words.hand2)
self.contents.draw_text(320, 168, 96, 32, $data_system.words.upbody)
self.contents.draw_text(320, 196, 96, 32, $data_system.words.downbody)
self.contents.draw_text(320, 224, 96, 32, $data_system.words.head)
self.contents.draw_text(320, 252, 96, 32, $data_system.words.shoe)
self.contents.draw_text(320, 280, 96, 32, $data_system.words.jewel1)
self.contents.draw_text(320, 308, 96, 32, $data_system.words.jewel2)
self.contents.draw_text(320, 336, 96, 32, $data_system.words.jewel3)
self.contents.draw_text(320, 364, 96, 32, $data_system.words.name)
draw_item_name($data_weapons[@actor.hand1_id], 320 + 24, 144)
draw_item_name($data_armors[@actor.hand2_id], 320 + 24, 172)
draw_item_name($data_armors[@actor.upbody_id], 320 + 24, 200)
draw_item_name($data_armors[@actor.downbody_id], 320 + 24, 228)
draw_item_name($data_armors[@actor.head_id], 320 + 24, 256)
draw_item_name($data_armors[@actor.shoe_id], 320 + 24, 284)
draw_item_name($data_armors[@actor.jewel1_id], 320 + 24, 312)
draw_item_name($data_armors[@actor.jewel2_id], 320 + 24, 340)
draw_item_name($data_armors[@actor.jewel3_id], 320 + 24, 368)
draw_item_name($data_armors[@actor.name_id], 320 + 24, 396)
end
end |
|