赞 | 40 |
VIP | 559 |
好人卡 | 234 |
积分 | 47 |
经验 | 251834 |
最后登录 | 2024-10-11 |
在线时间 | 5240 小时 |
Lv3.寻梦者 (版主) 八宝粥的基叔
- 梦石
- 0
- 星屑
- 4684
- 在线时间
- 5240 小时
- 注册时间
- 2009-4-29
- 帖子
- 14318
|
找到这个类,第15行添加一句就可以了!- #==============================================================================
- # ** Window_MenuStatus
- #------------------------------------------------------------------------------
- # This window displays party member status on the menu screen.
- #==============================================================================
- class Window_MenuStatus < Window_Selectable
- #--------------------------------------------------------------------------
- # * Object Initialization
- # x : window X coordinate
- # y : window Y coordinate
- #--------------------------------------------------------------------------
- def initialize(x, y)
- super(x, y, 444, 416)#(x, y, 384, 416)
- @column_max = 4 # 加这里的一行即可
- refresh
- self.active = false
- self.index = -1
- end
- #--------------------------------------------------------------------------
- # * Refresh
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- @item_max = $game_party.members.size
- for actor in $game_party.members
- x = actor.index * 102 + 8
- draw_actor_face(actor, x, 2, 92)
- draw_actor_name(actor, x, 2)
- draw_actor_level(actor, x, 98)
- draw_actor_class(actor, x, 124)
- draw_actor_hp(actor, x, 152)
- draw_actor_mp(actor, x,180)
- draw_actor_state(actor, x, 206)
- end
- end
- #--------------------------------------------------------------------------
- # * Update cursor
- #--------------------------------------------------------------------------
- def update_cursor
- if [url=home.php?mod=space&uid=370741]@Index[/url] < 0 # No cursor
- self.cursor_rect.empty
- elsif @index < @item_max # Normal
- self.cursor_rect.set(@index * 102 + 2, 0, 96, contents.height)
- elsif @index >= 100 # Self
- self.cursor_rect.set((@index - 100) * 102 + 2, 0, 96, contents.height)
- else # All
- self.cursor_rect.set(2, 0, 96, contents.height)
- end
- end
- end
复制代码 |
评分
-
查看全部评分
|