赞 | 7 |
VIP | 20 |
好人卡 | 0 |
积分 | 16 |
经验 | 11472 |
最后登录 | 2024-7-10 |
在线时间 | 526 小时 |
Lv3.寻梦者 宛若
- 梦石
- 0
- 星屑
- 1568
- 在线时间
- 526 小时
- 注册时间
- 2007-8-19
- 帖子
- 1493
|
- class Game_Actor < Game_Battler
- def screen_x
- if self.index == 1
- return 640 - 160+80
- else
- return 0+80
- end
- end
- end
- #==============================================================================
- # ■ Window_BattleStatus
- #------------------------------------------------------------------------------
- # バトル画面でパーティメンバーのステータスを表示するウィンドウです。
- #==============================================================================
- class Window_BattleStatus < Window_Base
- #--------------------------------------------------------------------------
- # ● オブジェクト初期化
- #--------------------------------------------------------------------------
- def initialize
- x = (4 - $game_party.actors.size) * 80
- width = $game_party.actors.size * 160
- super(x, 320, width, 160)
- self.back_opacity = 160
- @actor_window = []
- for i in 0...$game_party.actors.size
- @actor_window.push(Window_ActorStatus.new(i, i == 0 ? 0 : 640 - 160))
- end
- @level_up_flags = [false, false, false, false]
- refresh
- end
- #--------------------------------------------------------------------------
- # ● フレーム更新
- #--------------------------------------------------------------------------
- def update
- super
- if self.x != (4 - $game_party.actors.size) * 80
- self.x = (4 - $game_party.actors.size) * 80
- self.width = $game_party.actors.size * 160
- for window in @actor_window
- window.dispose
- end
- @actor_window = []
- for i in 0...$game_party.actors.size
- @actor_window.push(Window_ActorStatus.new(i, i == 0 ? 0 : 640 - 160))
- end
- refresh
- end
- for window in @actor_window
- window.update
- end
- end
- end
- class Window_BattleStatus < Window_Base
- alias wyx_initialize initialize
- def initialize
- wyx_initialize
- self.opacity = 0
- end
- alias wyx_update update
- def update
- wyx_update
- @actor_window[0].x = 0
- @actor_window[1].x = 640 - 160
- #self.x = 0
- #@actor_window[0].update
- #@actor_window[1].update
- #p @actor_window[0].x
- end
- end
- class Scene_Battle
- alias wyx_phase3_setup_command_window phase3_setup_command_window
- def phase3_setup_command_window
- wyx_phase3_setup_command_window
- @actor_command_window.x = @actor_index == 0 ? 0:640-160
- end
- end
复制代码 你不说别人怎么知道你用RTAB呢?
另:上次问题的脚本已包含 |
评分
-
查看全部评分
|