Thank you.
However, while that helps stretch the window, the Window Selectable is kinda outta place.Thank you.
However, while that helps stretch the window, the Window Selectable is kinda outta place.# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Menu Command Help Text ║ Version: 1.02 ║
# ║ Author: Roninator2 ║ ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function: ║ Date Created ║
# ║ ╠════════════════════╣
# ║ Show text for Commands in the Menu ║ 28 Dec 2022 ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions: ║
# ║ ║
# ║ Add the command symbol below and write the text to show ║
# ║ ║
# ╚══════════════════════════════════════════════════════════╝
# ╔═════════════════════════════════════╗
# ║ Terms of use: ║
# ║ Free for all uses in RPG Maker ║
# ╚═════════════════════════════════════╝
module R2_Menu_Help_Command_Text
include Tw0Face
Commands = {
:item => ITEMHELPTEXT,
:skill => SKILLHELPTEXT,
:equip => EQUIPHELPTEXT,
:status => STATUSHELPTEXT,
:options => OPTIONSHELPTEXT,
:formation => "",
:save => SAVEHELPTEXT,
:game_end => GAMEENDHELPTEXT,
}
end
#==============================================================================
# ** Window_Menu_Help
#==============================================================================
class Window_Menu_Help < Window_Help
def create_contents
contents.dispose
self.contents = Bitmap.new(self.width - 196, fitting_height(1) - 24)
end
def set_command_text(index, cur_sym)
set_text(index > -1 ? R2_Menu_Help_Command_Text::Commands[cur_sym] : "")
end
end
#==============================================================================
# ** Window_MenuStatus
#==============================================================================
class Window_MenuStatus
def window_height
Graphics.height - 48
end
def item_height
114
end
def item_rect(index)
rect = Rect.new
rect.width = item_width
rect.height = item_height - 15
rect.x = index % col_max * (item_width + spacing)
rect.y = index / col_max * item_height
rect
end
end
#==============================================================================
# ** Window_MenuCommand
#==============================================================================
class Window_MenuCommand
def update_help
@help_window.set_command_text(index, current_symbol)
end
end
#==============================================================================
# ** Scene_Menu
#==============================================================================
class Scene_Menu
alias r2_menu_help_87fh_start start
def start
create_help_window
r2_menu_help_87fh_start
end
def create_help_window
@help_window = Window_Menu_Help.new(1)
@help_window.width = Graphics.width - 160
@help_window.x = 160
@help_window.y = Graphics.height - 48
end
alias r2_command_help_window_92g7b create_command_window
def create_command_window
r2_command_help_window_92g7b
@command_window.help_window = @help_window
end
end
class Scene_ItemBase < Scene_MenuBase
def show_sub_window(window)
width_remain = Graphics.width - window.width
window.x = cursor_left? ? width_remain : 0
@viewport.rect.x = @viewport.ox = cursor_left? ? 0 : window.width
@viewport.rect.width = width_remain
window.height = Graphics.height
window.show.activate
end
end
I may have mentioned it a time or two, but you and Ronny are some great people and I hope your pillow is extra fluffy tonight.
What I mean to say, thank you it works like a charm.Original thread: https://forums.rpgmakerweb.com/threads/menu-commands-help-window-for-default-main-menu.153575/