查看: 802|回复: 1

[有事请教] 【已解决】场景显示窗口且选项是=2

[复制链接]
梦石
0
星屑
7296
在线时间
1244 小时
注册时间
2015-8-15
回帖
473
发表于 2024-7-6 10:10:01 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 金芒芒 于 2024-7-7 12:55 编辑

@chuzhan_IndexCommand = Window_chuzhanCommand.new
[pre lang="ruby"]class Scene_zhenwei
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #     zhenwei_index : 命令光标的初期位置,zhenwei_index = 9,chuzhan_index = 0
  #--------------------------------------------------------------------------
  def initialize(zhenwei_index = 0)
    @zhenwei_index = zhenwei_index
#    @chuzhan_index = chuzhan_index
    @wait_time = 0
  end
  #--------------------------------------------------------------------------
  # ● 主处理
  #--------------------------------------------------------------------------
  def main
    # 生成地图背景
    @zhenwei_TransparentBackground = Spriteset_Map.new
    # 生成出战菜单选项
    @zhenwei_IndexCommand = Window_zhenweiCommand.new
    @zhenwei_IndexCommand.index = @zhenwei_index
    # 生成阵位列表
    @chuzhan_IndexCommand = Window_chuzhanCommand.new[/pre]
梦石
0
星屑
7296
在线时间
1244 小时
注册时间
2015-8-15
回帖
473
 楼主| 发表于 2024-7-7 12:53:35 | 显示全部楼层
self.index = index
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部