src/Windows/Window_Skill_Command.rb
#--------------------------------------------------------------------------
# * Update
#     actor : actor object
#     filter : filter object
#--------------------------------------------------------------------------
Update
actor : actor object
filter : filter object
Update actor : actor object filter : filter object
def window_update(actor, filter)
    @data = []
    if actor != nil
      @actor = actor
      if filter != nil
        temp_skills = actor.skills.find_all{|x| filter.apply(x)}
      else
        temp_skills = actor.skills
      end
      for skill in temp_skills
        if skill != nil && include?(skill)
          @data.push(skill)
        end
      end
      @item_max = @data.size
      create_contents()
      @ucSkillsList.clear()
      for i in 0..@item_max-1
        @ucSkillsList.push(create_item(i))
      end
    end
    refresh()
  end
def window_update ( actor , filter ) @data = [ ] if actor != nil @actor = actor if filter != nil temp_skills = actor . skills . find_all { | x | filter . apply ( x ) } else temp_skills = actor . skills end for skill in temp_skills if skill != nil && include? ( skill ) @data . push ( skill ) end end @item_max = @data . size create_contents ( ) @ucSkillsList . clear ( ) for i in 0 .. @item_max - 1 @ucSkillsList . push ( create_item ( i ) ) end end refresh ( ) end
Update
actor : actor object
filter : filter object
Update actor : actor object filter : filter object
actor
<not_specific>
filter
<not_specific>