you would want to leave that command alone and instead edit the following def.
#-------------------------------------------------------------------------- # * Draw Item #-------------------------------------------------------------------------- def draw_item(index) change_color(normal_color, command_enabled?(index)) draw_text(item_rect_for_text(index), command_name(index), alignment) end
no clue how comfortable you are with scripting, but that's the area you'll want to make your graphics.. probably with a case statement. You'll want to change/delete the draw_text command. so.. it'd be something like
case command_name(index)
when Vocab::equip
do your stuff for the equipment command here
when xxx
end
so, instead draw_text, it ill be something like draw_picture?
yeah along those lines 🙂
you can look through the scripts and pay attention to any one that calls "Cache.xxx" to see some examples of how to do it.
If you look in Window_Base and look at def draw_icon, it's a pretty good example, there's also a couple more directly below that def as well.
def draw_icon(icon_index, x, y, enabled = true) bitmap = Cache.system("Iconset") rect = Rect.new(icon_index % 16 * 24, icon_index / 16 * 24, 24, 24) contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha) end
bitmap sets the image to use, in this case it looks in the Graphics/System folder for the file called "Iconset".
then it makes a sqaure (rect) to select the image from the file. Think of a select cursor drawing over the image and that's the portion of the image that you're selecting. So for the icons, it's getting a 24 x 24 square and all that jumble of numbers is telling it exactly where to look. For you it could be simplified to
Rect.new(0,0,bitmap.width, bitmap.height) - that tells it to select the whole image starting at 0,0
the next line tells the window the draw the selected image at x, y using the bitmap file, and it's location in that file. the enabled part tells it if it's disabled then draw it slightly translucent.
You would also need to define the icons for each command.
well, he doesn't really want icons in the commands, he wants to completely replace the text and all with an image, I was just providing an example def he could look at to alter to do what he wanted 😉 and a brief description of what that def was doing
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
OP, is this resolved?
Thanks 🙂
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.