#============================================================================== # ■ Numset #------------------------------------------------------------------------------ #  数のモジュールです。 #============================================================================== module Numset #-------------------------------------------------------------------------- # ● オブジェクト初期化 #-------------------------------------------------------------------------- CURSOR_SKIN = "" # カーソルのウィンドウスキン end module Window_Cursor #-------------------------------------------------------------------------- # ● オブジェクト初期化 #-------------------------------------------------------------------------- def initialize(x, y, w, h, base_class = Window_Selectable, viewport = nil, skin = Numset::CURSOR_SKIN) super(x, y, w, h, viewport) # 補助ウィンドウ(透明)を作成:カーソル専用 begin @sub_window = base_class.new(self.x, self.y, self.width, self.height, viewport) rescue ArgumentError @sub_window = base_class.new(self.x, self.y, self.width, self.height) end begin @sub_window.windowskin = RPG::Cache.windowskin(skin) rescue Errno::ENOENT @sub_window.windowskin = self.windowskin end @sub_window.opacity = 0 @sub_window.active = false @sub_window.index = -1 end #-------------------------------------------------------------------------- # ○ 第二カーソルの設置 #-------------------------------------------------------------------------- def dispose super @sub_window.dispose end #-------------------------------------------------------------------------- # ○ 第二カーソルの設置 #-------------------------------------------------------------------------- def child return @sub_window end def index2 return @sub_window.index end def index2=(value) @sub_window.index = value @sub_window.active = (value >= 0) end #-------------------------------------------------------------------------- # ○ フレーム更新 #-------------------------------------------------------------------------- def update(imput = true) super() begin @sub_window.update(imput) rescue ArgumentError @sub_window.update end end end