| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2020-5-5 |
| 在线时间 | 9 小时 |
- 梦石
- 0
- 星屑
- 60
- 在线时间
- 9 小时
- 注册时间
- 2006-9-7
- 回帖
- 263
|
楼主 |
发表于 2009-2-8 03:13:17
|
显示全部楼层
每30个字就用P来换行, 计算选择项位置是默认的脚本,要怎么修改?
- if c == "\p"
- if centerflag == true
- x = 520 - x
- x = x / 2
- self.contents.draw_text(x, 32 * y, 520-x, lineheight, a)
- end
- if rightflag == true
- x = 520 - x
- self.contents.draw_text(x, 32 * y, 520-x, lineheight, a)
- end
- if bannerflag == true
- x = 520 - x
- x = x / 2
- self.contents.draw_text(x, 44, 520-x, lineheight, a)
- end
- a = ""
- centerflag = false
- rightflag = false
- bannerflag = false
- if y >= $game_temp.choice_start
- @cursor_width = [@cursor_width, x].max
- end
- y += 1
- x = 0
- # if y >= $game_temp.choice_start
- # x = 0
- # end
- next
- end
- if centerflag == false && rightflag == false && bannerflag == false
- # 控制字体间隔
- self.contents.draw_text(1 + x, 20 * y, 40, lineheight, c)
- x += self.contents.text_size(c).width
- else
- a += c
- x += self.contents.text_size(c).width
- end
- end
复制代码 |
|