赞 | 40 |
VIP | 0 |
好人卡 | 72 |
积分 | 63 |
经验 | 38967 |
最后登录 | 2024-11-5 |
在线时间 | 1481 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 6260
- 在线时间
- 1481 小时
- 注册时间
- 2015-7-25
- 帖子
- 652
|
嗯...楼主可以试一下,我感觉没问题的说
class Window_Base < Window def draw_actor_class(actor, x, y, width = 112) change_color(normal_color) draw_text(x, y, width, line_height, actor.class.name) if $game_switches[1] contents.clear draw_text(x, y, width, line_height, "111") end if $game_switches[2] contents.clear draw_text(x, y, width, line_height, "222") end if $game_switches[3] contents.clear draw_text(x, y, width, line_height, "333") end end def draw_actor_simple_status(actor, x, y) draw_actor_class(actor, x + 120, y) draw_actor_name(actor, x, y) draw_actor_level(actor, x, y + line_height * 1) draw_actor_icons(actor, x, y + line_height * 2) draw_actor_hp(actor, x + 120, y + line_height * 1) draw_actor_mp(actor, x + 120, y + line_height * 2) end end class Window_MenuStatus < Window_Selectable def draw_item(index) actor = $game_party.members[index] enabled = $game_party.battle_members.include?(actor) rect = item_rect(index) draw_item_background(index) draw_actor_simple_status(actor, rect.x + 108, rect.y + line_height / 2) draw_actor_face(actor, rect.x + 1, rect.y + 1, enabled) end end
class Window_Base < Window
def draw_actor_class(actor, x, y, width = 112)
change_color(normal_color)
draw_text(x, y, width, line_height, actor.class.name)
if $game_switches[1]
contents.clear
draw_text(x, y, width, line_height, "111")
end
if $game_switches[2]
contents.clear
draw_text(x, y, width, line_height, "222")
end
if $game_switches[3]
contents.clear
draw_text(x, y, width, line_height, "333")
end
end
def draw_actor_simple_status(actor, x, y)
draw_actor_class(actor, x + 120, y)
draw_actor_name(actor, x, y)
draw_actor_level(actor, x, y + line_height * 1)
draw_actor_icons(actor, x, y + line_height * 2)
draw_actor_hp(actor, x + 120, y + line_height * 1)
draw_actor_mp(actor, x + 120, y + line_height * 2)
end
end
class Window_MenuStatus < Window_Selectable
def draw_item(index)
actor = $game_party.members[index]
enabled = $game_party.battle_members.include?(actor)
rect = item_rect(index)
draw_item_background(index)
draw_actor_simple_status(actor, rect.x + 108, rect.y + line_height / 2)
draw_actor_face(actor, rect.x + 1, rect.y + 1, enabled)
end
end
打开1号开关职业名为111,2为222,3为333,可以自己改,也可以按照格式自己加,这里只是举个例子的说...
然后就是以写在最下面的开关为准,如果最下面的开关打开了,那么写在上面的开关开着也没用的说... |
评分
-
查看全部评分
|