Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [XP] Enhanced Details
#6
Somebody was needing details in the shop menu as well, so I wrote this addition up real quick. You can view the detail window by pressing Input::A (the Shift button by default).

Code:
#===============================================================================
# ** Scene_Shop
#===============================================================================

class Scene_Shop
  alias_method :itemdetails_scnshop_main,   :main
  def main
    # Create window, turn off visibility and active
    @detail_window = Window_Details.new
    @detail_window.visible = false
    @detail_window.active  = false
    # The usual
    itemdetails_scnshop_main
    # Dispose of window when main loop finished
    @detail_window.dispose
  end
  alias_method :itemdetails_scnshop_update, :update
  def update
    # The usual
    itemdetails_scnshop_update
    # Update the window
    @detail_window.update
  end
  alias_method :itemdetails_scnshop_updatebuy, :update_buy
  def update_buy
    # The usual
    itemdetails_scnshop_updatebuy
    # Set item
    $selected_item = @buy_window.item
    # Call update details
    update_details
  end
  alias_method :itemdetails_scnshop_updatesell, :update_sell
  def update_sell
    # The usual
    itemdetails_scnshop_updatesell
    # Set item
    $selected_item = @sell_window.item
    # Call update details
    update_details
  end
  def update_details
    if Input.trigger?(Input::A)
      # End method if selected item is nil
      return if $selected_item.nil?
      # Refresh detail window
      @detail_window.refresh_reset
      @detail_window.refresh
      # Reverse visibility and activity of detail window
      @detail_window.visible = !@detail_window.visible
      @detail_window.active  = !@detail_window.active
    end
  end
end

It was kind of a rush job so if you find any bugs just post here to let us know :D
[Image: Button-BOTB.png]
[Image: Save-Point.gif][Image: Button-You-Tube2.png][Image: Button-Sound-Cloud2.png][Image: Button-Audio-Mack2.png]
[Image: LS-Banner.gif]
NEW ALBUM OUT NOW!

Reply }


Messages In This Thread
[XP] Enhanced Details - by xuroth - 03-11-2011, 03:30 AM
RE: [XP] Enhanced Details - by MetalRenard - 03-11-2011, 09:41 AM
RE: [XP] Enhanced Details - by Holder - 03-12-2011, 02:00 AM
RE: [XP] Enhanced Details - by xuroth - 03-12-2011, 04:23 AM
RE: [XP] Enhanced Details - by Kristovski - 03-12-2011, 09:43 PM
RE: [XP] Enhanced Details - by Kain Nobel - 03-17-2012, 06:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Super Simple Vehicle System - Enhanced DerVVulfman 65 83,136 06-02-2023, 06:16 PM
Last Post: Sujabes467
   Enhanced Squad Movement DerVVulfman 5 5,358 02-24-2023, 04:40 PM
Last Post: DerVVulfman
   Text Scroll Script - Enhanced DerVVulfman 23 30,003 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Super Simple Vehicle System - Enhanced - Vehicle Placement DerVVulfman 2 5,563 05-22-2014, 04:42 AM
Last Post: DerVVulfman
   MrMo DVV Add-On #14: Ingrid's Enhanced Items DerVVulfman 2 6,863 07-13-2011, 11:51 PM
Last Post: DerVVulfman
   Grouping and Details DerVVulfman 6 18,484 04-14-2011, 04:27 AM
Last Post: DerVVulfman



Users browsing this thread: