- Joined
- Jan 26, 2014
- Messages
- 1,281
- Reaction score
- 106
- First Language
- Irish
- Primarily Uses
- N/A
I was tinkering something from the window base called draw_item_name. I copied the tidbit of script and placed it in my equip slot. There's something I want to ask, how can I draw the icons of the equipment I have individually?
Because normally, this:
#-------------------------------------------------------------------------- # * Draw Item Name # enabled : Enabled flag. When false, draw semi-transparently. #-------------------------------------------------------------------------- def draw_item_name(item, x, y, enabled = true, width = 172) return unless item draw_icon(item.icon_index, x, y, enabled) change_color(normal_color, enabled) draw_text(x + 24, y, width, line_height, item.name) endholds all the equipment icons and place them in line with the name of the equipment. So, how can I separate the icons from the names individually? I want to draw weapon icon for example at x = 90, y = 15, then armor icon at x = 12, y = 10, how can I do that?
Because normally, this:
#-------------------------------------------------------------------------- # * Draw Item Name # enabled : Enabled flag. When false, draw semi-transparently. #-------------------------------------------------------------------------- def draw_item_name(item, x, y, enabled = true, width = 172) return unless item draw_icon(item.icon_index, x, y, enabled) change_color(normal_color, enabled) draw_text(x + 24, y, width, line_height, item.name) endholds all the equipment icons and place them in line with the name of the equipment. So, how can I separate the icons from the names individually? I want to draw weapon icon for example at x = 90, y = 15, then armor icon at x = 12, y = 10, how can I do that?

