42 lines
No EOL
1.6 KiB
Ruby
42 lines
No EOL
1.6 KiB
Ruby
#==============================================================================
|
||
# ■ RGSS3 アイテム詳細説明 白の魔様アイテム図鑑併用化 Ver1.00 by 星潟
|
||
#------------------------------------------------------------------------------
|
||
# このスクリプトを導入することで白の魔様で配布されている
|
||
# アイテム図鑑スクリプトで図鑑を表示している状態で
|
||
# 図鑑上のアイテムにカーソルを合わせ、アイテム詳細説明で設定したキーを押す事で
|
||
# 図鑑画面上でアイテム詳細ウィンドウを開く事が出来るようになります。
|
||
#==============================================================================
|
||
class Scene_ItemDictionary < Scene_ItemBase
|
||
alias start_detail_window start
|
||
def start
|
||
start_detail_window
|
||
create_detail_window
|
||
end
|
||
alias on_item_cancel_SID on_item_cancel
|
||
def on_item_cancel
|
||
if @item_detail_window.visible == true
|
||
@item_detail_window.visible = false
|
||
@item_window.activate
|
||
else
|
||
on_item_cancel_SID
|
||
end
|
||
end
|
||
end
|
||
class Window_ItemDictionaryList < Window_Selectable
|
||
alias initialize_idl initialize
|
||
def initialize(x, y, width, height)
|
||
initialize_idl(x, y, width, height)
|
||
@detail_window_valid = true
|
||
end
|
||
alias item_idl item
|
||
def item
|
||
if t_dictionary_switch_on?(item_idl)
|
||
$game_party.selected_detail_item = item_idl
|
||
$game_party.item_detail_refresh_order = true
|
||
else
|
||
$game_party.selected_detail_item = nil
|
||
$game_party.item_detail_refresh_order = true
|
||
end
|
||
item_idl
|
||
end
|
||
end |