Hello,
I wanted to know how can we draw icons near commands.Like,
"Icon" Rock
"Icon" Paper
"Icon" Scissors
EDIT : Can you also tell me how to call a variable from an event using a script call ?
Thanks in Advance !
@Venka : I want to do that in my own script.Do you have an alternative way ?
oh I see 😉 well..
if you look in Window_Base for this def
#-------------------------------------------------------------------------- # * Draw Icon # enabled : Enabled flag. When false, draw semi-transparently. #-------------------------------------------------------------------------- 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) endthat's how you draw icons. Then in your script when you make an command they are actually drawn to the window with the draw_item(index) method.
You'll want to draw an icon for each item and then the item's name. You can look at that method in the Window_ItemList for some reference. It uses draw_item_name that you'll probably need to look up to see how they draw the icon and then the text (in this case the item's name) in your chase you'll want to adjust it for your command's name
Thanks ! About the variable script call,you have any idea ?
Thanks ! I just wanted to make a statistic board.With the numbers of wins,losses,and ties