01-07-2010, 12:54 AM
Charlie Fleed Wrote:In "SLS Windows" at line 171, replace the refresh method with this one
Code:#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
x = 0
y = 0
if $scene.is_a?(Scene_Shop)
draw_actor_name(@actor, x, y)
y+=24
end
self.contents.font.color=system_color
self.contents.draw_text(x,y,320,self.contents.font.size,"Equipment Skills")
y+=self.contents.font.size+2
self.contents.font.color=normal_color
if @equip_type==0 and @equip_id!=0 and $game_party.
learning_db[$data_weapons[@equip_id].name]!=nil
for learning in $game_party.
learning_db[$data_weapons[@equip_id].name].learnings
skill=$data_skills[learning.skill_id]
rect = Rect.new(x, y, 24, 24)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
bitmap = RPG::Cache.icon(skill.icon_name)
self.contents.blt(x, y, bitmap, Rect.new(0, 0, 24, 24), opacity)
if @actor!=nil
self.contents.font.color=(@actor.can_learn?(learning.skill_id)) ? normal_color : disabled_color
end
self.contents.draw_text(x + 28, y, 172, self.contents.font.size, "L:"+skill.name, 0)
s=""
if @actor!=nil and (@actor.skill_learn?(skill.id) or learning.level==0)
s=s+"A"
end
if @actor!=nil and @actor.experience_points_skills[skill.id] >= learning.level
s=s+" M" unless learning.level==0
end
#self.contents.draw_text(x + 200, y, 48, self.contents.font.size, skill.sp_cost.to_s, 2)
self.contents.draw_text(x + 200, y, 48, self.contents.font.size, s, 2)
y+=24
end
end
if @equip_type>0 and @equip_id!=0 and $game_party.
learning_db[$data_armors[@equip_id].name]!=nil
for learning in $game_party.
learning_db[$data_armors[@equip_id].name].learnings
skill=$data_skills[learning.skill_id]
rect = Rect.new(x, y, 24, 24)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
bitmap = RPG::Cache.icon(skill.icon_name)
self.contents.blt(x, y, bitmap, Rect.new(0, 0, 24, 24), opacity)
if @actor!=nil
self.contents.font.color=(@actor.can_learn?(learning.skill_id)) ? normal_color : disabled_color
end
self.contents.draw_text(x + 28, y, 172, self.contents.font.size, "L:"+skill.name, 0)
s=""
if @actor!=nil and (@actor.skill_learn?(skill.id) or learning.level==0)
s=s+"A"
end
if @actor!=nil and @actor.experience_points_skills[skill.id] >= learning.level
s=s+" M" unless learning.level==0
end
#self.contents.draw_text(x + 200, y, 48, self.contents.font.size, skill.sp_cost.to_s, 2)
self.contents.draw_text(x + 200, y, 48, self.contents.font.size, s, 2)
y+=24
end
end
end
I tried to fill that in (2.2) but then this window doesn't show up in the Equipment Menu. Could you edit this so it's compatible with 2.2?
ty Zare