Project1
标题:
如何修改战斗画面显示头像的脚本
[打印本页]
作者:
6802
时间:
2010-11-15 20:23
提示:
作者被禁止或删除 内容自动屏蔽
作者:
企鹅达达
时间:
2010-11-16 21:36
请问,如何在地图上显示图片?
事件设置中第二页右边有显示图片的选项。
请问,坐船的时候如何遇敌?
http://rpg.blue/forum.php?mod=vi ... 7%E9%81%87%E6%95%8C
最后一个问题……你等脚本高手吧,要不就干脆换一个系统……
作者:
烁灵
时间:
2010-11-16 22:39
def update_cursor
if @index < 0 # 光标位置不满 0 的情况下
self.cursor_rect.empty # 光标无效
else # 光标位 0 以上的情况下
row = @index / @column_max # 获取当前的行
if row < top_row # 当前行被显示开头行前面的情况下
self.top_row = row # 从当前行向开头行滚动
end
if row > bottom_row # 当前行被显示末尾行之后的情况下
self.bottom_row = row # 从当前行向末尾滚动
end
rect = item_rect(@index) # 获取选择项的矩形
rect.y -= self.oy # 矩形滚动的位置加起来
self.cursor_rect = rect # 更新光标矩形
end
end
end
复制代码
把这一段改成
def update_cursor
if @index < 0 # 光标位置不满 0 的情况下
self.cursor_rect.empty # 光标无效
else # 光标位 0 以上的情况下
row = @index / @column_max # 获取当前的行
if row < top_row # 当前行被显示开头行前面的情况下
self.top_row = row # 从当前行向开头行滚动
end
if row > bottom_row # 当前行被显示末尾行之后的情况下
self.bottom_row = row # 从当前行向末尾滚动
end
rect = item_rect(@index) # 获取选择项的矩形
rect.y -= self.oy # 矩形滚动的位置加起来
self.cursor_rect = rect # 更新光标矩形
refresh
end
end
end
复制代码
也就是在倒数第三个end上边加上[refresh]
不过这样也许会有一点卡。。。
作者:
6802
时间:
2010-11-16 23:10
提示:
作者被禁止或删除 内容自动屏蔽
作者:
6802
时间:
2010-11-16 23:11
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1