Project1
标题:
再次提问!
[打印本页]
作者:
奶茶
时间:
2008-8-21 05:33
标题:
再次提问!
请教高手之后 我把 Window_BattleStatus修改成这样...
#==============================================================================
# ■ Window_BattleStatus
#------------------------------------------------------------------------------
# 显示战斗画面同伴状态的窗口。
#==============================================================================
class Window_BattleStatus < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize
super(0, 320, 640, 160)
self.contents = Bitmap.new(width - 32, height - 32)
@level_up_flags = [false, false, false, false]
refresh
end
#--------------------------------------------------------------------------
# ● 释放
#--------------------------------------------------------------------------
def dispose
super
end
#--------------------------------------------------------------------------
# ● 设置升级标志
# actor_index : 角色索引
#--------------------------------------------------------------------------
def level_up(actor_index)
@level_up_flags[actor_index] = true
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
actor_x = i * 160 + 4
draw_actor_name(actor, actor_x + 160, 0)
draw_actor_hp(actor, actor_x, 32, 120 + 160)
draw_actor_sp(actor, actor_x, 64, 120 + 160)
if @level_up_flags[i]
self.contents.font.color = normal_color
self.contents.draw_text(actor_x, 96, 280, 32, "LEVEL UP!")
else
draw_actor_state(actor, actor_x + 160, 96)
end
end
end
#--------------------------------------------------------------------------
# ● 刷新画面
#--------------------------------------------------------------------------
def update
super
# 主界面的不透明度下降
if $game_temp.battle_main_phase
self.contents_opacity -= 4 if self.contents_opacity > 191
else
self.contents_opacity += 4 if self.contents_opacity < 255
end
end
end
复制代码
其中改了:
draw_actor_name(actor, actor_x + 160, 0)
draw_actor_hp(actor, actor_x, 32, 120 + 160)
draw_actor_sp(actor, actor_x, 64, 120 + 160)
draw_actor_state(actor, actor_x + 160, 96)
这几个!
为什么HP MP 的字符 会在那里的
[LINE]1,#dddddd[/LINE]
此贴于 2008-8-23 5:13:47 被版主darkten提醒,请楼主看到后对本贴做出回应。
作者:
★_茄孓
时间:
2008-8-21 05:35
啥``你不想要吗?那就直接删除掉描绘HP,MP的那两句
作者:
奶茶
时间:
2008-8-21 05:36
不是! 要把HP MP 字符和HP MP 量的距离和原来一样
作者:
殲滅天使·玲
时间:
2008-8-21 06:25
和原来一样
那你为什么要改成
draw_actor_name(actor, actor_x
+ 160
, 0)
draw_actor_hp(actor, actor_x, 32, 120
+ 160
)
draw_actor_sp(actor, actor_x, 64, 120
+ 160
)
draw_actor_state(actor, actor_x
+ 160
, 96)
你去掉 就恢复了
作者:
奶茶
时间:
2008-8-21 22:23
我的意思是把HP MP的字符移过去
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1