| 赞 | 4 |
| VIP | 0 |
| 好人卡 | 0 |
| 积分 | 2 |
| 经验 | 0 |
| 最后登录 | 2025-10-14 |
| 在线时间 | 420 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 208
- 在线时间
- 420 小时
- 注册时间
- 2020-1-11
- 帖子
- 258
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 alianlord 于 2020-7-22 12:04 编辑
class Window_Selectable < Window_Base
……………
#--------------------------------------------------------------------------
# ● 获取顶行位置
#--------------------------------------------------------------------------
def top_row
oy / item_height
end
#--------------------------------------------------------------------------
# ● 设置顶行位置
#--------------------------------------------------------------------------
def top_row=(row)
row = 0 if row < 0
row = row_max - 1 if row > row_max - 1
self.oy = row * item_height
end
@top_row 所暂存的内容是什么种类,是一个数值?(@index 般的 序列数),还是一个座标(x,y),还是一个分数?(1/5之类的) |
|