ok, this is the complete compatibility patch for his script. Note, i did change the name of the Window_ItemDetailView to Window_Details and changed the name of his global variable. all of these changes correspond to changes I made in his script. there are also a few attempts at aliasing methods from Scene_Item, and I changed a variable name (Whew...)
Moving on:
Patch so I can remove edits done directly to Scene_Item
Code:
class Scene_Detail < Scene_Item
alias update_item_details update_item
def update_item
if Input.trigger?(Input::A)
if $selected_item == nil
return
end
$game_system.se_play($data_system.decision_se)
@detail_window.refresh
@item_window.active = false
@detail_window.visible = true
@detail_window.active = true
end
update_item_details
end
alias main_details main
def main
@detail_window = Window_Details.new
@detail_window.visible = false
@detail_window.active = false
@detail_window.dispose
main_details
end
alias update_detail_window update
def update
$selected_item = @item_window.item
if @detail_window.active
update_details
update_detail_window
return
end
end
def update_details
if Input.trigger?(Input::B)
$game_system.se_play($data_system.cancel_se)
unless $game_party.item_can_use?(@item.id)
@item_window.refresh
end
@item_window.active = true
@detail_window.visible = false
@detail_window.active = false
@detail_window.refresh_reset
return
end
end