赞 | 13 |
VIP | 9 |
好人卡 | 3 |
积分 | 51 |
经验 | 27577 |
最后登录 | 2024-10-30 |
在线时间 | 1004 小时 |
Lv4.逐梦者 【欧皇】
- 梦石
- 3
- 星屑
- 2066
- 在线时间
- 1004 小时
- 注册时间
- 2013-8-19
- 帖子
- 3486
|
5楼
楼主 |
发表于 2014-10-25 23:17:51
|
只看该作者
汪汪 发表于 2014-10-25 21:38
只是胡乱更改,让它使用默认值,应该有很多多余的部分。
对了
你第一个脚本有一个BUG
我帮你改好了
……
#============================================================================== # ■ Window_MenuStatus #------------------------------------------------------------------------------ # 显示菜单画面和同伴状态的窗口。 #============================================================================== class Window_MenuStatus < Window_Selectable #-------------------------------------------------------------------------- # ● 初始化目标 #-------------------------------------------------------------------------- def initialize super(0, 0, 480, 480) self.contents = Bitmap.new(width - 32, height - 32) refresh self.active = false self.index = -1 end #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- def refresh @actor = $game_party.actors[0] self.contents.clear draw_actor_graphic(@actor, 40, 90) draw_actor_name(@actor, 4, 0) draw_actor_class(@actor, 4 + 144, 0) draw_actor_level(@actor, 128, 32) draw_actor_state(@actor, 128, 64) draw_actor_hp(@actor, 32, 112, 172) draw_actor_sp(@actor, 32, 144, 172) draw_actor_parameter(@actor, 32, 192, 0) draw_actor_parameter(@actor, 32, 224, 1) draw_actor_parameter(@actor, 32, 256, 2) draw_actor_parameter(@actor, 32, 304, 3) draw_actor_parameter(@actor, 32, 336, 4) draw_actor_parameter(@actor, 32, 368, 5) draw_actor_parameter(@actor, 32, 400, 6) self.contents.font.color = system_color self.contents.draw_text(250, 48, 80, 32, "EXP") self.contents.draw_text(250, 80, 80, 32, "NEXT") self.contents.font.color = normal_color self.contents.draw_text(250 + 80, 48, 84, 32, @actor.exp_s, 2) self.contents.draw_text(250 + 80, 80, 84, 32, @actor.next_rest_exp_s, 2) self.contents.font.color = system_color self.contents.draw_text(250, 160, 48, 32, "装备") draw_item_name($data_weapons[@actor.weapon_id], 250 + 16, 208) draw_item_name($data_armors[@actor.armor1_id],250 + 16, 256) draw_item_name($data_armors[@actor.armor2_id], 250 + 16, 304) draw_item_name($data_armors[@actor.armor3_id], 250 + 16, 352) draw_item_name($data_armors[@actor.armor4_id], 250 + 16, 400) end #-------------------------------------------------------------------------- # ● 刷新光标矩形 #-------------------------------------------------------------------------- def update_cursor_rect if @index < 0 self.cursor_rect.empty else self.cursor_rect.set(0, @index * 116, self.width - 32, 96) end end end
#==============================================================================
# ■ Window_MenuStatus
#------------------------------------------------------------------------------
# 显示菜单画面和同伴状态的窗口。
#==============================================================================
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# ● 初始化目标
#--------------------------------------------------------------------------
def initialize
super(0, 0, 480, 480)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
self.active = false
self.index = -1
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
@actor = $game_party.actors[0]
self.contents.clear
draw_actor_graphic(@actor, 40, 90)
draw_actor_name(@actor, 4, 0)
draw_actor_class(@actor, 4 + 144, 0)
draw_actor_level(@actor, 128, 32)
draw_actor_state(@actor, 128, 64)
draw_actor_hp(@actor, 32, 112, 172)
draw_actor_sp(@actor, 32, 144, 172)
draw_actor_parameter(@actor, 32, 192, 0)
draw_actor_parameter(@actor, 32, 224, 1)
draw_actor_parameter(@actor, 32, 256, 2)
draw_actor_parameter(@actor, 32, 304, 3)
draw_actor_parameter(@actor, 32, 336, 4)
draw_actor_parameter(@actor, 32, 368, 5)
draw_actor_parameter(@actor, 32, 400, 6)
self.contents.font.color = system_color
self.contents.draw_text(250, 48, 80, 32, "EXP")
self.contents.draw_text(250, 80, 80, 32, "NEXT")
self.contents.font.color = normal_color
self.contents.draw_text(250 + 80, 48, 84, 32, @actor.exp_s, 2)
self.contents.draw_text(250 + 80, 80, 84, 32, @actor.next_rest_exp_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(250, 160, 48, 32, "装备")
draw_item_name($data_weapons[@actor.weapon_id], 250 + 16, 208)
draw_item_name($data_armors[@actor.armor1_id],250 + 16, 256)
draw_item_name($data_armors[@actor.armor2_id], 250 + 16, 304)
draw_item_name($data_armors[@actor.armor3_id], 250 + 16, 352)
draw_item_name($data_armors[@actor.armor4_id], 250 + 16, 400)
end
#--------------------------------------------------------------------------
# ● 刷新光标矩形
#--------------------------------------------------------------------------
def update_cursor_rect
if @index < 0
self.cursor_rect.empty
else
self.cursor_rect.set(0, @index * 116, self.width - 32, 96)
end
end
end
|
|