在新窗口中打开脚本页
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
| $VIPArcherScript ||= {};$VIPArcherScript[:item_category] = 20141017 module VIPArcher end module VIPArcher::ITEM MAX_COL = 4 CATEGORY = { :item => "道具", :weapon => "武器", :armor => "护甲", :key_item => "贵重", :viparcher => "VIP", } end class Window_ItemList < Window_Selectable include VIPArcher::ITEM alias vip_include? include? def include?(item) if item && item.note =~ /<(?:category|分类)[: ].*>/i note_include?(item) else vip_include?(item) end end def note_include?(item) item.note =~ /<(?:category|分类)[:]\s*#{CATEGORY[@category]}>/i end end class Window_ItemCategory < Window_HorzCommand include VIPArcher::ITEM def make_command_list CATEGORY.each{|key, value| add_command(value,key)} end def col_max; MAX_COL end end
|