赞 | 3 |
VIP | 0 |
好人卡 | 39 |
积分 | 1 |
经验 | 101436 |
最后登录 | 2017-9-1 |
在线时间 | 2276 小时 |
Lv1.梦旅人 路人党员
- 梦石
- 0
- 星屑
- 52
- 在线时间
- 2276 小时
- 注册时间
- 2010-12-30
- 帖子
- 3225
|
本帖最后由 英顺的马甲 于 2011-4-13 18:20 编辑
是不是这样?- class Game_Party
- def add_actor(actor_id)
- actor = $game_actors[actor_id]
- if @actors.size < 4 and not @actors.include?(actor)
- @actors.push(actor)
- $game_player.refresh
- else not @actors.include?(actor)
- a = []
- @actors.each{|s|a.push(s.name)}
- cmd_win = Window_Command.new(160,a)
- cmd_win.x = 320 - cmd_win.width/2
- cmd_win.y = 240 - cmd_win.height/2
- hlp_win = Window_Base.new(cmd_win.x,cmd_win.y-64,160,64)
- hlp_win.contents = Bitmap.new(128,32)
- hlp_win.contents.draw_text(0,0,128,32,"要将谁替换掉?")
- loop do
- Graphics.update
- Input.update
- cmd_win.update
- if Input.trigger?(Input::C)
- $game_system.se_play($data_system.decision_se)
- @actors.delete(@actors[cmd_win.index])
- @actors.push(actor)
- $game_player.refresh
- break
- end
- end
- cmd_win.dispose
- hlp_win.dispose
- end
- end
- end
复制代码 |
|