Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- #
- # Shanghai Simple Script - Final Fantasy 13 Equip Menu
- # Last Date Updated: 2010.06.05
- # Level: Normal
- #
- # NOTE! This requires Yanfly Engine Melody's Equipment Overhaul script to be
- # installed and located above this script to work. This makes your equip menu
- # ordered like Final Fantasy 13's.
- #===============================================================================
- # Instructions
- # -----------------------------------------------------------------------------
- # To install this script, open up your script editor and copy/paste this script
- # to an open slot below ▼ Materials but above ▼ Main. Remember to save.
- #
- #===============================================================================
- $imported = {} if $imported == nil
- $imported["FinalFantasy13EquipMenu"] = true
- module SSS
- # This is the image used for the header and footer of the profile scenes.
- # Must be 544x416 pixels or whatever resolution size you're using.
- MENU_BACK_PROFILE_IMAGE = "ProfileBack"
- # This is the image used for the item back image. Must be 286x24 pixels.
- MENU_BACK_PROFILE_ITEM = "ProfileItem"
- # This sets the menu help window's text color.
- MENU_HELP_TEXT_COLOR = Color.new(0, 0, 0)
- # This is the text format used to write out the current map.
- MENU_LOCATION = "Location: %s"
- # This hash sets the image files for your actors. These images must be placed
- # inside of the Graphics\System folder and they have to be 544x416 pixels or
- # whatever resolution size you're using.
- MENU_PROFILE_IMAGES ={
- 1 => "ProfileRalph",
- 2 => "ProfileUlrika",
- 3 => "ProfileBennett",
- 4 => "ProfileYlva",
- } # Remove this and perish.
- # This is the text used to write out various equip menu text items.
- MENU_TEXT_EQUIP_STATS1 = "Status"
- MENU_TEXT_EQUIP_STATS2 = "Aptitude Rates"
- MENU_TEXT_EQUIP_EQUIP1 = "Option"
- MENU_TEXT_EQUIP_EQUIP2 = "Equipment"
- MENU_TEXT_EQUIP_APT = "Aptitude"
- MENU_TEXT_EQUIP_PASSIVE = "Passives Abilities"
- # This is the text used to write out the passive names.
- MENU_TEXT_SUPER_GUARD = "Super Guard"
- MENU_TEXT_FAST_ATTACK = "Fast Attack"
- MENU_TEXT_DUAL_ATTACK = "Dual Attack"
- MENU_TEXT_PREVENT_CRI = "Prevent Critical"
- MENU_TEXT_HALF_MP_COST = "Half MP Cost"
- MENU_TEXT_PHARMACOLOGY = "Pharmacology"
- MENU_TEXT_DOUBLE_EXP = "Double EXP Gain"
- MENU_TEXT_AUTO_HP_REC = "Auto HP Recover"
- end
- #==============================================================================
- # ** Window_Base
- #==============================================================================
- class Window_Base < Window
- #--------------------------------------------------------------------------
- # * Object Initialization
- #--------------------------------------------------------------------------
- alias initialize_sss_ff13_equip_menu_window_base initialize unless $@
- def initialize(x, y, width, height)
- initialize_sss_ff13_equip_menu_window_base(x, y, width, height)
- self.opacity = 0 if $scene.is_a?(Scene_Equip)
- end
- end
- #===============================================================================
- # ** Window_Equip
- #===============================================================================
- class Window_Equip < Window_Selectable
- #--------------------------------------------------------------------------
- # * Draw Equipment Category
- #--------------------------------------------------------------------------
- def draw_equipment_category
- self.contents.font.size = YEM::EQUIP::CATEGORY_FONT_SIZE
- self.contents.font.shadow = true
- dy = 0
- for i in 0..(@actor.equip_type.size)
- self.contents.font.color = normal_color
- if i == 0 and @actor.weapons[0] != nil and @actor.weapons[0].two_handed
- text = @actor.weapons[0].two_hand_text
- elsif i == 0
- text = YEM::EQUIP::TYPE_RULES[:weapon][0]
- elsif i == 1 and @actor.two_swords_style
- text = YEM::EQUIP::TYPE_RULES[:weapon][0]
- else
- type = @actor.equip_type[i-1]
- text = YEM::EQUIP::TYPE_RULES[type][0]
- end
- self.contents.draw_text(4, dy, 76, WLH, text, 1)
- dy += WLH
- end
- end
- #--------------------------------------------------------------------------
- # * Draw Equipment Items
- #--------------------------------------------------------------------------
- def draw_equipment_items
- self.contents.font.size = YEM::EQUIP::CATEGORY_FONT_SIZE
- self.contents.font.shadow = false
- dy = 0; dx = 76
- for i in 0..(@actor.equip_type.size)
- self.contents.font.color = SSS::MENU_HELP_TEXT_COLOR
- item = @data[i]
- if item == nil
- text = YEM::EQUIP::VOCAB[:noequip]
- self.contents.font.color.alpha = 128
- self.contents.draw_text(dx, dy, 196, WLH, text)
- else
- draw_item_name(item, dx, dy)
- end
- dy += WLH
- end
- end
- #--------------------------------------------------------------------------
- # * Draw Item Name
- #--------------------------------------------------------------------------
- def draw_item_name(item, x, y, enabled = true)
- if item != nil
- draw_icon(item.icon_index, x, y, enabled)
- self.contents.font.color = SSS::MENU_HELP_TEXT_COLOR
- self.contents.font.color.alpha = enabled ? 255 : 128
- self.contents.draw_text(x + 24, y, 172, WLH, item.name)
- end
- end
- end
- #===============================================================================
- # ** Window_Equip_Item
- #===============================================================================
- class Window_Equip_Item < Window_Selectable
- #--------------------------------------------------------------------------
- # * Draw Item
- #--------------------------------------------------------------------------
- def draw_item(index)
- rect = item_rect(index)
- self.contents.clear_rect(rect)
- self.contents.font.shadow = false
- self.contents.font.size = YEM::EQUIP::CATEGORY_FONT_SIZE
- self.contents.font.color = SSS::MENU_HELP_TEXT_COLOR
- item = @data[index]
- if item == nil
- draw_icon(YEM::EQUIP::UNEQUIP_ICON, rect.x+12, rect.y)
- text = YEM::EQUIP::VOCAB[:unequip]
- self.contents.draw_text(rect.x+36, rect.y, 172, WLH, text)
- return
- end
- number = $game_party.item_number(item)
- enabled = enable?(item)
- rect.width -= 4
- draw_item_name(item, rect.x+12, rect.y, enabled)
- if $imported["BattleEngineMelody"]
- self.contents.font.size = YEM::BATTLE_ENGINE::ITEM_SETTINGS[:size]
- self.contents.font.color = SSS::MENU_HELP_TEXT_COLOR
- sprint = YEM::BATTLE_ENGINE::ITEM_SETTINGS[:text]
- else
- sprint = YEM::EQUIP::VOCAB[:amount]
- end
- self.contents.draw_text(rect, sprintf(sprint, number),2)
- end
- #--------------------------------------------------------------------------
- # * Draw Item Name
- #--------------------------------------------------------------------------
- def draw_item_name(item, x, y, enabled = true)
- if item != nil
- draw_icon(item.icon_index, x, y, enabled)
- self.contents.font.color = SSS::MENU_HELP_TEXT_COLOR
- self.contents.font.color.alpha = enabled ? 255 : 128
- self.contents.draw_text(x + 24, y, 172, WLH, item.name)
- end
- end
- end
- #===============================================================================
- # ** Window_Aptitude
- #===============================================================================
- class Window_Aptitude < Window_Selectable
- #--------------------------------------------------------------------------
- # new method: draw_obj_name
- #--------------------------------------------------------------------------
- def draw_obj_name(obj, rect, enabled)
- draw_icon(obj.icon_index, rect.x+12, rect.y, enabled)
- self.contents.font.shadow = false
- self.contents.font.size = YEM::EQUIP::CATEGORY_FONT_SIZE
- self.contents.font.color = SSS::MENU_HELP_TEXT_COLOR
- self.contents.font.color.alpha = enabled ? 255 : 128
- rect.width -= 48
- self.contents.draw_text(rect.x+48, rect.y, rect.width-24, WLH, obj.name)
- end
- #--------------------------------------------------------------------------
- # new method: draw_obj_total
- #--------------------------------------------------------------------------
- def draw_obj_total(obj, rect, enabled)
- if $imported["BattleEngineMelody"]
- hash = YEM::BATTLE_ENGINE::ITEM_SETTINGS
- else
- hash ={ :text => ":%d", :size => Font.default_size, :colour => 0 }
- end
- number = $game_party.item_number(obj)
- dx = rect.x + rect.width - 36; dy = rect.y; dw = 32
- text = sprintf(hash[:text], number)
- self.contents.font.size = YEM::EQUIP::CATEGORY_FONT_SIZE
- self.contents.font.color = SSS::MENU_HELP_TEXT_COLOR
- self.contents.font.color.alpha = enabled ? 255 : 128
- self.contents.draw_text(dx, dy, dw, WLH, text, 2)
- end
- end
- #==============================================================================
- # ** Window_MenuHelp
- #==============================================================================
- class Window_MenuHelp < Window_Help
- #--------------------------------------------------------------------------
- # * Set Text
- #--------------------------------------------------------------------------
- def set_text(text, align = 0)
- if text != @text or align != @align
- self.contents.clear
- self.contents.font.shadow = false
- self.contents.font.color = SSS::MENU_HELP_TEXT_COLOR
- self.contents.draw_text(4, 0, self.width - 40, WLH, text, align)
- @text = text
- @align = align
- end
- end
- end
- #==============================================================================
- # ** Window_MenuTimer
- #==============================================================================
- class Window_MenuTimer < Window_Base
- #--------------------------------------------------------------------------
- # * Object Initialization
- #--------------------------------------------------------------------------
- def initialize
- super(0, Graphics.height - 60, 120, 56)
- self.contents.font.size = Font.default_size - 4
- self.contents.font.shadow = false
- self.contents.font.color = SSS::MENU_HELP_TEXT_COLOR
- refresh
- end
- #--------------------------------------------------------------------------
- # * Refresh
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- format = "%03d:%02d:%02d"
- @game_time = Graphics.frame_count / Graphics.frame_rate
- hours = @game_time / 3600
- minutes = @game_time / 60 % 60
- seconds = @game_time % 60
- text = sprintf(format, hours, minutes, seconds)
- self.contents.draw_text(0, 0, contents.width-4, WLH, text, 2)
- end
- #--------------------------------------------------------------------------
- # * Update
- #--------------------------------------------------------------------------
- def update
- super
- refresh if @game_time != (Graphics.frame_count / Graphics.frame_rate)
- end
- end
- #==============================================================================
- # ** Window_MenuGold
- #==============================================================================
- class Window_MenuGold < Window_Base
- #--------------------------------------------------------------------------
- # * Object Initialization
- #--------------------------------------------------------------------------
- def initialize
- super(100, Graphics.height - 60, 120, 56)
- self.contents.font.size = Font.default_size - 4
- self.contents.font.shadow = false
- self.contents.font.color = SSS::MENU_HELP_TEXT_COLOR
- refresh
- end
- #--------------------------------------------------------------------------
- # * Refresh
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- text = sprintf("%d%s", $game_party.gold, Vocab.gold)
- self.contents.draw_text(0, 0, contents.width-4, WLH, text, 0)
- end
- end
- #==============================================================================
- # ** Window_MenuLocation
- #==============================================================================
- class Window_MenuLocation < Window_Base
- #--------------------------------------------------------------------------
- # * Object Initialization
- #--------------------------------------------------------------------------
- def initialize
- super(Graphics.width/2-16, Graphics.height - 60, Graphics.width/2+16, 56)
- self.contents.font.size = Font.default_size - 4
- self.contents.font.shadow = false
- self.contents.font.color = SSS::MENU_HELP_TEXT_COLOR
- refresh
- end
- #--------------------------------------------------------------------------
- # * Refresh
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- text = sprintf(SSS::MENU_LOCATION, $game_map.map_name)
- self.contents.draw_text(4, 0, contents.width, WLH, text, 0)
- end
- end
- #==============================================================================
- # ** Window_Equip
- #==============================================================================
- class Window_Equip < Window_Selectable
- #--------------------------------------------------------------------------
- # * Refresh
- #--------------------------------------------------------------------------
- alias refresh_sss_ff13_equip_menu refresh unless $@
- def refresh
- if $scene.is_a?(Scene_Equip) and not $scene.passives_window.nil?
- $scene.passives_window.refresh
- end
- refresh_sss_ff13_equip_menu
- end
- end
- #==============================================================================
- # ** Window_Underscore
- #==============================================================================
- class Window_Underscore < Window_Base
- #--------------------------------------------------------------------------
- # * Object Initialization
- #--------------------------------------------------------------------------
- def initialize(align = 0)
- super(0, 0, Graphics.width, 56)
- @align = align
- refresh
- end
- #--------------------------------------------------------------------------
- # * Refresh
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- self.contents.font.name = ["UmePlus Gothic", "Courier New"]
- self.contents.font.size += 4
- text = "―――――――――――――――――――――――――――――――――――――――――――――――――――――――"
- self.contents.draw_text(0, 0, contents.width, WLH, text, @align)
- end
- end
- #==============================================================================
- # ** Window_MenuEquipPassives
- #==============================================================================
- class Window_MenuEquipPassives < Window_Base
- #--------------------------------------------------------------------------
- # * Object Initialization
- #--------------------------------------------------------------------------
- def initialize(yy)
- super(Graphics.width-240, yy, 240, 6*24+32)
- refresh
- end
- #--------------------------------------------------------------------------
- # * Refresh
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- @actor = $scene.actor
- self.contents.font.color = normal_color
- self.contents.font.size = YEM::EQUIP::STAT_FONT_SIZE
- yy = WLH
- xx = 12
- if @actor.super_guard
- text = SSS::MENU_TEXT_SUPER_GUARD
- self.contents.draw_text(xx, yy, contents.width, WLH, text)
- yy += WLH
- end
- if @actor.fast_attack
- text = SSS::MENU_TEXT_FAST_ATTACK
- self.contents.draw_text(xx, yy, contents.width, WLH, text)
- yy += WLH
- end
- if @actor.dual_attack
- text = SSS::MENU_TEXT_DUAL_ATTACK
- self.contents.draw_text(xx, yy, contents.width, WLH, text)
- yy += WLH
- end
- if @actor.prevent_critical
- text = SSS::MENU_TEXT_PREVENT_CRI
- self.contents.draw_text(xx, yy, contents.width, WLH, text)
- yy += WLH
- end
- if @actor.half_mp_cost
- text = SSS::MENU_TEXT_HALF_MP_COST
- self.contents.draw_text(xx, yy, contents.width, WLH, text)
- yy += WLH
- end
- if @actor.pharmacology
- text = SSS::MENU_TEXT_PHARMACOLOGY
- self.contents.draw_text(xx, yy, contents.width, WLH, text)
- yy += WLH
- end
- if @actor.double_exp_gain
- text = SSS::MENU_TEXT_DOUBLE_EXP
- self.contents.draw_text(xx, yy, contents.width, WLH, text)
- yy += WLH
- end
- if @actor.auto_hp_recover
- text = SSS::MENU_TEXT_AUTO_HP_REC
- self.contents.draw_text(xx, yy, contents.width, WLH, text)
- yy += WLH
- end
- for state in @actor.equip_autostates
- text = state.name
- self.contents.draw_text(xx, yy, contents.width, WLH, text)
- yy += WLH
- end
- end
- end
- #===============================================================================
- # Override Equipment Overhaul Settings
- #===============================================================================
- YEM::EQUIP::STAT_FONT_SIZE = 16
- YEM::EQUIP::CATEGORY_FONT_SIZE = 16
- #==============================================================================
- # ** Scene_Equip
- #==============================================================================
- class Scene_Equip < Scene_Base
- #--------------------------------------------------------------------------
- # public instance variables
- #--------------------------------------------------------------------------
- attr_accessor :actor
- attr_accessor :passives_window
- #--------------------------------------------------------------------------
- # * Start
- #--------------------------------------------------------------------------
- alias start_sss_ff13_equip_menu start unless $@
- def start
- start_sss_ff13_equip_menu
- start_ff13_menu_style
- end
- #--------------------------------------------------------------------------
- # * Start Final Fantasy 13 Menu Style
- #--------------------------------------------------------------------------
- def start_ff13_menu_style
- @gold_window = Window_MenuGold.new
- @menu_timer_window = Window_MenuTimer.new
- @location_window = Window_MenuLocation.new
- @help_window.dispose
- @help_window = Window_MenuHelp.new
- @help_window.x += 48
- @help_window.width -= 48
- @help_window.create_contents
- @help_window.contents.font.size = Font.default_size - 4
- for window in @windows
- next unless window.is_a?(Window_Selectable)
- window.help_window = @help_window
- end
- @command_window.y = @help_window.height+2
- @command_window.height = 24*3+32
- @command_window.x += (Graphics.width-240-@command_window.width-32)/2
- @help_window.y += 12
- @status_window.y = -@status_window.height * @status_window.height
- @aptitude_window.x -= 8 unless @aptitude_window.nil?
- @equip_window.x -= 8 unless @equip_window.nil?
- @item_window.height = (@item_window.height-32)/24
- @item_window.height = @item_window.height*24+32
- @aptitude_window.height = @item_window.height unless @aptitude_window.nil?
- @aptitude_window.refresh
- @item_window.x -= 8 unless @item_window.nil?
- create_underscore_windows
- create_dummy_text_windows
- create_item_image
- passives_y = @underscore_window2.y+10
- @passives_window = Window_MenuEquipPassives.new(passives_y-24)
- update_windows
- end
- #--------------------------------------------------------------------------
- # * Create Underscore Windows
- #--------------------------------------------------------------------------
- def create_underscore_windows
- @underscore_window1 = Window_Underscore.new(2)
- @underscore_window2 = Window_Underscore.new(0)
- @underscore_window3 = Window_Underscore.new(0)
- @underscore_window4 = Window_Underscore.new(2)
- @underscore_window1.y = @command_window.y + @command_window.height - 40
- @underscore_window1.x = -Graphics.width/3-60
- @underscore_window2.y = @command_window.y + @command_window.height + 6
- extra_y = YEM::EQUIP::SHOWN_STATS.size - 4
- if YEM::EQUIP::SHOWN_STATS.include?(:dex) and not $imported["DEX Stat"]
- extra_y -= 1
- end
- if YEM::EQUIP::SHOWN_STATS.include?(:res) and not $imported["RES Stat"]
- extra_y -= 1
- end
- @underscore_window2.y += extra_y * 24
- @underscore_window2.y -= 16
- @underscore_window2.x = @underscore_window1.x + @underscore_window1.width-2
- @underscore_window3.x = @underscore_window1.x
- @underscore_window3.y = @help_window.y + @help_window.height-24
- @underscore_window4.x = @underscore_window2.x
- @underscore_window4.y = @underscore_window3.y
- end
- #--------------------------------------------------------------------------
- # * Create Dummy Text Windows
- #--------------------------------------------------------------------------
- def create_dummy_text_windows
- # Lower Left
- @dummy_stats1_window = Window_Base.new(0, 0, Graphics.width, 56)
- @dummy_stats1_window.contents.font.size = YEM::EQUIP::STAT_FONT_SIZE
- rect = Rect.new(0, 0, @dummy_stats1_window.contents.width, 24)
- text = SSS::MENU_TEXT_EQUIP_EQUIP2
- @dummy_stats1_window.contents.draw_text(rect, text, 2)
- @dummy_stats1_window.x = @underscore_window1.x-4
- @dummy_stats1_window.y = @underscore_window1.y-8
- # Lower Right
- @dummy_stats2_window = Window_Base.new(0, 0, Graphics.width, 56)
- @dummy_stats2_window.contents.font.size = YEM::EQUIP::STAT_FONT_SIZE
- rect = Rect.new(0, 0, @dummy_stats2_window.contents.width, 24)
- text = SSS::MENU_TEXT_EQUIP_PASSIVE
- @dummy_stats2_window.contents.draw_text(rect, text, 0)
- @dummy_stats2_window.x = @underscore_window2.x+4
- @dummy_stats2_window.y = @underscore_window2.y-8
- # Upper Left
- @dummy_stats3_window = Window_Base.new(0, 0, Graphics.width, 56)
- @dummy_stats3_window.contents.font.size = YEM::EQUIP::STAT_FONT_SIZE
- rect = Rect.new(0, 0, @dummy_stats3_window.contents.width, 24)
- text = SSS::MENU_TEXT_EQUIP_EQUIP1
- @dummy_stats3_window.contents.draw_text(rect, text, 2)
- @dummy_stats3_window.x = @underscore_window3.x-4
- @dummy_stats3_window.y = @underscore_window3.y-8
- # Upper Right
- @dummy_stats4_window = Window_Base.new(0, 0, Graphics.width, 56)
- @dummy_stats4_window.contents.font.size = YEM::EQUIP::STAT_FONT_SIZE
- rect = Rect.new(0, 0, @dummy_stats4_window.contents.width, 24)
- text = SSS::MENU_TEXT_EQUIP_STATS1
- @dummy_stats4_window.contents.draw_text(rect, text, 0)
- @dummy_stats4_window.x = @underscore_window4.x+4
- @dummy_stats4_window.y = @underscore_window4.y-8
- end
- #--------------------------------------------------------------------------
- # * Create Item Image
- #--------------------------------------------------------------------------
- def create_item_image
- @item_back_sprite = Sprite.new
- bitmap_w = 286
- bitmap_h = (@equip_window.height-32)/24
- @item_back_sprite.bitmap = Bitmap.new(bitmap_w, bitmap_h*24)
- rect = Rect.new(0, 0, 286, 24)
- source = Cache.system(SSS::MENU_BACK_PROFILE_ITEM)
- yy = 0
- bitmap_h.times do
- @item_back_sprite.bitmap.blt(0, yy, source, rect)
- yy += 24
- end
- end
- #--------------------------------------------------------------------------
- # * Create Background for Menu Screen
- #--------------------------------------------------------------------------
- def create_menu_background
- @menuback_sprite.dispose unless @menuback_sprite.nil?
- @menuback_sprite = Sprite.new
- @actor = $game_party.members[@actor_index]
- filename = SSS::MENU_PROFILE_IMAGES[@actor.id]
- filename = SSS::MENU_PROFILE_IMAGES[1] if filename.nil?
- @menuback_sprite.bitmap = Cache.system(filename)
- blur_times = 2
- blur_times.times do @menuback_sprite.bitmap.blur end
- @menuback_sprite.color.set(16, 16, 16, 64)
- @profile_back_sprite.dispose unless @profile_back_sprite.nil?
- @profile_back_sprite = Sprite.new
- @profile_back_sprite.bitmap = Cache.system(SSS::MENU_BACK_PROFILE_IMAGE)
- update_menu_background
- end
- #--------------------------------------------------------------------------
- # * Termination Processing
- #--------------------------------------------------------------------------
- alias terminate_sss_ff13_equip_menu terminate unless $@
- def terminate
- @gold_window.dispose
- @menu_timer_window.dispose
- @location_window.dispose
- @profile_back_sprite.bitmap.dispose
- @profile_back_sprite.dispose
- @underscore_window1.dispose
- @underscore_window2.dispose
- @underscore_window3.dispose
- @underscore_window4.dispose
- @dummy_stats1_window.dispose
- @dummy_stats2_window.dispose
- @dummy_stats3_window.dispose
- @dummy_stats4_window.dispose
- @passives_window.dispose
- @item_back_sprite.bitmap.dispose
- @item_back_sprite.dispose
- terminate_sss_ff13_equip_menu
- end
- #--------------------------------------------------------------------------
- # * Update Background for Menu Screen
- #--------------------------------------------------------------------------
- def update_menu_background
- super
- @gold_window.update unless @gold_window.nil?
- @menu_timer_window.update unless @menu_timer_window.nil?
- @profile_back_sprite.update unless @profile_back_sprite.nil?
- end
- #--------------------------------------------------------------------------
- # * Update Windows
- #--------------------------------------------------------------------------
- def update_windows
- @aptitude_window.y = Graphics.height*8 if @aptitude_window != nil
- @apt_stat.y = Graphics.height*8 if @apt_stat != nil
- @help_window.y = Graphics.height*8
- @equip_window.y = Graphics.height*8
- @stat_window.y = @equip_window.y
- item_window_height = @command_window.y + @command_window.height - 25
- @item_back_sprite.y = Graphics.height*8 unless @item_back_sprite.nil?
- case @data[@command_window.index]
- when :aptitude
- @help_window.y = 12
- @aptitude_window.y = item_window_height
- @apt_stat.y = @command_window.y - 4
- @aptitude_window.update_help
- unless @dummy_stats4_window.nil?
- @dummy_stats4_window.contents.clear
- rect = Rect.new(0, 0, @dummy_stats4_window.contents.width, 24)
- text = SSS::MENU_TEXT_EQUIP_STATS2
- @dummy_stats4_window.contents.draw_text(rect, text, 0)
- end
- unless @item_back_sprite.nil?
- @item_back_sprite.y = item_window_height+16
- end
- else
- @help_window.y = 12
- @equip_window.y = item_window_height
- @stat_window.y = @command_window.y - 4
- @equip_window.update_help
- unless @dummy_stats4_window.nil?
- @dummy_stats4_window.contents.clear
- rect = Rect.new(0, 0, @dummy_stats4_window.contents.width, 24)
- text = SSS::MENU_TEXT_EQUIP_STATS1
- @dummy_stats4_window.contents.draw_text(rect, text, 0)
- end
- unless @item_back_sprite.nil?
- @item_back_sprite.y = item_window_height+16
- end
- end
- end
- #--------------------------------------------------------------------------
- # * Set New Actor
- #--------------------------------------------------------------------------
- alias set_new_actor_sss_ff13_equip_menu set_new_actor unless $@
- def set_new_actor
- set_new_actor_sss_ff13_equip_menu
- Graphics.freeze
- create_menu_background
- Graphics.transition(10)
- end
- end
- #===============================================================================
- #
- # END OF FILE
- #
- #===============================================================================
Advertisement
Add Comment
Please, Sign In to add comment