赞 | 8 |
VIP | 14 |
好人卡 | 35 |
积分 | 32 |
经验 | 46931 |
最后登录 | 2024-8-10 |
在线时间 | 1442 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 3176
- 在线时间
- 1442 小时
- 注册时间
- 2009-7-27
- 帖子
- 1454
|
本帖最后由 爆焰 于 2012-6-13 15:24 编辑
- class Window_Base
- def draw_battler_graphic(actor, x, y)
- battler=RPG::Cache.battler(actor.battler_name, actor.battler_hue)
- w = battler.width
- h = battler.height
- self.contents.blt(x-w/2, y-h, battler, Rect.new(0, 0, w,h),255)
- end
- end
- class Window_MenuStatus < Window_Selectable
- def refresh
- self.contents.clear
- @item_max = $game_party.actors.size
- for i in 0...$game_party.actors.size
- x = 64
- y = i * 116
- actor = $game_party.actors[i]
- if (i % 2) == 0
- draw_battler_graphic(actor, x - 5, y + 95 - i * 0)
- draw_actor_name(actor, x+50, y)
- draw_actor_class(actor, x + 144+50, y)
- draw_actor_level(actor, x+50, y + 32)
- draw_actor_state(actor, x + 90+40, y + 32)
- draw_actor_exp(actor, x+50, y + 64)
- draw_actor_hp(actor, x + 236, y + 32)
- draw_actor_sp(actor, x + 236, y + 64)
- else
- draw_battler_graphic(actor, x - 5, y + 95 - i * 0)
- draw_actor_name(actor, x+50, y)
- draw_actor_class(actor, x +144+50, y)
- draw_actor_level(actor, x+50, y + 32)
- draw_actor_state(actor, x + 90+40, y + 32)
- draw_actor_exp(actor, x+50, y + 64)
- draw_actor_hp(actor, x + 236, y + 32)
- draw_actor_sp(actor, x + 236, y + 64)
- end
- end
- end
- end
- class Window_Status < Window_Base
- def refresh
- self.contents.clear
- draw_battler_graphic(@actor, 500, 380)
- 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.weapon_id], 320 + 16, 208)
- draw_item_name($data_armors[@actor.armor1_id], 320 + 16, 256)
- draw_item_name($data_armors[@actor.armor2_id], 320 + 16, 304)
- draw_item_name($data_armors[@actor.armor3_id], 320 + 16, 352)
- draw_item_name($data_armors[@actor.armor4_id], 320 + 16, 400)
- end
- end
复制代码 拿去吧。 |
|