Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [XP] Inheritance
#3
I am actually working with getting information from Scene_Item, so its necessary.
so I do not need to add the entire method. I could really save some time with this. and it is better for compatibility, right?

EDIT: So I tried this out. I figured I would test Jackatrades Item Detail script, since it is one I know edits an existing scene and has errors with some other scripts that utilize Scene_Item. So I go and I created a class called
Code:
class Scene_IDView < Scene_Item
I aliased the methods he edited, then cut and pasted the individual code into my class. I then replaced Scene_Item with a copy from a new project. all the methods are there still (except update_detail, which i just put into my class) when I tested, the detail window wont come up. so I must not be aliasing them correctly, as it worked before (it WAS his demo at one point... ) example alias:
Code:
alias new_update update
  def update
    
    $currenthighlighteditem = @item_window.item
    if @itemdetail_window.active
      update_detail
      return
    end
    new_update
  end
am I doing something wrong?
EDIT2: (but at least I didnt get method or syntax errors!)
Reply }


Messages In This Thread
[XP] Inheritance - by xuroth - 03-02-2011, 07:03 PM
RE: [XP] Inheritance - by DerVVulfman - 03-02-2011, 10:35 PM
RE: [XP] Inheritance - by xuroth - 03-03-2011, 08:33 AM
RE: [XP] Inheritance - by DerVVulfman - 03-04-2011, 05:49 AM
RE: [XP] Inheritance - by xuroth - 03-08-2011, 04:24 AM
RE: [XP] Inheritance - by DerVVulfman - 03-08-2011, 04:42 AM
RE: [XP] Inheritance - by xuroth - 03-08-2011, 05:35 AM
RE: [XP] Inheritance - by DerVVulfman - 03-08-2011, 05:45 AM
RE: [XP] Inheritance - by xuroth - 03-08-2011, 05:55 AM
RE: [XP] Inheritance - by DerVVulfman - 03-08-2011, 06:10 AM
RE: [XP] Inheritance - by xuroth - 03-08-2011, 06:30 AM
RE: [XP] Inheritance - by DerVVulfman - 03-08-2011, 06:52 AM
RE: [XP] Inheritance - by Charlie Fleed - 03-08-2011, 08:23 AM
RE: [XP] Inheritance - by xuroth - 03-08-2011, 05:19 PM
RE: [XP] Inheritance - by xuroth - 03-09-2011, 03:25 PM
RE: [XP] Inheritance - by DerVVulfman - 03-10-2011, 05:17 AM
RE: [XP] Inheritance - by xuroth - 03-11-2011, 03:21 AM
RE: [XP] Inheritance - by DerVVulfman - 03-11-2011, 04:41 AM
RE: [XP] Inheritance - by Victor Sant - 03-12-2011, 09:36 PM
RE: [XP] Inheritance - by DerVVulfman - 03-13-2011, 04:24 AM



Users browsing this thread: