Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# original: http://www.endressdreamer.wjg.jp/RGSS3_12.html
class Window_Quest_Menu < Window_Selectable
# 再定義: draw_text の3つ目の引数を修正
def draw_quest(str, x, y, enabled, index)
if str != ""
self.contents.font.color = normal_color
self.contents.font.color.alpha = enabled ? 255 : 128
self.contents.draw_text(x + 24, y, (self.width - 72), line_height, str)
unless enable?(index)
# 既に終了したクエストはタイトルの上に文字を描画。
self.contents.font.color = crisis_color
self.contents.font.bold = true
self.contents.draw_text(x + 24, y, (self.width - 72), line_height, ED::VOCAB_QUEST_END_OK,1)
self.contents.font.bold = false
self.contents.font.color = normal_color
end
end
end
end
class Scene_Quest < Scene_MenuBase
# エイリアス: 右側のウィンドウを非表示に
alias torigoya_hotfix_disable_content_window_start start
def start
torigoya_hotfix_disable_content_window_start
@status_window.hide
end
# エイリアス: 左側のウィンドウを最大化
alias torigoya_hotfix_disable_content_window_create_command_window create_command_window
def create_command_window
torigoya_hotfix_disable_content_window_create_command_window
@command_window.width = Graphics.width
@command_window.refresh
end
end
# 決定キーを押しても何も起きないようにする
# (※起きて欲しい場合は、ここから下を丸ごと削除する)
class Scene_Quest < Scene_MenuBase
alias torigoya_hotfix_disable_content_update_command_selection update_command_selection
def update_command_selection
return if Input.trigger?(Input::C)
torigoya_hotfix_disable_content_update_command_selection
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment