| 赞 | 35 |
| VIP | |
| 好人卡 | |
| 积分 | 64 |
| 经验 | |
| 最后登录 | 2025-12-12 |
| 在线时间 | 1473 小时 |
- 梦石
- 0
- 星屑
- 6375
- 在线时间
- 1473 小时
- 注册时间
- 2015-7-25
- 回帖
- 609
 
|
发表于 2017-6-20 23:16:25
|
显示全部楼层
像这样吗?
- class Scene_FF < Scene_Base
- def start
- super
- c_ff
- end
- def c_ff
- @bl = W_FF.new
- @bl.set_handler(:cancel, method(:return_scene))
- end
- end
- class W_FF < Window_Selectable
- def initialize
- super(0,0,544,416)
- refresh
- activate
- end
- def refresh
- contents.clear
- if $game_switches[202]==true
- contents.font.color = Color.new(0, 255, 0, 255)
- draw_text(100, 0, 128, 32,"剑越卄" )
- draw_face("主角", 0, 0, 0)
- case $game_variables[52]
- when 0
- draw_text(188, 0, 126, 32,"一面之缘" )
- when 10
- draw_text(188, 0, 126, 32,"颇有好感" )
- when 20
- draw_text(188, 0, 126, 32,"惺惺相惜" )
- when 30
- draw_text(188, 0, 126, 32,"爱慕倾心" )
- when 40
- draw_text(188, 0, 126, 32,"生死与共" )
- end
- end
- if $game_switches[203]==true
- contents.font.color = Color.new(0, 255, 0, 255)
- draw_text(0, 32, 128, 32,"幻羽" )
- case $game_variables[53]
- when -10
- draw_text(88, 32, 126, 32,"不胜厌恶" )
- when 0
- draw_text(88, 32, 126, 32,"一面之缘" )
- when 10
- draw_text(88, 32, 126, 32,"颇有好感" )
- when 20
- draw_text(88, 32, 126, 32,"惺惺相惜" )
- when 30
- draw_text(88, 32, 126, 32,"爱慕倾心" )
- when 40
- draw_text(88, 32, 126, 32,"生死与共" )
- end
- end
- if $game_switches[202]==false
- draw_text(250, 200, 126, 32,"暂无人物关系" )
- end
- end
- def draw_face(face_name, face_index, x, y, enabled = true)
- bitmap = Cache.face(face_name)
- rect = Rect.new(face_index % 4 * 96, face_index * 96, 96, 96)
- contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha)
- bitmap.dispose
- end
- end
复制代码
|
评分
-
查看全部评分
|