加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 金芒芒 于 2024-6-19 11:03 编辑
class Window_CustomBattle < Window_Base # attr_reader :index #属性读取器:索引 attr_reader :v_index #属性读取器:v_索引 attr_reader :slide_over #属性读取器:#滚动结束 attr_reader :item_max #属性阅读器:项目最大值 attr_reader :second_index #属性阅读器: 第二个索引 @button_base = Sprite.new #@按钮_底座=新的精灵 @finish_button = Sprite.new #@完成按钮=精灵.new @delete_button = Sprite.new #@删除按钮=精灵新 @empty_button = Sprite.new @bottom_buttons.push @finish_button# @底部按钮。按下完成按钮 @bottom_buttons.push @delete_button# @底部按钮。按下删除按钮 @bottom_buttons.push @empty_button # @底部按钮。按下清空按钮 @second_index = -1 for i in 0..@max_item_row_2-1 @bottom_buttons[i].bitmap = RPG::Cache.title("bottom-button-"+(i+1).to_s+"-basic")#+i.to_s) end else @bottom_buttons[index].bitmap = RPG::Cache.title("bottom-button-"+(index+1).to_s+"-basic")#+i.to_s) end end #-------------------------------------------------------------------------- # ● 更新光标矩形 #-------------------------------------------------------------------------- @second_index=@index if @second_index < 0 for i in 0..@max_item_row_2[/color]-1 back_normal(i) end return end @bottom_buttons[@second_index].bitmap = RPG::Cache.title("bottom-button-"+(@second_index+1).to_s+"-l")#+i.to_s)
class Window_CustomBattle < Window_Base #
attr_reader :index #属性读取器:索引
attr_reader :v_index #属性读取器:v_索引
attr_reader :slide_over #属性读取器:#滚动结束
attr_reader :item_max #属性阅读器:项目最大值
attr_reader :second_index #属性阅读器: 第二个索引
@button_base = Sprite.new #@按钮_底座=新的精灵
@finish_button = Sprite.new #@完成按钮=精灵.new
@delete_button = Sprite.new #@删除按钮=精灵新
@empty_button = Sprite.new
@bottom_buttons.push @finish_button# @底部按钮。按下完成按钮
@bottom_buttons.push @delete_button# @底部按钮。按下删除按钮
@bottom_buttons.push @empty_button # @底部按钮。按下清空按钮
@second_index = -1
for i in 0..@max_item_row_2-1
@bottom_buttons[i].bitmap = RPG::Cache.title("bottom-button-"+(i+1).to_s+"-basic")#+i.to_s)
end
else
@bottom_buttons[index].bitmap = RPG::Cache.title("bottom-button-"+(index+1).to_s+"-basic")#+i.to_s)
end
end
#--------------------------------------------------------------------------
# ● 更新光标矩形
#--------------------------------------------------------------------------
@second_index=@index
if @second_index < 0
for i in 0..@max_item_row_2[/color]-1
back_normal(i)
end
return
end
@bottom_buttons[@second_index].bitmap = RPG::Cache.title("bottom-button-"+(@second_index+1).to_s+"-l")#+i.to_s)
|