赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 7282 |
最后登录 | 2015-3-1 |
在线时间 | 135 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 135 小时
- 注册时间
- 2012-6-14
- 帖子
- 43
|
5楼
楼主 |
发表于 2014-3-2 14:02:20
|
只看该作者
十六夜 发表于 2014-3-2 00:13
在哪里找到的 - -能发一个传送门么!!
這都去年的事了...
抱歉不記得怎麼找的...
我這只有留腳本...不過有配合我的画面改了些......
願意拿回去改就直接拿走...或是用這段直接進站內搜也行{:2_276:}- $imported = {} if $imported.nil?
- module YEA
- module BATTLE
- BATTLESTATUS_NAME_FONT_SIZE = 25 #名字大小
- BATTLESTATUS_TEXT_FONT_SIZE = 20 #
- BATTLESTATUS_HPGAUGE_Y_PLUS = 20 #
- BATTLESTATUS_CENTER_FACES = false # true 角色置中?
- end
- end
- class Window_BattleStatus < Window_Selectable
- def initialize
- super(0, 0, window_width, window_height)
- self.openness = 0
- @party = $game_party.battle_members.clone
- end
- def col_max; return $game_party.max_battle_members; end
- def battle_members; return $game_party.battle_members; end
- def actor; return battle_members[@index]; end
- def update
- super
- return if @party == $game_party.battle_members
- @party = $game_party.battle_members.clone
- refresh
- end
- def draw_item(index)
- return if index.nil?
- clear_item(index)
- actor = battle_members[index]
- rect = item_rect(index)
- return if actor.nil?
- draw_actor_face(actor, rect.x+2, rect.y+2, actor.alive?)
- draw_actor_name(actor, rect.x, rect.y, rect.width-8)
- draw_actor_icons(actor, rect.x, line_height*1, rect.width)
- gx = YEA::BATTLE::BATTLESTATUS_HPGAUGE_Y_PLUS
- contents.font.size = YEA::BATTLE::BATTLESTATUS_TEXT_FONT_SIZE
- ##位置
- #draw_actor_hp(actor, rect.x+2, line_height*2高位置+gx, rect.width-4長)
- draw_actor_hp(actor, rect.x+2, line_height*4+gx, rect.width-4)
- dw = rect.width/2-2
-
- dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE
- #draw_actor_tp(actor, rect.x+2, line_height*3, dw)
- draw_actor_tp(actor, rect.x+2, line_height*6, dw)
- dw = rect.width - rect.width/2 - 2
- #draw_actor_mp(actor, rect.x+rect.width/2, line_height*3, dw)
- draw_actor_mp(actor, rect.x+rect.width/2, line_height*6, dw)
- end
- def item_rect(index)
- rect = Rect.new
- rect.width = contents.width / $game_party.max_battle_members
- rect.height = contents.height
- rect.x = index * rect.width
- if YEA::BATTLE::BATTLESTATUS_CENTER_FACES
- rect.x += (contents.width - $game_party.members.size * rect.width) / 2
- end
- rect.y = 0
- return rect
- end
- def draw_face(face_name, face_index, dx, dy, enabled = true)
- bitmap = Cache.face(face_name)
- # ------------------------------------------------------這裏改臉圖
- fx = [(192 - item_rect(0).width + 1) / 2, 0].max
- fy = face_index / 4 * 192+ 2
- fw = [item_rect(0).width - 4, 191].min
- rect = Rect.new(fx, fy, fw, 191)
- rect = Rect.new(face_index % 4 * 192 + fx, fy, fw, 191)
-
- #fx = [(150 - item_rect(0).width + 1) / 2, 0].max
- #fy = face_index / 4 * 150+ 2
- #fw = [item_rect(0).width - 4, 148].min
- #rect = Rect.new(fx, fy, fw, 148)
- #rect = Rect.new(face_index % 4 * 150 + fx, fy, fw, 148)
- # ---------------------------------------------------------
- contents.blt(dx, dy, bitmap, rect, enabled ? 255 : translucent_alpha)
- bitmap.dispose
- end
- def draw_actor_name(actor, dx, dy, dw = 112)
- reset_font_settings
- contents.font.size = YEA::BATTLE::BATTLESTATUS_NAME_FONT_SIZE
- change_color(hp_color(actor))
- draw_text(dx+24, dy, dw-24, line_height, actor.name)
- end
- def draw_current_and_max_values(dx, dy, dw, current, max, color1, color2)
- change_color(color1)
- draw_text(dx, dy, dw, line_height, current.group, 2)
- end
- #def draw_actor_hp(actor, dx, dy, width = 124)
-
- def draw_actor_hp(actor, dx, dy, width = 124)
-
- draw_gauge(dx, dy, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
- change_color(system_color)
- cy = (Font.default_size - contents.font.size) / 2 + 1
-
- # draw_text(dx+2, dy+cy, 30, line_height, Vocab::hp_a)
- draw_text(dx+2, dy+cy, 30, line_height, Vocab::hp_a)
- draw_current_and_max_values(dx, dy+cy, width, actor.hp, actor.mhp,
-
- hp_color(actor), normal_color)
- end
- def draw_actor_mp(actor, dx, dy, width = 124)
- draw_gauge(dx, dy, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)
- change_color(system_color)
- cy = (Font.default_size - contents.font.size) / 2 + 1
- draw_text(dx+2, dy+cy, 30, line_height, Vocab::mp_a)
- draw_current_and_max_values(dx, dy+cy, width, actor.mp, actor.mmp,
- mp_color(actor), normal_color)
- end
- def draw_actor_tp(actor, dx, dy, width = 124)
- draw_gauge(dx, dy, width, actor.tp_rate, tp_gauge_color1, tp_gauge_color2)
- change_color(system_color)
- cy = (Font.default_size - contents.font.size) / 2 + 1
- draw_text(dx+2, dy+cy, 30, line_height, Vocab::tp_a)
- change_color(tp_color(actor))
- draw_text(dx + width - 42, dy+cy, 42, line_height, actor.tp.to_i, 2)
- end
- end
复制代码 |
|