I am working on a system involving command windows for my game and I want to add icons to the menu options. How would I do this/is this possible?
Can I add icons to a command window in RGSS3?
Learning Ruby and RGSSxHello Meow :3
From what I know that will not be possible without the help of a script.
From what I know that will not be possible without the help of a script.
Yes, it is possible. You could edit the following to draw the correct icon (Window_Command):
def draw_item(index) change_color(normal_color, command_enabled?(index)) draw_text(item_rect_for_text(index), command_name(index), alignment) endAnd then copy the the item_rect_for_text (original found in Window_Selectable) method to your window class and edit it in order to account for the icon dimensions.
def draw_item(index) change_color(normal_color, command_enabled?(index)) draw_text(item_rect_for_text(index), command_name(index), alignment) endAnd then copy the the item_rect_for_text (original found in Window_Selectable) method to your window class and edit it in order to account for the icon dimensions.
Original thread: https://forums.rpgmakerweb.com/threads/can-i-add-icons-to-a-command-window-in-rgss3.36145/